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}
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.