• How to display dark rp money with a chat command?
    2 replies, posted
How to make a chat command display your darkrp money, and make that command only for you to see?
Isn't the money in the HUD somewhere? And if not, wouldn't you prefer to put it there? Anyway, I don't know much about DarkRP, but you should use a chat hook. Since you seem to have no idea how to code (based on the fact that you haven't even tried yet), read this for a start: [url]http://wiki.garrysmod.com/page/Hook_Library_Usage[/url]
Not sure why you'd want to do that, but [code]hook.Add("PlayerSay", "GetMoney", function(ply, text) if (string.sub(text, 1, 6) == "/money") then local money = ply:getDarkRPVar("money") ply:ChatPrint(money) return false end end)[/code]
Sorry, you need to Log In to post a reply to this thread.