• Gmod Derma Run Server-Side Lua?
    2 replies, posted
Hello! I am new to lua and am trying to use an npc to allow users buy health. I have the basic NPC up as I followed a tutorial on it. Is there a way to run server-side lua to set the players health? From what I know it runs client-side lua but to set health I'll need to do ply:SetHealth(100), this and I need to be able to select the using player from client-side local player to server-side. This may be stupidly easy to do and I am stupid but please don't mock me too much as I have just started learning Lua. Thanks, ItzKaneki.
These resources should help you: [url]https://wiki.garrysmod.com/page/Net_Library_Usage[/url] [url]https://www.youtube.com/watch?v=-dGspbJFfnY[/url] [url]https://www.youtube.com/watch?v=ODlGyS6lR1M[/url]
[QUOTE=danker pepers;50466043]These resources should help you: [url]https://wiki.garrysmod.com/page/Net_Library_Usage[/url] [url]https://www.youtube.com/watch?v=-dGspbJFfnY[/url] [url]https://www.youtube.com/watch?v=ODlGyS6lR1M[/url][/QUOTE] Thanks so much! I got it working!
Sorry, you need to Log In to post a reply to this thread.