How To Make Shortcuts for darkrp server
Hey I was wondering how to make shortcuts for my server, no i don't mean binds i mean where i can type !content and it will bring me to the content page. Any Help is appreciated thanks.
Why did you post in 2 sections?
Bytypad ๐at 6th of March 2017 04:25:05
Why did you post in 2 sections?Didn't know it was script fodder talk only
Addons like this are written in lua. They don't come out of thin air.
function websiteCommand( pl, text, teamonly ) if (text == "WHATYOUTYPEINTHECHAT") then pl:SendLua([[gui.OpenURL("YOURWEBSITEHERE")]]) -- Change ADDRESS to your chosen page. for k, v in pairs(player.GetAll()) do v:ChatPrint( "PRINTEDINCHAT" )
end end end hook.Add( "PlayerSay", "Chat", websiteCommand )
Got it
Use ``` tags on your post.
Also do not use SendLua. It's lazy, and awful. Learn how to network. For example...
Then you'd do clientside...
Just off the top of my head, quickly whipped up as an example.
Ulx has the functionality. I don't remember the code, but it is way easier than what Nooky did. Google ULX Forum Command and something should come up
I heavily suggest avoiding ULX as it's way too bloated.
works for me