🏹Weapon Rack

Script developed for the server REVEALED | FR | Free Access | Serious RP

⚑ Getting Started

Be sure to read the README file for complete setup instructions!


βž• Creating a Weapon Rack

You can create a weapon rack using any of these methodsβ€―:

  1. With an Inventory Item

    • Use the item "weaponrack" or any other defined in Config.WeaponRack.

  2. Client-side Event

    TriggerEvent("bt_rack:startPlaceObject")
  3. Server-side Event

    TriggerClientEvent("bt_rack:startPlaceObject", source)
  4. Via Inventory Integration (Example with VORP):

    local VORPInv = exports.vorp_inventory:vorp_inventoryApi()
    VORPInv.RegisterUsableItem("weaponrack", function(data)
        TriggerClientEvent("bt_rack:startPlaceObject", data.source)
        VORPInv.CloseInv(data.source)
    end)

βš™οΈ Configuration Example (config.lua)


πŸ“Œ Notes

  • Flexible creation: Weapon racks can be placed via inventory, events, or server triggers.

  • Fully configurable: Manage who can place or delete racks, which weapons are accepted, and customize all UI messages.

  • Discord logs: Optional webhook for staff actions or moderation.

  • Multilingual: Interface and prompts support multiple languages (see Config.NUILangage).

Last updated