setBlockingOfNonTemporaryEvents
SET_BLOCKING_OF_NON_TEMPORARY_EVENTS0x9F8AA94D6D97DBF4The 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.
setBlockingOfNonTemporaryEvents(ped: Ped, toggle: boolean): voidsetBlockingOfNonTemporaryEvents(ped: Ped, toggle: boolean)Usage
JavaScript
setBlockingOfNonTemporaryEvents(ped, toggle);Lua
setBlockingOfNonTemporaryEvents(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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