This code is rather basic but I wrote it because I think some public servers will benefit from it. Sometimes when people steal emergency vehicles, and there is no admin online to kick them, it can’t be properly dealt with - until now. The code could also easily be modified to allow not just police, but EMS and mechanics to enter emergency vehicles as well. This may be necessary because sometimes mechanics need to enter a vehicle in order to repair it properly.
Enjoy!
Also - Thanks to Bo | sharky155 and Captain Sev for helping me test it.
Update v1.1 (1/6/19): Updated the script to allow for ambulance and mecano employees to enter the driver seat of emergency vehicles
[11/18/2019] I will no longer be providing support for this script as it is very unoptimized and I don’t have any further interest in optimizing it; also my outlook on the ESX framework has changed quite a bit since then. At this point, I can not recommend the ESX framework in general due to exploits and other concerns.
Well, I mean, if it’s a public server, and people aren’t permitted to steal police cars, then nobody should be in a police car except police.
Therefore, there isn’t much RP to be done/had just driving around in a police car if you aren’t police anyway lol. Thanks for checking it out though bub
This just make the player get kicked after 3 seconds no chance to walk away.
Citizen.Wait(3000)
I realized after testing it would be a bit more difficult as is to do being the player cannot enter the seat, so no chance to exit before the kicking even it 15 seconds.
problem is you get people who dont use common sense because all they wanna do is shitlord cause either there bored or the que is way to long on there main server … if people use common sense then no one would have to worry about the script and getting booted and it becomes a mute point… but since people cant help themselves… you have things like this…
I can’t actually upload anything yet So I guess here sits my revision of the “Get Out” mod. Someone removed the kick from server and simply set them not driving, I edited it to have them actually get out of the car, and also set it to only kick from the ambulance or fire truck. This is designed so players can still be put in as well as steal cop cars.