Garry's Mod

Simple workshop popup code

Submitted by ledusa, , Thread ID: 139825

Thread Closed
09-08-2019, 04:18 PM
This post was last modified: 09-08-2019, 04:19 PM by ledusa
#1
Code:
hook.Add("PlayerSay","Workshop_Popup",function(ply,txt)
if txt == "!w" or txt == "!workshop" or txt == "!content" then
ply:SendLua("gui.OpenURL('workshop link here')")
return ""
end
end)


save it as a .lua file then put ingarrysmod/lua/autorun/server

Users browsing this thread: 2 Guest(s)