Nice Script, but can you edit that you can set a webhook to Discord for this Info? love the script
Thanks for the support and yea i can add a webhook to this. But now i am Not at Home but in 2-3 days i shloud be included
Hey ho
We got this error, when you call an admin and the admin got no message:
SCRIPT ERROR: @sa_callguide/server/main.lua:18: attempt to index a nil value (global ‘Config’)
Thanks for the message, I think i know the problem. I will be fix it soon
so i think i fixed the problem (i am on Holiday), can you test it and then message me if it is working? just download it from github
[ script:sa_callguide] SCRIPT ERROR: @sa_callguide/server/main.lua:20: attempt to concatenate a nil value (field ‘PlayerAsked’)
New Error
RegisterNetEvent(‘sa_callguide:NotifyTeam’)
AddEventHandler(‘sa_callguide:NotifyTeam’, function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if Configsv.ActiveWebhook then
sendToDiscord(Language['WebhookMessage']..xPlayer.getName())
end
for k, playerid in pairs(GetPlayers()) do
local xPlayers = ESX.GetPlayerFromId(playerid)
for i, v in ipairs(Configcl.Groups) do
if xPlayers.getGroup() == v then
--xPlayers.showNotification(Language['PlayerAsked']..xPlayer.getName())
TriggerClientEvent('okokNotify:Alert', playerid, "Title", "Message", 5000, 'info')
end
end
end
end)
Comment out your shownotification and use the notificationsystem from okok works. Putting the value PlayerAsked in Language Config doesnt work. Maybe it helps you
Hmm sad but i see the problem. I fix it soon…
i think i fixed it can you test it? If it is not working send me a message (i cant test it because i am on holiday)