SetCameraViewDistance

From Onset Developer Wiki
Revision as of 22:21, 15 January 2020 by Chloe (talk | contribs) (Mentions the default on-foot distance.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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__