StreamingClient

switchToMultiFirstpart

SWITCH_TO_MULTI_FIRSTPART0xAAB3200ED59016BC

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

SignatureJavaScript
switchToMultiFirstpart(ped: Ped, flags: number, switchType: number): void
SignatureLua
switchToMultiFirstpart(ped: Ped, flags: integer, switchType: integer)

Usage

JavaScript
switchToMultiFirstpart(ped, flags, switchType);
Lua
switchToMultiFirstpart(ped, flags, switchType)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
flagsintnumberinteger
switchTypeintnumberinteger

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.

doesn't act normally when used on mount chilliad
Flags is a bitflag:
2^n - Enabled Functionality:
0 - Skip camera rotate up
3 - Wait for setPlayerSwitchEstablishingShot / hang at last step. You will still need to run allowPlayerSwitchOutro to exit "properly" and then stopPlayerSwitch
6 - Invert Switch Direction (false = out, true = in)
8 - Hang above ped

switchType: 0 - 3
0: 1 step towards ped
1: 3 steps out from ped
2: 1 step out from ped
3: 1 step towards ped

Reference

Namespace
Streaming STREAMING
In the game
void SWITCH_TO_MULTI_FIRSTPART(Ped ped, int flags, int switchType)
Hash
0xAAB3200ED59016BC
Formerly
_SWITCH_OUT_PLAYER

Open in the interactive natives reference