SetCameraViewDistance: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
Chloe (talk | contribs)
m Mentions the default on-foot distance.
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|Sets the player's camera view distance.}}
{{FuncDescription|Sets the player's camera view distance. The default camera view distance for players on-foot is 350.0 units.}}


{{FuncSyntax|SetCameraViewDistance(distance)}}
{{FuncSyntax|SetCameraViewDistance(distance)}}

Latest revision as of 22:21, 15 January 2020

SetCameraViewDistance

Type: Function
Context: Client
Introduced: v1.0

Description

Sets the player's camera view distance. The default camera view distance for players on-foot is 350.0 units.

Syntax

SetCameraViewDistance(distance)

Parameters

  • distance
    The distance

Return Value

  • This function returns true.

Example

SetCameraViewDistance(500.0)
-- Set the camera view distance 500.0 units away from the ped.

See also

__EDIT_ME__