resetPedsLODDistance | Multi Theft Auto: Wiki Skip to content

resetPedsLODDistance

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.


Resets the distance of peds LOD to default. Default values depends on client setting. If client has enabled high detail peds in video options, value will be reset to 500 - otherwise to 60.

Syntax

bool resetPedsLODDistance ( )

Returns

  • bool: value

Returns true if the peds LOD distance was reset, false otherwise.

Code Examples

shared

This adds a command "resetlod", which resets the peds LOD distance.

function resetLOD( )
resetPedsLODDistance( )
end
addCommandHandler( "resetlod", resetLOD )

See Also

World Functions