Set the total amount required for collectcoins, collectwrench, completedwasps, destroycars, hitpeds and jump objectives.
Context
This command should be called between calls to AddObjective and CloseObjective.
Syntax
SetObjTotal( total );
Game.SetObjTotal( total )
- total: The total amount required to pass the objective.
Examples
AddObjective("jump");
// Jump 3 times
SetObjTotal(3);
CloseObjective();
Game.AddObjective("jump")
-- Jump 3 times
Game.SetObjTotal(3)
Game.CloseObjective()
Notes
No additional notes.
Version History
1.18
Added this command.