• Ply:Give
    4 replies, posted
I don't get this to work, am I blind? [CODE] Line: Code 74: function Test(ply) 75: ply:Give("weapon_crowbar") 76: end [/CODE] [ERROR] lua/autorun/cs_ct.lua:75: attempt to call method 'Give' (a nil value) 1. unknown - lua/autorun/cs_ct.lua:75 2. unknown - lua/includes/modules/concommand.lua:69 Thanks In Advance Charlie.
Give has to be called server side.
[QUOTE=Lerpaderp;39876998]Give has to be called server side.[/QUOTE] like this? [CODE] if SERVER then ply:Give("weapon_crowbar") end [/CODE] and how do I reach a concommand if its server sided?
no, use a serverside file (for instance, a new file in autorun/server or just a serverside one) concommand.Add
[QUOTE=tyguy;39877634]no, use a serverside file (for instance, a new file in autorun/server or just a serverside one) concommand.Add[/QUOTE] Thanks, Solved.
Sorry, you need to Log In to post a reply to this thread.