GetPedsLODDistance

From Multi Theft Auto: Wiki

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