Server Groups
Config.FixedGroups = {
["pacific_bank"] = { -- index key should be unique
label = "Pacific Bank",
canAccess = function(playerId)
local hasAccess = false
-- Add your own check here and set hasAccess to true if the player should have access to Pacific Bank cameras, for example:
hasAccess = exports['av_laptop']:hasJob(playerId, {"police", "sheriff", "leo", "bsco"})
-- Leave the rest of the code as is, it will print a debug message with the result
dbug("Does player with server id "..tostring(playerId).." have access to bank cameras? "..tostring(hasAccess))
return hasAccess
end,
},
}
Last updated