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

Interested?

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

Share

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

More embeddable images

Bookmark and Share

Credits

Key Authors
ItzxNexus
ItzxNexus Offline
Member Joined 3y
457 points Ranked 9402nd
Creator of tutorial

Submitter

ItzxNexus avatar
Member Joined 3y
457 points Ranked 9402nd

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,302
Date Added
2y
Date Modified
2y

Scores

  • Not yet rated
Sign up to access this!

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel