ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineSetModelFlag

Function

engineSetModelFlag

ClientGame engineIdentical to MTA:SA

Sets a model flag (is_road, draw_last, additive, is_tree and others). In the Definitive Edition Unreal does the drawing, so the flag is only stored (read with engineGetModelFlags) and does not change the image.

Syntax

bool engineSetModelFlag(int modelID, string flagName, bool state)

Arguments

modelIDint
The model.
flagNamestring
Flag name.
statebool
State.

Returns

true on success.

Example

engineSetModelFlag(1271, "draw_last", true)

See also