Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Objectives > SetObjTotal

SetObjTotal

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.

Donut Team © 2020 · v4.0