GetVehiclesLODDistance: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}}{{Needs Example}}__NOTOC__ {{New feature/item|3.0154|1.5.3|11199| Returns the distance of vehicles LOD. }} ==Syntax== <syntaxhighlight lang="lua"> float, f...") |
m (→See Also) |
||
(5 intermediate revisions by 2 users not shown) | |||
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. | ||
Line 12: | Line 12: | ||
* '''float:''' general distance used for most vehicles | * '''float:''' general distance used for most vehicles | ||
* '''float:''' distance used for trains and planes | * '''float:''' distance used for trains and planes | ||
==Example== | |||
This example shows the lod distance of vehicles | |||
<syntaxhighlight lang="lua"> | |||
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) | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{ | * [[engineGetModelLODDistance]] | ||
* [[engineSetModelLODDistance]] | |||
{{Client world functions}} |
Latest revision as of 23:17, 22 July 2018
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
- createSWATRope
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getBirdsEnabled
- getCloudsEnabled
- getCoronaReflectionsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGravity
- getGroundPosition
- getHeatHaze
- getInteriorFurnitureEnabled
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getNearClipDistance
- getOcclusionsEnabled
- getPedsLODDistance
- getPlayerBlurLevel
- getRainLevel
- getRoofPosition
- getScreenFromWorldPosition
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getVehiclesLODDistance
- getWeather
- getWindVelocity
- getWorldFromScreenPosition
- getZoneName
- isAmbientSoundEnabled
- isGarageOpen
- isLineOfSightClear
- isWorldSoundEnabled
- isWorldSpecialPropertyEnabled
- processLineOfSight
- removeWorldModel
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetNearClipDistance
- resetPedsLODDistance
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetVehiclesLODDistance
- resetWindVelocity
- resetWorldSounds
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setAmbientSoundEnabled
- setBirdsEnabled
- setCloudsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setJetpackMaxHeight
- setMinuteDuration
- setMoonSize
- setNearClipDistance
- setOcclusionsEnabled
- setPedsLODDistance
- setPlayerBlurLevel
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightsLocked
- setTrafficLightState
- setVehiclesLODDistance
- setWeather
- setWeatherBlended
- setWindVelocity
- setWorldSoundEnabled
- setWorldSpecialPropertyEnabled
- testLineAgainstWater