GetPlayerCameraAspectRatio
From SA-MP Wiki
(Difference between revisions)
Revision as of 02:40, 3 February 2014 Smithy (Talk | contribs) ← Previous diff |
Revision as of 03:12, 3 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 22: | Line 22: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:GetPlayerCameraAspectRatio]] |
Revision as of 03:12, 3 February 2014
Description:
Retrieves the aspect ratio of a player's camera.
(playerid)
playerid | The ID of the player to get the camera aspect ratio of. |
Return Values:
The aspect ratio of the player's camera, as a float.
new szString[144]; format(szString, sizeof(szString), "Your aspect ratio: %f", GetPlayerCameraAspectRatio(playerid)); SendClientMessage(playerid, -1, szString);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerCameraZoom: Get the zoom level of a player's camera.
- GetPlayerCameraPos: Find out where the player's camera is.
- GetPlayerCameraFrontVector: Get the player's camera front vector