[Release] Police Panic Resource

Hi, after putting in my SteamID in the steam whitelist system thing, it still doesn’t work it says “I don’t have permission to use this command” I don’t know if this is a problem with my steam, server or if it’s just me.

That sounds like some kind of framework, so the answer would be no. This is a standalone script, but you’re free to modify it for ESX, vRP, etc.

Could be a couple of things:

  1. Make sure you entered it correctly into the whitelist.json file, you can check with this website: https://jsonlint.com/ If it says there are errors, then it won’t work.

  2. Make sure you have steam open when you joined the game.

  3. Make sure you restarted the server and not just the script.


If you’re still having issues, create a new issue on GitHub and we can do some further trouble shooting.

Someone have this with a group checker insetad og whitelisting people?

What do you mean?

I don’t want to add people to whitelist, if they have the rank “police” rank then they can use it. Is that possible?

I already answered that quuestion for you lol

Would you know how to make the person to put / panic and a message so that the police can see it?

That’s what this resource does.

You have not understood me, I mean that the person can put a message: /panic Help, they shot me, they go in a red car

Ah, I see. You would need to modify the script so that the panic command takes arguments, send that in the TriggerServerEvent, then pass it back down again, and include it in the chat:addMessage TriggerEvent.

I know what you mean, I am beginning, but I still can’t do that alone, I would really appreciate it if you could leave me the code finished.
Thanks for your attention

How can i disable the whitelist? and make is accesible for all the cops?

https://github.com/inferno-collection/Police-Panic/wiki/Whitelisting#understanding-whitelisting

I am currently getting this error and have tried to restart the server several times to fix it and it’s still not showing in chat. Anyone have any suggestions?

Are you starting the chat resource before the Panic resource?

if you mean the default chat resource yes, it is near the top of my server config

Any custom chat resources running? Because the error is not coming from the Panic resource.

I tried disabling all possible scripts related to chat including my alert system I am using and still get the same error. I hear the alert sound and a blip shows on the map but the message wont show in chat.

Because it is looking at “chat” and I am assuming its talking about the resource, could it be a server file configuration problem? I know very little about this stuff so I am just guessing. Right now my “Chat” resource is under “\server-data\resources[gameplay]\chat”

Yes, maybe try updating it to the latest version:

https://github.com/citizenfx/cfx-server-data/tree/master/resources/[gameplay]/chat

I tried the current version of chat and still same error.