setPedNonCreationArea
SET_PED_NON_CREATION_AREA0xEE01041D559983EAThe GTA V native SET_PED_NON_CREATION_AREA of the PED namespace, as LS:MP client scripts call it: the global function setPedNonCreationArea, in JavaScript and in Lua.
setPedNonCreationArea(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number
): voidsetPedNonCreationArea(
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number
)Usage
JavaScript
setPedNonCreationArea(x1, y1, z1, x2, y2, z2);Lua
setPedNonCreationArea(x1, y1, z1, x2, y2, z2)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setPedNonCreationArea(pos1, pos2);Lua · with vectors
setPedNonCreationArea(pos1, pos2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x1 | float | number | number |
y1 | float | number | number |
z1 | float | number | number |
x2 | float | number | number |
y2 | float | number | number |
z2 | float | number | number |
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.
The distance between these points, is the diagonal of a box (remember it's 3D).
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_NON_CREATION_AREA(float x1, float y1, float z1, float x2, float y2, float z2)- Hash
0xEE01041D559983EA