• DarkRP Custom Shipment
    2 replies, posted
Hey guys, for some reason my shipment won´t work as i want it. [CODE] DarkRP.createShipment("M9K AK4", { model = "models/weapons/w_ak47_m9k.mdl", entity = "m9k_ak74", price = 100, -- the price of one shipment amount = 10, -- how many of the item go in one purchased shipment separate = true, -- whether the item is sold separately (usually used for guns) pricesep = 100, -- the price of a separately sold item noship = false, -- whether this item has a shipment allowed = {TEAM_GUN}, shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default) weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon clip1 = 10, -- OPTIONAL, The amount of bullets in the primary clip by default clip2 = 10, -- OPTIONAL, The amount of bullets in the secondary clip by default buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu, label = "AK 47", -- Optional: the text on the button in the F4 menu category = "Rifles", -- The name of the category it is in. Note: the category must be created! sortOrder = 100, -- The position of this thing in its category. Lower number means higher up. })[/CODE] I know this is the more advanced code. So i want it to be in the Guns tab, as a single gun available for Gun dealer. If i do it as a shipment only, it works as intended. But if i do it as a single Gun, everyone can buy it. Any Help is appreciated.
[url]http://forum.darkrp.com/threads/everyone-can-use-weapons-tab.348/[/url] Google is your friend
Thanks, i searched for quite some time but i didnt find anything!
Sorry, you need to Log In to post a reply to this thread.