How do I go about making a PM system to the police.
fx. a civilian is getting robbed, so the civilian want to call the police. So the command would look like this /police “I need help!” - Then the police get notified with the message “I need help!”
How do I go about making a PM system to the police.
fx. a civilian is getting robbed, so the civilian want to call the police. So the command would look like this /police “I need help!” - Then the police get notified with the message “I need help!”
I dont know in lua but in c# I would start by making an event at server for incoming messages, then check if the message contains “/police” then trigger event at client that checks if the clients job is police, then let message go thru otherwise cancel the event.
@Smurf Okay thanks!
but the script im making is in lua xD
You could probably do it through the player’s ped skin. To check if it’s a cop skin and then go there…?
@DavidR the problem is i dont know how to check if its police. I’m using VRP framework.
Is this only for vRP?
@DavidR yes only for vrp
Well can you put that in your original post/Title
@DavidR yes I can. Done.
dam if someone realses this i’m gonna make it a /report
@FAXES the only problem I have is that I don’t know how to check if the receiver is a police officer.
I would have no clue how to do that.