Skip to content

removeObjectMaterial

Client-side

Available in Neon, not standard MTA

Removes one SA-MP-style material-slot override from a client object.

Syntax

bool removeObjectMaterial(object theObject, int slot)

Arguments

theObjectobject

Client object.

slotint

Material slot from 0 through 15.

Returns

true when the slot was valid and reset.

Ownership and lifecycle

Parsing creates inert data. Objects, custom models, material overrides, removals, and any temporary streaming-limit split remain owned by the calling client resource and must be cleaned up when that resource stops.

OOP aliases

  • object:removeMaterial(slot)

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →