setIdealSpawnDistanceForIncident
SET_IDEAL_SPAWN_DISTANCE_FOR_INCIDENT0xD261BA3E7E998072The 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.
setIdealSpawnDistanceForIncident(incidentId: number, p1: number): voidsetIdealSpawnDistanceForIncident(incidentId: integer, p1: number)Usage
JavaScript
setIdealSpawnDistanceForIncident(incidentId, p1);Lua
setIdealSpawnDistanceForIncident(incidentId, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
incidentId | int | number | integer |
p1 | float | number | number |
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