Available since Version 1.18.
Specify the name of a valid model for a destroycars objective or a hitpeds objective.
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
AddObjTargetModel( model_name );Game.AddObjTargetModel( model_name )- model_name: The name of the car or character model (depending on the objective type).
Examples
MFK
Lua
AddObjective("hitpeds");
AddObjTargetModel("marge");
CloseObjective();Game.AddObjective("hitpeds")
Game.AddObjTargetModel("marge")
Game.CloseObjective()