Skip to content

engineSetCullZone

Client-side

Available in Neon, not standard MTA

Replaces an owned or claimed zone definition while retaining its stable ID.

Syntax

bool engineSetCullZone(int id, string type, float x, float y, float z, float width, float depth, float height, int flags [, float rotation = 0, float mirrorV = 0, float normalX = 0, float normalY = 0, float normalZ = 1])

Arguments

idint

Stable zone ID.

typestring

attribute, tunnel, or mirror.

x, y, zfloat

Zone center.

width, depth, heightfloat

Zone dimensions.

flagsint

Native flags from 0 through 65535.

rotation and mirror planefloatoptional

Same optional values as engineCreateCullZone.

Returns

true when the caller may edit the zone and the new definition is valid; false otherwise.

Ownership and lifecycle

When the owner stops, Neon deletes its custom zones and restores any vanilla zones it claimed.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →