Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 2 different jobs counter? #2

Open
Tinky124 opened this issue May 9, 2023 · 0 comments
Open

Use 2 different jobs counter? #2

Tinky124 opened this issue May 9, 2023 · 0 comments

Comments

@Tinky124
Copy link

Tinky124 commented May 9, 2023

Can i use 2 jobs counter in one local?

Like this:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant