Feel free to adjust the various item settings depending on your server requirements!
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:
["Firearms"] = {"Shield","Shield",function(args) return gen("Firearms") end,0.1},
["CTSFO"] = {"Shield","Shield",function(args) return gen("CTSFO") end,0.1},
["Small"] = {"Shield","Shield",function(args) return gen("Small") end,0.1},
["Long"] = {"Shield","Shield",function(args) return gen("Long") end,0.1},
["CTSFO2"] = {"Shield","Shield",function(args) return gen("CTSFO2") end,0.1},
["Firearms2"] = {"Shield","Shield",function(args) return gen("Firearms2") end,0.1},
["Long2"] = {"Shield","Shield",function(args) return gen("Long2") end,0.1},
["Short2"] = {"Shield","Shield",function(args) return gen("Short2") end,0.1},
local function gen(shieldType)
local fgen = function(args)
choices["Use"] = {function(player,choice)
local user_id = vRP.getUserId(player)
if user_id ~= nil then
TriggerEvent("Server:useVRPShield", player, shieldType)
end
end}
return choices
end
return fgen
end
Quasar Inventory Support
Quasar Inventory support is built into the resource. To start, head to the config.lua file and enable Quasar Inventory support within the resource.
We've done the rest for you and ensured that our Quasar Inventory support works for QBCore or ESX servers, so make sure you've also enabled QBCore or ESX within the config.lua file.
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.