EngineSetModelFlag: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|4|1.6.0|21695|This function changes specific model flag.}} ==Syntax== <syntaxhighlight lang="lua"> boolean engineSetModelFlag( int modelID, string flagName, bool state ) </syntaxhighlight> ===Required Arguments=== * '''modelID''': ID of the model you want to set flag. * '''flagName''': flag name. * '''state''': flag state. ===Returns=== Returns ''boolean'' with flag state, throws an erro...")
 
mNo edit summary
 
Line 1: Line 1:
{{Client function}}
__NOTOC__
__NOTOC__
{{Client function}}


{{New feature/item|4|1.6.0|21695|This function changes specific [[Model flags|model flag]].}}
{{New feature/item|4|1.6.0|21695|This function changes specific [[Model flags|model flag]].}}

Latest revision as of 16:57, 21 July 2023


ADDED/UPDATED IN VERSION 1.6.0 r21695:
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

Returns boolean with flag state, throws an error otherwise.

See Also