[FR/EN][ESX] Discord bot alert

how to fix [en][user_kill_environnement] does not exist

add: [‘user_kill_environnement’] = ‘killed by environnement’, in locales

any chance i can add /twt and other commands to appear in the logs?

Go to locales -> en.lua -> Add these line to this file " [‘user_kill_environnement’] = ‘TEXT’,"

how i can show with discord bot, /twt command executed by script esx_rpchat ?

i tried:

AddEventHandler(‘chatMessage’, function(source, name, message)
if(settings.LogTweetServer)then
if message:sub(1, 1) == “/” then
sm = stringsplit(message, " “);
if sm[1] == “/twt” then
local identity = getIdentity(source)
local nameName = “”… identity.firstname … " " … identity.lastname … “”,
CancelEvent()
sendToDiscord(nameName,string.sub(message,7),Config.bluetweet)
–sendToDiscordTweet(_U(‘server_twitter’), “” … identity.firstname … " " … identity.lastname …” # " … string.sub(message,7),Config.red)
end
end
end
end)

(Shared by some user, and works with other commands but not with esx_rpchat)

Hello there!I’m thinking about a possibility to make the “Alerts” as much clean as possible…
My question is: Is there any way to separate the alerts in many channels?
Ex.: Kill Logs in channel #Log-Kill ; Commands Log (In chat) in channel #Commands-log ; Server Logs (Server start etc.) in channel #Server-Logs

Thanks ahead for any answers. :slight_smile:

i have problem when i change from “32 slot” to “64 slot”
its cant see who kill player maybe its show “dead by suicide” not show kill

image

thank you, everything work fine even with the money transfer !

1 Like

Same problem. 64 slot only say suicide or npc kill

can you share full log please ?

This ressource is updated for OneSync, juste change

function GetPlayerByEntityID(id)
	for i=0,32 do -- Here
		if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
	end
	return nil
end
1 Like

hello friends a question! How could I solve this console error? I would greatly appreciate your help

1 Like


help

Hi i want add with the bot an annonce message when the server restart and after the server have restart ! :slight_smile: can u help me !

it already has an announce message when the server start. Check again in your config

Yes when it starts but I try to put a message 5 minutes before reboot sorry for my english :slight_smile:

You mean like before it auto-restart or when you want to restart the server ? If it is auto restart then i think you should just inform players about the auto restart time on discord or something. If it is about when you manually restart the server then i think it is not possible to have a discord bot for that.

hello all, how add print comand /tweet and /anontweet? and how i can know who send one message anontweet?

ok put into server o client ? say me where i put this line thanks

Is it possible to ignore commands?