• Restrict Setmoney
    8 replies, posted
Hello there i'm wondering on how to disable the /setmoney command so noone can use it the gamemode is DarkRP.
As long as the person isnt admin they cant use it...?
I know but i don't want staff to be able to set money
You could detour it by overriding the command using DarkRP.defineChatCommand or if you want to disable it completly you can just use DarkRP.removeChatCommand. (Found here)
I'm sorry but can you do it for me im very new lol
thats not how it works here
SHARED: DarkRP.removeChatCommand("setmoney")
do i put this in my darkrpmodification
I included "SHARED" which means that this is a shared function. Just create a SHARED file and run the function on GM/Initialize. Everything you have to know is documented here. Please, atleast try to follow my steps and if you still have problems send us the code so we can take a look at it. This is very simple stuff and easy to learn. Don't get me wrong, I really want to help you and others but you would not learn from it if we just spoon feed you.
Sorry, you need to Log In to post a reply to this thread.