PivityGmodStore

Food

Explanation

Items with the Type = "Food" will add onto the players current food level based on the Amount variable.

Code Example

CH_NPC_Shops.Items["chinese_food"] = { -- A unique name. This can be anything, as long as it's unique.
Name = "Chinese Food", -- The display name
Type = "Food", -- Defines the type of the item (in this case Armor)
Price = 25, -- The buy price
Amount = 30-- How much food should we add onto their current?
Description = "Increases your food/hunger levels by 30.", -- The description
Model = "models/props_junk/garbage_takeoutcarton001a.mdl", -- The model
Color = Color( 200, 200, 51 ), -- The color as shown in the menu.
CanBuy = true, -- If the item can be bought from the store
}

Can't find what you're looking for?

Contact support