switchToMultiFirstpart
SWITCH_TO_MULTI_FIRSTPART0xAAB3200ED59016BCThe 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.
switchToMultiFirstpart(ped: Ped, flags: number, switchType: number): voidswitchToMultiFirstpart(ped: Ped, flags: integer, switchType: integer)Usage
switchToMultiFirstpart(ped, flags, switchType);switchToMultiFirstpart(ped, flags, switchType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
flags | int | number | integer |
switchType | int | number | integer |
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