i keep getting this error after using the registercomand
please any idea how to fix it?|
the file :
RegisterCommand(“mute”, function(s,a,r)
local license = “”
local user = GetPlayerIdentifiers(a[1]) local time = a[2]
for i=1,10 do
if user[i] then
thing = string.find(user[i], “license:”)
if thing then
license = thing
end
end
end
– change the true to your permission system check
if true then
if Get_UserMute(license) ~= 0 then
TriggerClientEvent(“chatMessage”, s, "^1 ! لا يمكنك اسكات نفس اللاعب مرتين ")
else
Set_UserMute(license, time)
end
end
end, true)