The Lab
MISC native

_SET_DISPATCH_MAX_SPAWN_DISTANCE

returns void1 parambuild 1207

Sets the maximum distance, maxSpawnDistance, at which dispatch units can spawn from the player.

Signature

C
void _SET_DISPATCH_MAX_SPAWN_DISTANCE(float maxSpawnDistance); // 0x89314FB3463E28DE b1207

Parameters

#NameType
1maxSpawnDistancefloat

Facts

Facts about _SET_DISPATCH_MAX_SPAWN_DISTANCE
Name
_SET_DISPATCH_MAX_SPAWN_DISTANCE
Hash
0x89314FB3463E28DE
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x89314FB3463E28DE, -- _SET_DISPATCH_MAX_SPAWN_DISTANCE
  0.0 -- float maxSpawnDistance
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x89314FB3463E28DE", // _SET_DISPATCH_MAX_SPAWN_DISTANCE
  0.0 // float maxSpawnDistance
);
C#
Function.Call((Hash)0x89314FB3463E28DE, // _SET_DISPATCH_MAX_SPAWN_DISTANCE
  0.0f // float maxSpawnDistance
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.