MiscClient

setDispatchSpawnLocation

SET_DISPATCH_SPAWN_LOCATION0xD10F442036302D50

The 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.

SignatureJavaScript
setDispatchSpawnLocation(x: number, y: number, z: number): void
SignatureLua
setDispatchSpawnLocation(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

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

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

Open in the interactive natives reference