Gear Core

Oxide Gear Core 1.1.1

Sign in to download
This plugin serves as an API for use by other plugins, providing hooks to create and equip gear sets.

Permissions

  • gearcore.use - Allows to save, equip, and delete gear sets.

Commands

  • /gear save <name> - Saves the current inventory as a gear set with the given name.
  • /gear equip <name> - Equips the specified gear set, replacing the current inventory with the saved items.
  • /gear delete <name> - Deletes the specified gear set from the stored data.
  • /gear list - Lists all available gear sets.

Stored Data

JSON:
{
  "Gear Sets": {
    "RifleSet": {
      "Main": [
        {
          "Short Name": "rifle.ak",
          "Amount": 1,
          "Skin Id": 0,
          "Name": null,
          "Condition": 100.0,
          "Position": 0,
          "Ammunition": {
            "Short Name": "ammo.rifle",
            "Amount": 30
          },
          "Attachments": [
            {
              "Short Name": "weapon.mod.scope",
              "Amount": 1
            },
            {
              "Short Name": "weapon.mod.silencer",
              "Amount": 1
            }
          ]
        }
      ],
      "Wear": [
        {
          "Short Name": "hoodie",
          "Amount": 1,
          "Skin Id": 0,
          "Name": null,
          "Condition": 100.0,
          "Position": 1
        },
        {
          "Short Name": "pants",
          "Amount": 1,
          "Skin Id": 0,
          "Name": null,
          "Condition": 100.0,
          "Position": 2
        }
      ],
      "Belt": [
        {
          "Short Name": "medical.syringe",
          "Amount": 2,
          "Skin Id": 0,
          "Name": null,
          "Condition": 100.0,
          "Position": 0
        }
      ]
    }
  }
}

Localization

JSON:
{
  "NoPermission": "You don't have permission to use this command.",
  "InvalidCommand": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear save <name></color> - Saves your inventory as a gear set.\n- <color=#F0E68C>/gear equip <name></color> - Equips the specified gear set.\n- <color=#F0E68C>/gear delete <name></color> - Deletes the specified gear set.\n- <color=#F0E68C>/gear list</color> - Lists all available gear sets.",
  "UsageSaveGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear save <name></color> - Saves your inventory as a gear set.",
  "UsageEquipGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear equip <name></color> - Equips the specified gear set.",
  "UsageDeleteGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear delete <name></color> - Deletes the specified gear set.",
  "GearEquipped": "You have equipped the gear set <color=#F0E68C>{0}</color>.",
  "GearSetNotFound": "Gear set <color=#F0E68C>{0}</color> does not exist.",
  "GearUpdated": "Gear set <color=#F0E68C>{0}</color> updated successfully.",
  "GearSaved": "Gear set <color=#F0E68C>{0}</color> created and saved successfully.",
  "GearDeleted": "Gear set <color=#F0E68C>{0}</color> deleted successfully.",
  "NoGearSetsAvailable": "No gear sets available.",
  "AvailableGearSets": "Available gear sets:\n{0}"
}

Developers API

C#:
bool EquipGearSet(BasePlayer player, string gearSetName, bool clearCurrentInventory = true)
  • Equips a gear set to a player by its name.
  • Returns true if the gear set is equipped successfully, false if the gear set is not found.
C#:
bool GearSetExists(string gearSetName)
  • Checks if a gear set with the specified name exists.
  • Returns true if the gear set is found, false if it does not exist.
Author
VisEntities
Downloads
18
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

Latest updates

  1. 1.1.1

    Fixed command replies being sent to all players. Fixed gear set list formatting.
  2. 1.1.0

    Added a new api for checking if a gear set exists before using it. bool GearSetExists(string...
  3. 1.0.1

    Proper handling for null or non-existent gear set names.
Back
Top