The Game Modding Community - Since 2001

GMOD DarkRP Chat Commands

A Tutorial for Garry's Mod 13

1 -- Create a folder in C:\*name of server folder**ºor game folder*\garrysmod\addons\darkrpmodification\lua\darkrp_modules E.G.: nxs_commands 2 -- Inside the folder create this file sv_commands.lua 3 -- Make a local function with the name u want.Im gonna call it Miembro then behind the function name put this ( ply, text, team ) 4 -- Create a hook like this hook.Add( "PlayerSay", "NameOfFunction", NameOfFunction) 5 -- Make a if like this if string.sub( text, 1, *lenght* ) == "!*Text*" then 6 -- Make a ply:SendLua like this ply:SendLua( [[ gui.OpenURL( "*Url to show" ) ]]) 7 -- Put the end´s 9 -- Try it! The code have to be like this local function Miembro( ply, team, team ) if string.sub( text, 1, 8 ) == "!miembro" then ply:SendLua( [[ gui.OpenURL( "url" ) ]] end end hook.Add( "PlayerSay", "Miembro", Miembro ) Say if you want a video PD:You need to create another file for put more commands

Posts

None found

Embed

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

Credits

Key Authors
ItzxNexus
ItzxNexus Joined 4y ago
Offline
457 points Ranked 10270th
Creator of tutorial

Submitter

ItzxNexus avatar
ItzxNexus Joined 4y ago
X_X
457 points Ranked 10270th

ItzxNexus
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 5,874 Views
  • 0 Posts
  • 3y Submitted
  • 3y Modified

Scores

  • Not yet rated
Sign up to access this!

Greetings! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Stop Lurking! Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel