Code not working for some reason need help please :)

AddEventHandler(‘chatMessage’, function(source, n, message)
command = stringsplit(message, " ")
if(command[1] == “/help”) then
CancelEvent()
TriggerClientEvent(“chatMessage”, -1, “”, { 255, 251, 15 }, “/showid [first name] [last name] [age] [wanted yes or no]”)
end
end)

COULD SOMEONE HELP ME PLEASE

Do u have ur string split in?

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

No lol i forgot to add that in.

Now i get this error

Send me the whole file and ill have a look. It does direct you to where the line is

Yes I have tried lots of things also the script is copyrighted for steeling purposes just letting ya know.

Upload it to mediafire

Nah i have fixed it now dont matter