GetVehiclesLODDistance

From Multi Theft Auto: Wiki
Revision as of 23:17, 22 July 2018 by Myonlake (talk | contribs) (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the distance of vehicles LOD.

Syntax

float, float getVehiclesLODDistance ( )

Returns

  • float: general distance used for most vehicles
  • float: distance used for trains and planes

Example

This example shows the lod distance of vehicles

addEventHandler("onClientResourceStart",resourceRoot,function()
	local vehicles,planes_trains = getVehiclesLODDistance()
	outputChatBox("general distance of most vehicles: "..math.floor(vehicles),0,255,0)
	outputChatBox("distance of planes and trains: "..math.floor(planes_trains),0,255,0)
end)

See Also