MTA:Eir/functions/setVehicleLODRenderingEnabled

From Multi Theft Auto: Wiki
Revision as of 09:16, 11 December 2013 by The GTA (talk | contribs) (Created page with "__NOTOC__ This function switches the vehicle LOD rendering on or off. If vehicle LOD rendering is disabled, only the high quality version of the vehicle is allowed to render. Ot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function switches the vehicle LOD rendering on or off. If vehicle LOD rendering is disabled, only the high quality version of the vehicle is allowed to render. Otherwise the low quality version of the vehicle will render after a specific distance (depending on vehicle type). This setting can be overridden by the users settings.

Syntax

bool setVehicleLODRenderingEnabled ( bool enabled )

Arguments

  • enabled: a boolean deciding whether vehicle LOD rendering should be favorized or not

Returns

Returns true if enabled is passed as valid boolean, false otherwise.

Example

Click to collapse [-]
Client

This snippet usually forces high quality rendering of the in-game vehicles.

setVehicleLODRenderingEnabled( false );