Add a DarkRP Chat Command

By chee 4 years ago

How do i add a DarkRP Chat command?

I want it to be like this:


The original command is a console command an it's: r_cleardecals

So can somone please give me a code or something because i really want to use this in my server. Thanks

2 posts 2,331 views
  • You must be a member


  • Win-Zip's Levels
    • P1: Beggar
      Points: 751
    • E2: Guide
      EF: 20
    • A5: Veteran
      Account Age: 6 years
    4 years ago:

    I can't guarantee that this will work, but I think it will. Open up "main.lua", it will be either under "addons\darkrp\gamemode" or "gamemodes\darkrp\gamemode\". Open up the file and add the following code to the bottem of the file:

    AddChatCommand("!cleardecals", r_cleardecals)

    If that doesn't work, I would suggest posting on the FacePunch forums.

    User Title
    Waiting For The Sandman
  • chee's Levels
    • P1: Beggar
      Points: 5
    • A4: Graduate
      Account Age: 4 years
    4 years ago:

    it didnt work :( an facepunches email system dosnt work as i cant make a post

  • You must be a member