Files
Jacob dd6f569620 Revert "iy6ggh"
This reverts commit d4fe71a0263f53a8b407a2a790fc34fbb0e36406.
2023-06-06 22:17:15 +01:00

20 lines
479 B
Lua

AddEventHandler('chatMessage', function(source, name, msg)
sm = stringsplit(msg, " ");
if sm[1] == "/ad" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "📡 Advertisement | " .. name, { 255, 255, 51 }, string.sub(msg,5))
end
end)
function stringsplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end