This script toggles the police radio animation when the PTT key for your voice application is pushed.
A very special thank you to @sadboilogan for helping write this script.
This is NOT a VOIP script
Designed to work with DEFAULT police peds only
Using MP peds or EUP WILL have varied results - use at your own risk!
"Can you make it work with blah, blah, blah?" Short answer, no. Script is provided as is. If you’d like to expand on it to work with ESX jobs for example, all the power to you. Just get permission before making a release.
Controls
Restricted to LEO’s only or other peds specified.
Talk on radio animation:
Your voice application must have a PTT button mapped to this control.
INPUT_CHARACTER_WHEEL (Left ALT by default)
When aiming a weapon, player must release aim when activiating Left ALT and vice versa. Otherwise the animation will not play properly.
Hold weapon holster animation:
INPUT_MULTIPLAYER_INFO (Z by default)
Holster/Unholster Pistol:
When the Pistol is selected it will be removed from the weapon holster and vice versa.
Optional Extras
Install the InteractSound folder into your resources along side PTTPoliceRadio and have mic clicks in-game! All credit for that resource goes to plunkettscott. https://github.com/plunkettscott/FiveM-Scripts
I’m trying to insert a check to see if the player is currently armed (IsPedArmed) and if it returns true, it will play a different animation (aiming and talking on the radio). I’m just not sure how to incorporate this. Anyone have any ideas?