natives.setBlockingOfNonTemporaryEvents

Revision as of 00:00, 4 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setBlockingOfNonTemporaryEvents |parameters = int ped, bool toggle |parameter1 = int ped The ped handle |parameter2 = bool toggle True to block non-temporary events, false to allow them |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. |notes = - Often combined with n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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