SetCameraViewDistance: Difference between revisions

From Onset Developer Wiki
Kuzkay (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Sets the player's camera view distance.}}


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


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|distance|__EDIT_ME__}}
{{FuncParam|distance|The distance}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true'''.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetCameraViewDistance(500.0)
-- Set the camera view distance 500.0 units away from the ped.
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 19:29, 31 December 2019

SetCameraViewDistance

Type: Function
Context: Client
Introduced: v1.0

Description

Sets the player's camera view distance.

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__