IS NOT A SCRIPT FOR FIVEM. It's a third party script.
Features:
- Check IP and TCP port every X seconds.
- Send one or more message with a simple command.
python -m pip install --upgrade pip
pip install requests lxml
- Go in
discord_hook
folder. Run as Administrator:
python tcp_hook.py --startup auto install
- Install Python 3
- Run as Administrator:
python -m pip install --upgrade pip
pip install requests lxml
- Go in
discord_hook
folder. Run:
python cmd_hook.py HOOKNAME
Edit settings.py
file.
LOG_CONF = {
'log_dir' : 'E:\\', # end with "/" or "\\"
'max_bytes' : 5000000,
'backup_count' : 5,
}
WEBHOOK_CONF = {
'webhook_url' : 'changeme',
}
Replace changeme by your webhook url
FIVEM_CONF = {
'server_name' : 'ArtNod test server',
'server_ip' : '51.15.244.36',
'server_port' : 30120,
'check_delay' : 5
}
Replace by your custom settings
Update service with (Run as Administrator):
python tcp_hook.py --startup auto update
You can add your custom messages in settings.py
- webhook_url
- color
- msg
- message
- author: name and icon
- desc_text
- fields: name and value
- thumbnail
- footer: text and icon