setDispatchSpawnLocation
SET_DISPATCH_SPAWN_LOCATION0xD10F442036302D50The GTA V native SET_DISPATCH_SPAWN_LOCATION of the MISC namespace, as LS:MP client scripts call it: the global function setDispatchSpawnLocation, in JavaScript and in Lua.
setDispatchSpawnLocation(x: number, y: number, z: number): voidsetDispatchSpawnLocation(x: number, y: number, z: number)Usage
JavaScript
setDispatchSpawnLocation(x, y, z);Lua
setDispatchSpawnLocation(x, y, z)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
setDispatchSpawnLocation(pos);Lua · with vectors
setDispatchSpawnLocation(pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Misc MISC
- In the game
void SET_DISPATCH_SPAWN_LOCATION(float x, float y, float z)- Hash
0xD10F442036302D50