getPedsLODDistance | Multi Theft Auto: Wiki Skip to content

getPedsLODDistance

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function gets the peds LOD distance.

Syntax

​float getPedsLODDistance ( )

Returns

  • float: value

This function returns a float containing the peds LOD distance.

Code Examples

shared

This example adds a/getpedsloddistancecommand 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

World Functions