PedClient

setBlockingOfNonTemporaryEvents

SET_BLOCKING_OF_NON_TEMPORARY_EVENTS0x9F8AA94D6D97DBF4

The GTA V native SET_BLOCKING_OF_NON_TEMPORARY_EVENTS of the PED namespace, as LS:MP client scripts call it: the global function setBlockingOfNonTemporaryEvents, in JavaScript and in Lua.

SignatureJavaScript
setBlockingOfNonTemporaryEvents(ped: Ped, toggle: boolean): void
SignatureLua
setBlockingOfNonTemporaryEvents(ped: Ped, toggle: boolean)

Usage

JavaScript
setBlockingOfNonTemporaryEvents(ped, toggle);
Lua
setBlockingOfNonTemporaryEvents(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

works with taskSetBlockingOfNonTemporaryEvents to make a ped completely oblivious to all events going on around him

Reference

Namespace
Ped PED
In the game
void SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(Ped ped, BOOL toggle)
Hash
0x9F8AA94D6D97DBF4

Open in the interactive natives reference