ResetPedsLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} <!-- {{New feature/item|3.0156|1.5.5|11199|Resets the distance of peds LOD to default. Default values depends on client setting. If client has en...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
<!--
{{New feature/item|3.0156|1.5.5|13771|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.}}
{{New feature/item|3.0156|1.5.5|11199|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.}}
-->
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==
==Syntax==
Line 15: Line 12:


==Example==
==Example==
This adds a command "resetlod", which resets the peds LOD distance.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function resetLOD( )
function resetLOD( )
Line 25: Line 23:
* [[engineGetModelLODDistance]]
* [[engineGetModelLODDistance]]
* [[engineSetModelLODDistance]]
* [[engineSetModelLODDistance]]
{{World functions}}
{{Client world functions}}

Latest revision as of 02:19, 23 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

Shared