GMOD DarkRP Chat Commands

A Tutorial for Garry's Mod 13

Attention Gamer! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending ItzxNexus points.
  • Post: Give ItzxNexus your thoughts on this Tutorial.
  • Vote: Help ItzxNexus win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

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 Offline
Member Joined 3y
457 points Ranked 9616th
Creator of tutorial

Submitter

ItzxNexus avatar
Member Joined 3y
457 points Ranked 9616th

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

Stats

Posts
0
Views
4,602
Date Added
3y
Date Modified
3y

Scores

  • Not yet rated
Sign up to access this!

Share

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

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel