Available since Version 1.18.
Fail the player if they kick pedestrians.
Examples
MFK
Lua
AddCondition("hitpeds");
// Optional: Specify specific characters. Defaults to all characters.
AddCondTargetModel("marge");
AddCondTargetModel("bart");
// Optional: Specify the amount of times they're allowed to kick pedestrians. Defaults to 1.
SetCondTotal(3);
CloseObjective();Game.AddCondition("hitpeds")
-- Optional: Specify specific characters. Defaults to all characters.
Game.AddCondTargetModel("marge")
Game.AddCondTargetModel("bart")
-- Optional: Specify the amount of times they're allowed to kick pedestrians. Defaults to 1.
Game.SetCondTotal(3)
Game.CloseObjective()Notes
Hitting a pedestrian with your car does not count, only kicking them.