Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Games
  • Radical Entertainment
  • The Simpsons: Hit & Run
  • Scripting
  • Console Commands
  • MFK Commands
  • Reward Initialisation

BindReward

This command binds a reward car or skin to a level with a specific quest type.

Scope

This command should be called in the rewards file.

Syntax

MFK
Lua
BindReward( name, path, reward_type, quest_type, level, [price, seller] );
Game.BindReward( name, path, reward_type, quest_type, level, [price, seller] )
  • name: The internal name of the reward car or skin.
    • For example, famil_v is the internal name of the family sedan.
  • path: The path to the file containing the reward car or skin.
    • For skins, these file names include the first 6 characters of the skin's internal name.
    • This would mean the skin b_military has the file name b_mili_m.p3d.
  • reward_type: The type of reward.
    • car or skin.
  • quest_type: The quest type required to get the reward.
    • For car type rewards you can use:
      • defaultcar
      • forsale
      • bonusmission
      • streetrace
      • cards
        • This is an unused, somewhat broken quest type.
    • For skin type rewards you can use:
      • defaultskin
      • forsale
  • level: The level this reward is in.
    • Anywhere from 1 to 7.
  • price: Specify the price for a forsale quest type reward.
  • seller: Specify the seller of a forsale quest type reward.
    • For car type rewards you can use:
      • gil for Gil.
      • simpson for the other seller which varies from level to level.
    • For skin type rewards you must use interior.

Examples

Car Rewards

MFK
Lua
BindReward("famil_v", "art\cars\famil_v.p3d", "car", "defaultcar", 1);
BindReward("cletu_v", "art\cars\cletu_v.p3d", "car", "bonusmission", 1);
BindReward("elect_v", "art\cars\elect_v.p3d", "car", "streetrace", 1);
BindReward("plowk_v", "art\cars\plowk_v.p3d", "car", "forsale", 1, 150, "simpson");
BindReward("cDuff", "art\cars\cDuff.p3d", "car", "forsale", 1, 125, "gil");
BindReward("cVan", "art\cars\cVan.p3d", "car", "forsale", 1, 100, "gil");
Game.BindReward("famil_v", "art\\cars\\famil_v.p3d", "car", "defaultcar", 1)
Game.BindReward("cletu_v", "art\\cars\\cletu_v.p3d", "car", "bonusmission", 1)
Game.BindReward("elect_v", "art\\cars\\elect_v.p3d", "car", "streetrace", 1)
Game.BindReward("plowk_v", "art\\cars\\plowk_v.p3d", "car", "forsale", 1, 150, "simpson")
Game.BindReward("cDuff", "art\\cars\\cDuff.p3d", "car", "forsale", 1, 125, "gil")
Game.BindReward("cVan", "art\\cars\\cVan.p3d", "car", "forsale", 1, 100, "gil")

Skin Rewards

MFK
Lua
BindReward("homer", "art\chars\homer_m.p3d", "skin", "defaultskin", 1);
BindReward("h_undrwr", "art\chars\h_undr_m.p3d", "skin", "forsale", 1, 100, "interior");
BindReward("h_fat", "art\chars\h_fat_m.p3d", "skin", "forsale", 1, 125, "interior");
BindReward("h_stcrobe", "art\chars\h_stcr_m.p3d", "skin", "forsale", 1, 150, "interior");
BindReward("homer", "art\\chars\\homer_m.p3d", "skin", "defaultskin", 1);
BindReward("h_undrwr", "art\\chars\\h_undr_m.p3d", "skin", "forsale", 1, 100, "interior");
BindReward("h_fat", "art\\chars\\h_fat_m.p3d", "skin", "forsale", 1, 125, "interior");
BindReward("h_stcrobe", "art\\chars\\h_stcr_m.p3d", "skin", "forsale", 1, 150, "interior");

Notes

To increase various limitations related to rewards, use the Increased Reward Limits hack.