setVehicleAnim sets the animation used when the PTT is pressed while the player is driving a vehicle. This will override the server-wide convar or default.
Animations can be found here
Server version must be R06.18.0 or higher for this feature.
[EventHandler("radioExternal:setVehicleAnim")]
private async void OnSetVehicleAnim(string animName, string animDict)
string animNamestring animDictNone
This is an example of the setVehicleAnim event in a Lua script
TriggerEvent("radioExternal:setVehicleAnim","generic_radio_enter","random@arrests")
This is an example of the setVehicleAnim event in a C# script
API.TriggerEvent("radioExternal:setVehicleAnim","generic_radio_enter","random@arrests");