You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local _policejobs = exports['playertables']:getPlayers("police", "fib") -- Get the players that have the specified jobs
for k, v in pairs(_policejobs) do -- Iterate table of players with jobs
print(v) -- Print the source
TriggerClientEvent("police:doSomething", v) -- Trigger a client event to each police jobs in the server
end
The text was updated successfully, but these errors were encountered:
Can i use 2 jobs counter in one local?
Like this:
The text was updated successfully, but these errors were encountered: