ScriptObjectMaterial
A color or texture to apply to one material slot.
Definition
Section titled “Definition”type ScriptObjectMaterial = Readonly<{ slot: number; colorRgba?: number; textureDictionary?: string; texture?: string;}>;Fields
Section titled “Fields”| 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. |