LK_lk
September 22, 2017, 10:20pm
1
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
DavidR
September 22, 2017, 11:03pm
2
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
LK_lk
September 23, 2017, 9:38am
3
Hyperz:
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.
DavidR
September 23, 2017, 11:47am
5
Send me the whole file and ill have a look. It does direct you to where the line is
LK_lk
September 23, 2017, 11:51am
6
Yes I have tried lots of things also the script is copyrighted for steeling purposes just letting ya know.
LK_lk
September 23, 2017, 12:31pm
9
Nah i have fixed it now dont matter