Files
Elite-Gaming-FiveM/resources/Commands/serveradmin.lua
T
2021-12-03 01:19:31 +00:00

20 lines
485 B
Lua

AddEventHandler('chatMessage', function(source, name, msg)
sm = stringsplit(msg, " ");
if sm[1] == "/serveradmin" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, "🔧 Server Admin | " .. name, { 255, 0, 0 }, string.sub(msg,14))
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