The open.mp logo
Home
FAQ
Forums
Servers
Docs
Blog

SetCameraBehindPlayer

Description

Restore the camera to a place behind the player, after using a function like SetPlayerCameraPos.

NameDescription
playeridThe player you want to restore the camera for.

Returns

1: The function was executed successfully.

0: The function failed to execute. This means the player specified does not exist.

Examples

SetCameraBehindPlayer(playerid);

Related Functions

  • SetPlayerCameraPos: Set a player's camera position.
  • SetPlayerCameraLookAt: Set where a player's camera should face.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub