ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineGetModelTextureNames

Function

engineGetModelTextureNames

ClientGame engineIdentical to MTA:SA

Returns a model's San Andreas texture names (number or name), also the vehicle wheels. A model that is not loaded is pulled in for a moment. Useful for shaders that replace textures.

Syntax

table engineGetModelTextureNames(int|string modelID)

Arguments

modelIDint|string
The model.

Returns

A list of names or false.

Example

for _, name in ipairs(engineGetModelTextureNames(411) or {}) do outputChatBox(name) end

See also