• Fail bug
    4 replies, posted
I did [lua] if (Player:HasItem("weapon_rp_ak47")) then GAMEMODE.CreateItem("weapon_rp_ak47", tr.HitPos, ply); end [/lua] And it's dropping it if he have it in the inventory lol?
Well yeah, he has the item. Where are you calling this?
sv_hooks But why gmod checking if he has it in inventory? i want if he has it equipped What the function for this?
[b][url=http://wiki.garrysmod.com/?title=Player.GetActiveWeapon]Player.GetActiveWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Learn to use the wiki.
Thank you but i already fixed it.
Sorry, you need to Log In to post a reply to this thread.