Two custom ULX commands are clashing. I fixed it earlier, and it's doing it again.
I have two custom chat commands, both linking to websites. Here they are. Problem is, they don't work together, one works, the other doesn't. Any ideas?
function forumCommand( pl, text, teamonly )
if (text == "!forum") then
pl:SendLua([[gui.OpenURL("http://dark.freeforums.org")]]) -- Change ADDRESS to your chosen page.
for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. pl:Nick() .. " has gone to our forum!" )
end
end
end
hook.Add( "PlayerSay", "Chat", forumCommand )
function donateCommand( pl, text, teamonly )
if (text == "!donate") then
pl:SendLua([[gui.OpenURL("http://dark.freeforums.org/donations-t6.html")]]) -- Change ADDRESS to your chosen page.
for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. pl:Nick() .. " has considered donating!" )
end
end
end
hook.Add( "PlayerSay", "Chat", donateCommand )