EngineGetModelFlag: 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 returns specific model flag.}} ==Syntax== <syntaxhighlight lang="lua"> boolean engineGetModelFlags( int modelID, string flagName ) </syntaxhighlight> ===Required Arguments=== * '''modelID''': ID of the model you want to get flags. * '''flagName''': flag name. ===Returns=== Returns ''true'' if flag enabled, ''false'' otherwise. ==See Also== {{Engine_functions}}")
 
mNo edit summary
 
Line 6: Line 6:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
boolean engineGetModelFlags( int modelID, string flagName )
boolean engineGetModelFlag( int modelID, string flagName )
</syntaxhighlight>
</syntaxhighlight>



Latest revision as of 19:19, 16 April 2023

ADDED/UPDATED IN VERSION 1.6.0 r21695:
This function returns specific model flag.

Syntax

boolean engineGetModelFlag( int modelID, string flagName )

Required Arguments

  • modelID: ID of the model you want to get flags.
  • flagName: flag name.

Returns

Returns true if flag enabled, false otherwise.

See Also