engineRestoreModel | Multi Theft Auto: Wiki Skip to content

engineRestoreModel

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function restores the visual DFF model of the given model ID. This restores the result of engineReplaceModel.

OOP Syntax Help! I don't understand this!

  • Method: Engine.restoreModel(...)

Syntax

bool engineRestoreModel ( int modelID )
Required Arguments
  • modelID: The model ID to restore the visuals of

Returns

  • bool: value

Returns true if the model was successfully restored, false or nil if it failed for some reason.

Code Examples

shared

Client-Side example for restoring model / vehicle.

function ResetModel ( )
engineRestoreModel ( 587 ) -- Object / Vehicle to restore to default GTA one.
end
addEvent ( "restoreClientModel", true )
addEventHandler ( "restoreClientModel", root, ResetModel )

See Also

Engine Functions
Engine Elements