PlayerClient

extendWorldBoundaryForPlayer

EXTEND_WORLD_BOUNDARY_FOR_PLAYER0x5006D96C995A5827

The GTA V native EXTEND_WORLD_BOUNDARY_FOR_PLAYER of the PLAYER namespace, as LS:MP client scripts call it: the global function extendWorldBoundaryForPlayer, in JavaScript and in Lua.

SignatureJavaScript
extendWorldBoundaryForPlayer(x: number, y: number, z: number): void
SignatureLua
extendWorldBoundaryForPlayer(x: number, y: number, z: number)

Usage

JavaScript
extendWorldBoundaryForPlayer(x, y, z);
Lua
extendWorldBoundaryForPlayer(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
extendWorldBoundaryForPlayer(pos);
Lua · with vectors
extendWorldBoundaryForPlayer(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Appears only 3 times in the scripts, more specifically in michael1.ysc

-
This can be used to prevent dying if you are "out of the world"

Reference

Namespace
Player PLAYER
In the game
void EXTEND_WORLD_BOUNDARY_FOR_PLAYER(float x, float y, float z)
Hash
0x5006D96C995A5827
Formerly
_EXPAND_WORLD_LIMITS

Open in the interactive natives reference