Item Support

ESX Item Support

Firstly, head to the config.lua file and enable ESX in the config. Next, run the following SQL into your ESX database to add the item:

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('fan', 'Fan', 1, 0, 1);
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('stabiliser', 'Stabilisers', 1, 0, 1);

You may also need to add the weapons as items.

QB-Core Item Support

Firstly, head to the config.lua file and enable QBCore in the config. Next, add the following lines of code into your qb-core/shared/items.lua file:

['fan']   = {
    ['name'] = 'fan',                             
    ['label'] = 'Fan',              
    ['weight'] = 1500,         
    ['type'] = 'item',         
    ['image'] = nil,                   
    ['unique'] = false,         
    ['useable'] = true,     
    ['shouldClose'] = true,      
    ['combinable'] = nil,   
    ['description'] = 'Fan'
},
['stabiliser']   = {
    ['name'] = 'stabiliser',                             
    ['label'] = 'Stabiliser',              
    ['weight'] = 1500,         
    ['type'] = 'item',         
    ['image'] = nil,                   
    ['unique'] = false,         
    ['useable'] = true,     
    ['shouldClose'] = true,      
    ['combinable'] = nil,   
    ['description'] = 'Stabiliser'
},

You may also need to add the weapons as items.

vRP Inventory Support

Firstly, head to the config.lua file and enable vRP in the config. Next, add the following line of code into your vrp/cfg/items.lua file:

local stabiliserOptions= {}
stabiliserOptions["Use"] = {function(player,choice)
  local user_id = vRP.getUserId(player)
  if user_id ~= nil then
    TriggerEvent("Server:StabilisersWithItem", player)
  end
end}
 
["stabiliser"] = {"Stabiliser","Stabiliser",function(args) return stabiliserOptions,0.1}
local fanOptions = {}
fanOptions["Use"] = {function(player,choice)
  local user_id = vRP.getUserId(player)
  if user_id ~= nil then
    TriggerEvent("Server:FanWithItem", player)
  end
end}
 
["fan"] = {"Fan","Fan",function(args) return fanOptions,0.1}

You may also need to add the weapons as items.

Quasar Inventory Support

Add the following to Quasar Inventory:

['fan'] = {
    name = 'fan',
    label = 'Fan',
    weight = 5,
    type = 'item',
    unique = true,
    useable = true,
    description = 'Fan',
    client = {
        export = 'firetools.inventoryUseFan',
        removeAfterUse = true,
    },
},
['stabiliser'] = {
    name = 'stabiliser',
    label = 'Stabiliser',
    weight = 5,
    type = 'item',
    unique = true,
    useable = true,
    description = 'Fan',
    client = {
        export = 'firetools.inventoryUseStabiliser',
        removeAfterUse = true,
    },
},

You may also need to add the weapons as items.

OX Inventory Support

The following code needs to be added into ox_inventory/data/items.lua within your OX_Inventory resource:

['fan'] = {
        label = 'Fan',
        weight = 220,
        server = {
            export = 'firetools.OxUseFan',
        },
},
['stabiliser'] = {
        label = 'Stabiliser',
        weight = 220,
        server = {
            export = 'firetools.OxUseStabilisers',
        },
},

For the weapons:

['WEAPON_HALLIGAN'] = {
            label = 'Halligan',
            weight = 0,
            durability = 0.1,
},
['WEAPON_SPREADER'] = {
            label = 'Spreader',
            weight = 0,
            durability = 0.1,
},
['WEAPON_SAW'] = {
            label = 'Saw',
            weight = 0,
            durability = 0.1,
},

Core Inventory Support

Core Inventory support is built into the resource. To start, head to the config.lua file and enable Core Inventory support within the resource.

We've done the rest for you and ensured that our Core Inventory support works for QBCore or ESX servers, so make sure you've also enabled QBCore or ESX within the config.lua file.

You may also need to add the weapons as items.

Last updated

Was this helpful?