On duty command? HELP PLEASE

Is there any possible way, that we could have a simple /onduty command to change their chat name to blue and signify that they are a cop while playing, and then change back to normal white with like a /offduty command. I’ve seen it on other servers.

You could either get into Lua or C# as a start. There are several usefull links scattered around on the forums

We have a Wiki you could take a look at also take a look at NativeDB or our docs for usefull natives.

If you have any more questions be sure to post back!

:snail:

im not fluent at all in scripting, was just wondering if anyone had something where just a simple command could change their name like regular chat

Chris Handsome

but after typing /onduty

(Police) Chris handsome

I guess you never found a script for that?

just check mine…
https://forum.cfx.re/t/release-fxserver-fivem-base-script-0-2-2-loadout-pts-dis-twt-etc/36484