So this is what i did and its not showing my prefix and also not the emoji

--- DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
--- DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
--- DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
--- DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
--- DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
function Emojit(text)
for i = 1, #emoji do
for k = 1, #emoji[i][1] do
text = string.gsub(text, emoji[i][1][k], emoji[i][2])
end
end
return text
end
local Director = {"steam:","ip:127.0.0.1",}
local Admin = {"steam:11000013228a95a", }
local Test = {"steam:","ip:",}
local Moderator = {"steam:110000108902d31", "steam:11000010e5465c9", "steam:11000010b3b480d", "steam:1100001083b9da9", "steam:1100001172acba7", }
local Owner = {"steam:11000011549e13f","steam:110000107d2ab57",}
local CommunityManager = {"steam:1100001075dcb0c",}
local HeadMod = {"",}
local preadmin = {"steam:","steam:","steam:",}
local premod = {"steam:1100001150a49e5", "steam:110000109ac4abe", "steam:11000010a9e7ee3", "steam:11000011c9d6f57", "steam:110000113c5aba4", "steam:110000108a89cd2", "steam:11000011292783a", }
local superadmin = {"steam:11000010d321783",}
local donmod = {"steam:","ip:",}
local superadmin = {"steam:11000010d321783","ip:",}
local bronzedonator = {"steam:","steam:11000010801d208", "steam:11000011212efe7", "steam:110000115f9732b", "steam:110000131e7e790", "steam:11000011bf0bf39", "steam:110000119028107", "steam:1100001189092e7", "steam:11000010c5fb7e7", "steam:110000109a601de", "steam:110000116957349", "steam:110000101e6d37f", "steam:11000011503fea3", "steam:110000105da6418", "steam:110000118121a0f", "steam:11000011ac4fd74", }
local silverdonator = {"steam:110000104ac3bb4","steam:110000109b7d6a4", "steam:11000011292783a", "steam:110000133c8d56f", }
local golddonator = {"steam:",}
local platinumdonator = {"steam:110000108a89cd2","steam:110000114daab2d","steam:1100001160600c9", "steam:11000011bf25c50", "steam:11000011c9d6f57", "steam:11000011ac0b459", "steam:11000010785a648", "steam:110000112c56562", }
local supremedonator = {"steam:",}
local leadadmin = {"steam:1100001151f9d75"}
AddEventHandler('chatMessage', function(Source, Name, Msg)
args = stringsplit(Msg, " ")
message = Emojit(message)
CancelEvent()
if string.find(args[1], "/") then
local cmd = args[1]
table.remove(args, 1)
else
local player = GetPlayerIdentifiers(Source)[1]
if has_value(Admin, player) then
TriggerClientEvent('chatMessage', -1, "Admin | " .. Name, { 255, 0, 0 }, Msg)
elseif has_value(Moderator, player) then
TriggerClientEvent('chatMessage', -1, "Moderator | " .. Name, { 0, 255, 247 }, Msg)
elseif has_value(Owner, player) then
TriggerClientEvent('chatMessage', -1, "Community Owner | " .. Name, { 0, 255, 50 }, Msg)
elseif has_value(CommunityManager, player) then
TriggerClientEvent('chatMessage', -1, "Community Manager | " .. Name, { 0, 150, 255 }, Msg)
elseif has_value(premod, player) then
TriggerClientEvent('chatMessage', -1, "Trial-Staff | " .. Name, { 255, 144, 0 }, Msg)
elseif has_value(leadadmin, player) then
TriggerClientEvent('chatMessage', -1, "Lead Admin | " .. Name, { 0, 150, 255 }, Msg)
elseif has_value(superadmin, player) then
TriggerClientEvent('chatMessage', -1, "Senior Admin | " .. Name, { 255, 0, 0 }, Msg)
elseif has_value(bronzedonator, player) then
TriggerClientEvent('chatMessage', -1, "Bronze Donator | " .. Name, { 160, 100, 40 }, Msg)
elseif has_value(silverdonator, player) then
TriggerClientEvent('chatMessage', -1, "Silver Donator | " .. Name, { 75, 75, 75 }, Msg)
elseif has_value(golddonator, player) then
TriggerClientEvent('chatMessage', -1, "Gold Donator | " .. Name, { 255, 180, 0 }, Msg)
elseif has_value(platinumdonator, player) then
TriggerClientEvent('chatMessage', -1, "Platinum Donator | " .. Name, { 0, 150, 150 }, Msg)
elseif has_value(supremedonator, player) then
TriggerClientEvent('chatMessage', -1, "Supreme Donator | " .. Name, { 255, 3, 62 }, Msg)
else
TriggerClientEvent('chatMessage', -1, "User | " .. Name, { 235, 214, 51 }, Msg)
end
end
end)
function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
function Emojit(text)
for i = 1, #emoji do
for k = 1, #emoji[i][1] do
text = string.gsub(text, emoji[i][1][k], emoji[i][2])
end
end
return text
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
Did i do something wrong?