PivityGmodStore

Weapons

Explanation

Items with the Type = "Weapon" will give the player the desired weapon based on the class.

Code Example

CH_NPC_Shops.Items["weapon_ak472"] = { -- A unique name. This can be anything, as long as it's unique.
Name = "AK-47", -- The display name
Class = "weapon_ak472", -- The weapon class you want to give
Type = "Weapon", -- Defines the type of the item
Price = 1000, -- The buy price
Description = "Officially known as the Avtomat Kalashnikova is a gas-operated assault rifle that is chambered for the 7.62×39mm cartridge.", -- Item description
Model = "models/weapons/w_rif_ak47.mdl", -- Model for display
Color = Color( 160, 32, 240 ), -- Color of the item in the menu
CanBuy = true, -- If the item can be bought from the store
CanSell = true, -- If the item can be sold to the store
}

Can't find what you're looking for?

Contact support