GetVehiclesLODDistance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Client function | {{Client function}}__NOTOC__ | ||
{{New feature/item|3.0154|1.5.3|11199| | {{New feature/item|3.0154|1.5.3|11199| | ||
Returns the distance of vehicles LOD. | Returns the distance of vehicles LOD. |
Revision as of 11:48, 16 July 2017
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
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel