MiscClient

addDispatchSpawnSphereBlockingArea

ADD_DISPATCH_SPAWN_SPHERE_BLOCKING_AREA0x2D4259F1FEB81DA9

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

SignatureJavaScript
addDispatchSpawnSphereBlockingArea(
  x1: number,
  y1: number,
  x2: number,
  y2: number
): number
SignatureLua
addDispatchSpawnSphereBlockingArea(
  x1: number,
  y1: number,
  x2: number,
  y2: number
): integer

Usage

JavaScript
const result = addDispatchSpawnSphereBlockingArea(x1, y1, x2, y2);
Lua
local result = addDispatchSpawnSphereBlockingArea(x1, y1, x2, y2)

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber

Returns

int JavaScript number, Lua integer

Reference

Namespace
Misc MISC
In the game
int ADD_DISPATCH_SPAWN_SPHERE_BLOCKING_AREA(float x1, float y1, float x2, float y2)
Hash
0x2D4259F1FEB81DA9
Formerly
_ADD_DISPATCH_SPAWN_BLOCKING_AREA

Open in the interactive natives reference