Garry's Mod

Garry's Mod

Not enough ratings
Lambda's Fast Food
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Model
Addon Tags: Roleplay, Realism
File Size
Posted
5.068 KB
17 Mar, 2021 @ 3:36am
1 Change Note ( view )

Subscribe to download
Lambda's Fast Food

Description
Simple food-eating system, with a burger, stove, and trash can
Originally intended for my DarkRP server ( steam://connect/darkrp.lambdaguy101.com ), had to share this, because it's too good to not share
Good for DarkRP

FEATURES:

- Stove ( Hold 'E' for a while and you spawn a burger ( Costs to use on DarkRP, based on the entity ) )
- Food Trash Can ( Grab a burger or entites based on it into the trash can to remove it permanently ( The food, not the trash can ) )
- Burger ( Hold 'E' for a while to restore some health )

- Customizable ( You can use all of the entities in this addon as bases to make custom trash cans, stoves, or burgers )

TUTORIAL:

To use the entities as bases for your addons, here are some instructions:
Burger:
- ( Applies for all entities ) Make no cl_init.lua file
- Set ENT.TimeToUse to how much time you want it to take to use the item ( Default: 2 )
- Set ENT.Model to anything you like ( Has to be a model ) ( Default: "models/food/burger.mdl" )
- ( Optional ) Set ENT.SecondModel to anything you like ( Has to be a model ) ( Default: "models/gta_prop_michou/prop_food_tray_01.mdl" )
- Set ENT.HpAward to how much health you want it to give ( Default: 15 )
- Set ENT.PickupSound to any sound you want it to play when you eat it ( Default: "models/gta_prop_michou/prop_food_tray_01.mdl" )
- Set ENT.RemoveEnt to either true or false - True will remove the item when eaten, false will not, and change the model to ENT.SecondModel, and prevent the item from being used ( Default: false )

Stove:
- Set ENT.TimeToUse to how much time you want it to take to use ( Default: 2 )
- Set ENT.PickupSound to any sound you want to play when you finish interacting (Default: "buttons/button19.wav" )
- Set ENT.Model to whatever you want ( Default: "models/props_c17/furnitureStove001a.mdl" )
- Set ENT.PickupName to what the item generates ( This changes the text of DarkRP notifications when you finish interacting ( You paid 8$ for your "ENT.PickupName" ) ) ( Default: "burger" )
- Set ENT.GenEntity to what entity you want it to make when it's done generating ( Default: "lb_hpbase" )
- ( Optional ) Set ENT.SecondEntity to the second possible entity you want it to generate ( Requires ENT.RandomMeal set to true ) ( Default: "lb_hpbase" )
- Set ENT.Price to how much it costs on DarkRP ( Default: 8 )
- Set ENT.Currency to your server's currency ( Affects text of DarkRP Notifications ( You paid 8"$" for your burger ) ) ( Default: "$" )
- Set ENT.RandomMeal to either true or false - True will have a 50/50 chance to either spawn the entity defined in ENT.GenEntity or the one in ENT.SecondEntity ( Default: false )

Trash can:
- Set ENT.Model to any model you'd want the trash can to look like ( Default: "models/props_junk/TrashBin01a.mdl"
- Set ENT.TrashSound to any sound you want it to play when throwing something in the trash ( Default: "physics/cardboard/cardboard_box_impact_soft4.wav" )