• Make Item In InventoryAddon
    5 replies, posted
After trying to make some item for inventory addon,I was lost at the part where you to give your item a unique ID and what it does when you use it. Could someone please explain what Unique Id and effect I would have to use to make weapons, and other things?
[lua] local ITEM = { } ITEM.UniqueID = "weapon_crowbar" ITEM.Model = "models/weapons/w_crowbar.mdl" ITEM.Name = "Crowbar" ITEM.Description = "Hit the shit outta things." ITEM.RemoveOnUse = true if SERVER then function ITEM:USE(ply) ply:Give("weapon_crowbar") end end InventoryAddon:RegisterItem(ITEM) [/lua] For example.
is there a way to find out what the name of a certain weapon is for the give weapon command? I use the tactical weapons pack and was wondering how to find name for give weapon so i could use it in inventory addon
Well you'd have to make an item for each one, so just do ply:Give(ITEM.UniqueID) instead of the weapon name.
how do you find the unique ID of a weapon?
[QUOTE=pauld1217;16803034]how do you find the unique ID of a weapon?[/QUOTE] You make it up.
Sorry, you need to Log In to post a reply to this thread.