Unnamed
public lua v1 · immutablefunction Vehicle_OnProduce(producer, user, menuitem)if (menuitem == "Frag Grenade") thenif (user:inventory_find("Explosive Parts") == 5) and (user:inventory_find("Energy Particles") == 50) thenuser:inventory_modify("Explosive Parts",-5)user:inventory_modify("Energy Particles",-50)user:inventory_modify("Frag Grenade",1)elseuser:message("&You need 50 Energy Particles and 5 Explosive Parts to complete a Frag Grenade.")return falseendendreturn trueend