GetPedsLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
<!--
{{New feature/item|3.0156|1.5.5|13771|This function gets the peds LOD distance.}}
{{New feature/item|3.0156|1.5.5|6948|This function gets the peds LOD distance.}}
-->
This function gets the peds LOD distance.


==Syntax==  
==Syntax==  

Latest revision as of 02:19, 23 July 2018

This function gets the peds LOD distance.

Syntax

float getPedsLODDistance ( )

Returns

This function returns a float containing the peds LOD distance.

Example

This example adds a /getpedsloddistance command which outputs the peds LOD distance to the chatbox.

addCommandHandler( "getpedsloddistance",
    function( )
        local pedsLODDistance = getPedsLODDistance( )
        outputChatBox( "Your peds LOD distance is at " .. pedsLODDistance )
    end
)

See also