Two versions are now available, one for ESX framework and one is a stand-a-lone version
This script will let police pull out a specific weapon when they exit a police car.
If you hold aim down sight the cop will keep the door open as cover while exiting.
Here is a gif showing how it works.
Thanks to the Radiant Roleplay team for helping with testing.
This script supports unarmed, tasers, combat pistol, mk2 shotgun, mk2 rifle
You will need to change the weapon names in the script if you want it to work with a different loadout.
If you use a custom holster animation you can set disablePedWeaponDraw to ‘true’ in the script to prevent non-police players from bypassing your holster animation. – Only works in ESX Version
Press the ‘1’ button in a vehicle to make it cycle weapons.
Requirements For ESX Version
- You must have the police job and be in any vehicle
- ESX_Policejob
- pNotify
Download: Radiant_WepSelect.rar (1.4 KB)
Non-ESX Version (removed pNotify)
Download: Radiant_WepSelectNonEsx.rar (1.9 KB)
VRP version was coded by @plesalex100
Get It from github here!
There are two options for notificiations in the non-esx version, you can either do a Draw 3d Text which looks like this:
Image 1
Otherwise you can open the script and enable ‘regularNotify = true’ and it will do this instead:
Image 2
5 Likes
zee
2
Why don’t you just add a section for peds, then check if the peds are the ones in the list, why require ESX.
cause you dont use special police peds. Its a roleplay framework and there you only wear clothes and dont use other peds
I could make a version that doesnt require esx or pnotify if people are interested.
1 Like
@zee I’ve enabled it to work for a ped list, let me know what you think.
@En3rgized247 It has been updated try the new version.
Updated: 10-27 no longer relies on pnotify or esx framework, it now has a 2nd version with a ped list you guys are welcome to use.
1 Like
Thank you 
Looking forward to trying this out when I get home 
Tried using the noESX version:

Try going into the __resource file and delete these lines:
dependencies {
'esx_policejob',
'pNotify'
}
Worked, cheers! Good script - will be using 
1 Like
Oops i uploaded the one with esx dependencies still haha, fixed that now.
1 Like
No worries! Glad I could help!
1 Like
Great script, keep up the good work.
I’ve converted this resource from esx to vrp because i’ve thought that will be useful for many from you.
Thanks @TrundleTheGreat for that resource.
Github with vrp version: https://github.com/plesalex100/vrp_weaponselect
1 Like
Don’t know if there is still any support from this, but I am having an issue. No errors from server or client console and nothing happens while I have the police job, in a vehicle, and press ‘1’ key
Still works in my server, you can try changing the key from 1 to something else, maybe you have another script disabling the 1 key??
Hmm idk that’s weird. I’ve tried changing keys and I don’t have any other resource disabling the 1 key. I’ll keep trying though. Just wanted to ask if anyone else had this issue.
Are you using the ESX version or the VRP version? Double check that your police job is spelled the same in your database compared to the script. I can see about 150 servers running this resource right now so you may want to double check your setup. I did not make the VRP version and do not use VRP so I cannot provide much support there.
It’s ESX. And ‘police’ is spelled the same in the database. I will try to troubleshoot more here in a while when I get back to my PC. I’ll report back if I can think of anything or find my issue. I appreciate the responses!