Skip to content

ScriptObjectMaterial

A color or texture to apply to one material slot.

type ScriptObjectMaterial = Readonly<{
slot: number; colorRgba?: number; textureDictionary?: string; texture?: string;
}>;
Field Type Description
slot number Zero-based material index from 0 to 31.
colorRgba number Optional 0xRRGGBBAA color. Omit it or pass 0xFFFFFFFF to keep the original color.
textureDictionary, texture string Optional pair of stock GTA:SA names. Each name can contain up to 31 printable ASCII characters.