- Documentation
- Client functions
- getModelAsset
Function
getModelAsset
Returns the path of the asset put under a model (false = original).
Syntax
string getModelAsset(int modelID)Arguments
modelIDint- Model number.
Returns
The path or false.
Example
outputChatBox(tostring(getModelAsset(1271)))
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.engineGetReplacedModelsReturns every replaced model: a number -> asset path table.