-- Check if the player is in a Switch "state"
if not IsPlayerSwitchInProgress() then
-- If the player is not already in a Switch state, initiate a Switch
SwitchToMultiFirstPart(PlayerPedId(), 0, 1)
-- In this case, switchType is set to 1, which means "3 steps out from ped"
end