natives.setBlockingOfNonTemporaryEvents
Jump to navigation
Jump to search
natives.setBlockingOfNonTemporaryEvents
Signature: void natives.setBlockingOfNonTemporaryEvents(int ped, bool toggle)
Usage: Prevents the ped from reacting to non-temporary events such as fleeing, fighting, or ambient AI behaviors. Commonly used before forcing a ped into a scripted animation.
Parameters
- int ped The ped handle
- bool toggle True to block non-temporary events, false to allow them
Return
void
On failure: void