Garry's Mod

Add a DarkRP Chat Command

This is thread by chee about Garry's Mod. Consider putting your 2 cents in if you haven't already.

Hey Bro: Join GameBanana, one of the oldest mod sites, and maximize your browsing experience.

  • Subscribe: Get notified when chee submits again.
  • Say Thanks: Show your appreciation by sending chee points.
  • Post: Give chee your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

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

  • You must be a member

Comments

  • Win-Zip avatar
    Win-Zip avatar Offline
    Damage Inc. Flag Affiliation: Damage Inc.
    Member Joined 8 years ago
    2,126 points Ranked 1946th
    13 medals 0 legendary, 1 rare
    • 6 years a member Medal icon
    • Became a Club Leader Medal icon
    • Reached 1,000 Points Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    • 10 posts awarded Exemplary Feedback Medal icon
    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
  • 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

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
About this module
This module lets you send a private message to the submitter (chee).
About this module
This module displays what game this Thread is for.

Game

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

Category

Stats

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

More Threads from chee