Exports
getVisumState (client)
local visumState = exports['gp_visum']:getVisumState()
Example how to limit shops using ox_inventory:
...
if inv == 'shop' and invOpen == false then
-- get user state
local visumState = exports['gp_visum']:getVisumState()
-- return if user is not whitelisted
if visumState ~= "whitelisted" then return end
if cache.vehicle then
return lib.notify({ id = 'cannot_perform', type = 'error', description = locale('cannot_perform') })
end
left, right = lib.callback.await('ox_inventory:openShop', 200, data)
elseif inv == 'crafting' then
...
Last updated
Was this helpful?