Script is not working, don't know why

I have this script that someone else made as a template. I edited the script to my own needs and it is not working now. Can someone help me fix it?

local Admin = {“steam:11000010751ea53”}
local Highway = {“steam:110000113d813e0”}
local Sheriff = {“steam:11000010a55353b”}
local Police = {“steam:110000109d8b731”}
local Civillian = {“steam:110000109af6012”}
local sent
AddEventHandler(‘chatMessage’, function(s, n, m)
CancelEvent()
sent = false
for i=1, #groupOne do
if GetPlayerIdentifiers(s)[1] == Admin[i] then
TriggerClientEvent(‘chatMessage’, -1, "Admin | " … n, { 255, 0, 0 }, m)
elseif GetPlayerIdentifiers(s)[1] == Highway[i] then
TriggerClientEvent(‘chatMessage’, -1, "Highway | " … n, { 255, 255, 255 }, m)
elseif GetPlayerIdentifiers(s)[1] == Sheriff[i] then
TriggerClientEvent(‘chatMessage’, -1, "Sheriff | " … n, { 255, 255, 255 }, m)
elseif GetPlayerIdentifiers(s)[1] == Police[i] then
TriggerClientEvent(‘chatMessage’, -1, "Police | " … n, { 255, 255, 255 }, m)
elseif GetPlayerIdentifiers(s)[1] == Civilian[i] then
TriggerClientEvent(‘chatMessage’, -1, "Civilian | " … n, { 255, 255, 255 }, m)
elseif sent == false
TriggerClientEvent(‘chatMessage’, -1, "None | " … n, { 255, 0, 0 }, m)
else
TriggerClientEvent(‘chatMessage’, -1, "None | " … n, { 255, 0, 0 }, m)
end
end
end
end)

1 Like

Ugh. Please put your code in the code tags. It’s pretty much unreadable looking like that.

Code tags:
```lua
– code here
```
Will result in

-- code here

wow, forgot I still had this topic. please lock/unlist it if you can.

Crap, I didn’t even see the date xD

Closed on request of OP

1 Like