setDefaultAnim sets the animation used when the PTT is pressed while the player is neither driving or aiming a weapon. 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:setDefaultAnim")]
private async void OnSetDefaultAnim(string animName, string animDict)
string animNamestring animDictNone
This is an example of the setDefaultAnim event in a Lua script
TriggerEvent("radioExternal:setDefaultAnim","generic_radio_enter","random@arrests")
This is an example of the setDefaultAnim event in a C# script
API.TriggerEvent("radioExternal:setDefaultAnim","generic_radio_enter","random@arrests");