Garry's Mod

Add a DarkRP Chat Command

How do i add a DarkRP Chat command?

I want it to be like this:

!cleardecals

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

Share

Embed HTML:
Embed BB Code:
Embed Markdown:

More embeddable images

Bookmark and Share

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Thread.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Thread a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Thread.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

  • You must be a member

Replies

  • Win-Zip avatar
    Win-Zip avatar Offline
    1,274 points Ranked 2999th
    Damage Inc. Flag Affiliation: Damage Inc.
    Member Joined 7 years ago
    Win-Zip avatar
    Win-Zip
    Damage Inc. Flag
    Damage Inc.
    • Report icon
    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.

    Waiting For The Sandman avatar
    User Title
    Waiting For The Sandman
  • chee avatar
    chee Offline
    5 medals 2 rare
    • One month a member (bonus 1 point on daily login) Medal
    • 6 months a member  (bonus 1 point on daily login) Medal
    • 1 year a member (bonus 1 point on daily login) Medal
    • 2 years a member (bonus 2 points on daily login) Medal
    • 4 years a member (bonus 4 points on daily login) Medal
    Member Joined 4 years ago
    • Report icon
    4 years ago:

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

    Bananite
  • You must be a member

Submitter

chee avatar
chee Offline
5 medals 2 rare
  • One month a member (bonus 1 point on daily login) Medal
  • 6 months a member  (bonus 1 point on daily login) Medal
  • 1 year a member (bonus 1 point on daily login) Medal
  • 2 years a member (bonus 2 points on daily login) Medal
  • 4 years a member (bonus 4 points on daily login) Medal
Member Joined 4 years ago

chee

Category

Stats

Post Count
2
ViewCount
3,263
Date Added
4 years ago
Date Modified
4 years ago