setPedsLODDistance | Multi Theft Auto: Wiki Skip to content

setPedsLODDistance

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function sets the peds LOD distance.

Syntax

​bool setPedsLODDistance ( ​float distance )
Required Arguments
  • distance: the new peds LOD distance. This value is clamped to 0 – 500 . (Default for high_detail_peds on is 500 , when off, it is 60 ).

Returns

  • bool: value

This function returns true if the argument is valid. Returns false otherwise.

Code Examples

shared

This example sets the peds LOD distance to 120.

setPedsLODDistance( 120 )

See Also

World Functions