engineSetModelFlag | Multi Theft Auto: Wiki Skip to content

engineSetModelFlag

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 changes specific model flag.

Syntax

boolean engineSetModelFlag ( int modelID, string flagName, bool state )
Required Arguments
  • modelID: ID of the model you want to set flag.
  • flagName: flag name .
  • state: flag state.

Returns

  • boolean: value

Returns boolean with flag state, throws an error otherwise.

Code Examples

Script Example Missing

Function engineSetModelFlag needs a script example. Help out by writing one.

Contribution guidelines

See Also

Engine Functions
Engine Elements