[ESX] [Syncs with Ace Permissions] Police Duty Script

This is a ESX Duty Script that syncs your role inside the discord and if your an LEO gives you the police job.

If you’re going to make edits, please give me credit.

3 Likes

Hey
line 32
xPlayer.setJob(‘unemployed’, grade) ----- Set a Grade for the Civilian Job

I’ts police, i think.no?

This would be for when you go offduty, so you could either do xPlayer.setJob(‘unemployed’, 0) or xPlayer.setJob(‘off’, job, grade)

1 Like

How does this sync with discord if nothing in the code pulls from discord? Or was I blind when looking…

1 Like

I dont see any either.

This just uses Discord Ace Perms, I understand the “sync” may have thrown you off.

does this use badger api? and what are the dependencies?

This uses Discord Ace Permissions, the only dependencies are Discord Ace Permissions!

link to the DsicordAcePerms script?

DiscordAcePerms [Release] - Releases - Cfx.re Community

repost the link?