removeObjectMaterial
Client-side
Removes one SA-MP-style material-slot override from a client object.
Syntax
bool removeObjectMaterial(object theObject, int slot)Arguments
theObjectobjectClient object.
slotintMaterial 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
SOURCECLuaObjectDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp INTRODUCED / EXTENDED28dfcff23Read the commit and why the change was made TEST RESOURCE samp-map-loader test-resources/samp-map-loader
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How SA-MP maps and object streaming works →