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

AddObjTargetModel

Specify the name of a valid model for a destroycars objective or a hitpeds objective.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

AddObjTargetModel( model_name );

Game.AddObjTargetModel( model_name )

  • model_name: The name of the car or character model (depending on the objective type).

Examples

AddObjective("hitpeds");
	AddObjTargetModel("marge");
CloseObjective();

Game.AddObjective("hitpeds")
	Game.AddObjTargetModel("marge")
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2024 · v4.0