setOcclusionsEnabled | Multi Theft Auto: Wiki Skip to content

setOcclusionsEnabled

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to enable or disable occlusions. Occlusions are used by GTA to enhance performance by hiding objects that are (normally) obscured by certain large buildings. However when removeWorldModel is used they may also have the undesired effect of making parts of the map disappear. Disabling occlusions will fix that.

Syntax

setOcclusionsEnabled ( )

Code Examples

server

This example shows occlusions being disabled after the whole map has been cleared:

-- Remove all world models
for i=550,20000 do
removeWorldModel(i,10000,0,0,0)
end
-- Turn off occlusions
setOcclusionsEnabled( false )

See Also

World Functions