- Documentation
- Client functions
- engineGetReplacedModels
Function
engineGetReplacedModels
Returns every replaced model: a number -> asset path table.
Syntax
table engineGetReplacedModels()Returns
A table of replacements.
Example
for id, path in pairs(engineGetReplacedModels()) do
outputChatBox(id .. ": " .. path)
end
See also
engineReplaceModelReplaces the look of a model number: with an engine asset (engineLoadAsset) or a model from a file (engineLoadMesh). Objects, vehicles and peds (skins 0-312; a file model without a skeleton is static) with that number show the new model. An object without its own collision gets one from the.dffor from the model triangles;engineReplaceCOLgives a custom collision. It works for this player, so call it in a client script. Replacing a newengineRequestModelmodel that the game has not created yet (the player is just joining, a resource restart) waits for it; a model number that does not exist givesfalse.getModelAssetReturns the path of the asset put under a model (false= original).