note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
SetPlayerInterior
Description
Set a player's interior. A list of currently known interiors and their positions can be found here.
Name | Description |
---|---|
playerid | The ID of the player to set the interior of. |
interiorid | The interior ID to set the player in. |
Returns
true - The function executed successfully.
false - The function failed to execute. This means the player is not connected.
Examples
// Set player to default interior (outside)
SetPlayerInterior(playerid, 0);
Related Functions
- GetPlayerInterior: Get the current interior of a player.
- LinkVehicleToInterior: Change the interior that a vehicle is seen in.
- OnPlayerInteriorChange: Called when a player changes interior.