[FAST HELP] How to add whitelist code for a script?

I made a scripts of panic button when u press F9 and I’m wondering how to add a whitelist to it so that only police may do it?

Any help?

You have 2 options, 1) check for a specific player ped. 2) run a server event to check if the player’s identifiers are matching a list of “allowed players”, then trigger a client event again to execute your desired code. It’d also help if you posted the code you already have in case someone wants to suggest a specific solution matching your code :wink: