ResetPedsLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 24: Line 24:


==See Also==
==See Also==
{{World functions}}
{{Client world functions}}

Revision as of 23:16, 22 July 2018

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

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

Example

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

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

See Also