Garry's Mod

Add a DarkRP Chat Command

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

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

Replies

  • You must be a member
  • chee avatar
    chee Offline
    Member Joined 5 years ago
    Report post
    5 years ago:

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

    Bananite
  • Win-Zip avatar
    Win-Zip avatar Offline
    1,925 points Ranked 2129th
    Damage Inc. Flag Affiliation: Damage Inc.
    Member Joined 7 years ago
    Win-Zip avatar
    Win-Zip
    Damage Inc. Flag
    Damage Inc.
    Report post
    5 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
    Mantra
    Waiting For The Sandman

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Submitter

chee avatar
chee Offline
Member Joined 5 years ago

chee

Category

About this module
This module displays this Thread's category.
Customization

Game

About this module
This module displays what game this Thread is for.
Garry's Mod
Garry's Mod

Stats

Posts
2
Views
3,871
Date Added
5 years ago
Nov 29 2010 @ 3:55am UTC

More Threads from chee