So in my vgui, I have a button that creates a certain entity.
But I want it to take 2$ for your wallet.
How do I do that?
[url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url]
Override DoClick on your button and start an empty netmessage.
Then net.Receive it on server side, do all your checks (canAfford) and call addMoney with an negativ ammount
Sorry, you need to Log In to post a reply to this thread.