GetPedsLODDistance

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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