StreamingClient

isPlayerSwitchInProgress

IS_PLAYER_SWITCH_IN_PROGRESS0xD9D2CFFF49FAB35F

The GTA V native IS_PLAYER_SWITCH_IN_PROGRESS of the STREAMING namespace, as LS:MP client scripts call it: the global function isPlayerSwitchInProgress, in JavaScript and in Lua.

SignatureJavaScript
isPlayerSwitchInProgress(): boolean
SignatureLua
isPlayerSwitchInProgress(): boolean

Usage

JavaScript
const result = isPlayerSwitchInProgress();
Lua
local result = isPlayerSwitchInProgress()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true if the player is currently switching, false otherwise.
(When the camera is in the sky moving from Trevor to Franklin for example)

Reference

Namespace
Streaming STREAMING
In the game
BOOL IS_PLAYER_SWITCH_IN_PROGRESS()
Hash
0xD9D2CFFF49FAB35F

Open in the interactive natives reference