StartPlayerSwitch
DocsStartPlayerSwitch(from, to, flags, switchType)Description
enum ePlayerSwitchType
{
SWITCH_TYPE_AUTO = 0,
SWITCH_TYPE_LONG = 1,
SWITCH_TYPE_MEDIUM = 2,
SWITCH_TYPE_SHORT = 3
};enum eSwitchFlags {
SKIP_INTRO = 1,
SKIP_OUTRO = 2,
PAUSE_BEFORE_PAN = 4,
PAUSE_BEFORE_OUTRO = 8,
SKIP_PAN = 16,
UNKNOWN_DEST = 32,
DESCENT_ONLY = 64,
START_FROM_CAMPOS = 128,
PAUSE_BEFORE_ASCENT = 256,
PAUSE_BEFORE_DESCENT = 512,
ALLOW_SNIPER_AIM_INTRO = 1024,
ALLOW_SNIPER_AIM_OUTRO = 2048,
SKIP_TOP_DESCENT = 4096,
SUPPRESS_OUTRO_FX = 8192,
SUPPRESS_INTRO_FX = 16384,
DELAY_ASCENT_FX = 32768
}Parameters
| Name | Type | Description |
|---|---|---|
from | Ped | — |
to | Ped | — |
flags | int | Refer to `eSwitchFlags` |
switchType | int | Refer to `ePlayerSwitchType` |
Quick Snippet: Get Ped Handlefromto
fromtoUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.