setMissionFlag
SET_MISSION_FLAG0xC4301E5121A0ED73The GTA V native SET_MISSION_FLAG of the MISC namespace, as LS:MP client scripts call it: the global function setMissionFlag, in JavaScript and in Lua.
setMissionFlag(toggle: boolean): voidsetMissionFlag(toggle: boolean)Usage
JavaScript
setMissionFlag(toggle);Lua
setMissionFlag(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
If true, the player can't save the game.
If the parameter is true, sets the mission flag to true, if the parameter is false, the function does nothing at all.
^ also, if the mission flag is already set, the function does nothing at all
Reference
- Namespace
- Misc MISC
- In the game
void SET_MISSION_FLAG(BOOL toggle)- Hash
0xC4301E5121A0ED73