SetPlayerInterior

From SA-MP Wiki

(Redirected from Function:SetPlayerInterior)
Jump to: navigation, search


Description:

Set a player's interior. A list of currently known interiors and their positions can be found here.


Parameters:
(playerid, interiorid)
playeridThe ID of the player to set the interior of.
interioridThe interior ID to set the player in.


Return Values:

  • 1: The function was executed successfully.
  • 0: The function failed to execute. This means the player is not connected.


Example Usage:

// Set player to default interior (outside)
SetPlayerInterior(playerid, 0);

Related Functions

The following functions may be helpful as they relate to this function in one way or another.


Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

Personal tools
Navigation
Toolbox
In other languages