MiscClient

setIdealSpawnDistanceForIncident

SET_IDEAL_SPAWN_DISTANCE_FOR_INCIDENT0xD261BA3E7E998072

The GTA V native SET_IDEAL_SPAWN_DISTANCE_FOR_INCIDENT of the MISC namespace, as LS:MP client scripts call it: the global function setIdealSpawnDistanceForIncident, in JavaScript and in Lua.

SignatureJavaScript
setIdealSpawnDistanceForIncident(incidentId: number, p1: number): void
SignatureLua
setIdealSpawnDistanceForIncident(incidentId: integer, p1: number)

Usage

JavaScript
setIdealSpawnDistanceForIncident(incidentId, p1);
Lua
setIdealSpawnDistanceForIncident(incidentId, p1)

Parameters

ParameterTypeJavaScriptLua
incidentIdintnumberinteger
p1floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Misc MISC
In the game
void SET_IDEAL_SPAWN_DISTANCE_FOR_INCIDENT(int incidentId, float p1)
Hash
0xD261BA3E7E998072
Formerly
_SET_INCIDENT_UNK

Open in the interactive natives reference