- Documentation
- Server functions
- setVehiclesLODDistance
Function
setVehiclesLODDistance
Stores the distance beyond which vehicles stop being drawn (0-500 m, 500 by default).
Syntax
bool setVehiclesLODDistance(float distance)Arguments
distancefloat- Distance in metres.
Differences from MTA:SA
- These MTA:SA arguments are not here:
float trainsAndPlanesDistance = vehiclesDistance * 2.14
In MTA:SA
setVehiclesLODDistance(float vehiclesDistance, float trainsAndPlanesDistance = vehiclesDistance * 2.14)Returns
true on success.
Example
setVehiclesLODDistance(300)
Notes
State for scripts. The drawing range in the game is set by the engine.