I decided to start learning lua, make scripts for fivem and here’s my first script:
Simple script with 3 commands, /onduty which gives weapons and armour (by default 100% armour and a nightstick, flashlight, combat pistol with flashlight, pump shotgun with flashlight, stungun and carbine rifle with grip, flashlight and scope) to the ped.
/co (stands for community officer ) which changes the player’s ped (by default “s_m_y_sheriff_01”) and spawns a vehicle (by default “sheriff”) and teleports the player into the vehicle.
There’s also a misc command (/clearw) that clears all of the player’s weapons (typically to be used when you’re coming off-duty and want to quickly get rid of police weapons)
You’ve probably got another script interfering with that… If you look at the code for mine there’s no password function or anything along those lines… maybe change the command in mine to a different command that isn’t being used in your server?
It would be awesome if you could make it so when you do the /co script you get access to badgers 911 script and also can drag people, cuff people, and put people in your car. Great script though!
@WadL There’s a problem with your script, if you die and type /co you get revived and placed in a car! You can also get out of the car, get back in the car and drive away.