Job Duty Logger [Qbox/QBCore]

A FiveM Script for Qbox & QBCore for logging duty for jobs.

This script logs when a player goes on or off duty in a FiveM server.
Each job has its own Discord webhook URL for logging, making it easier to manage and monitor duty status changes.
The script sends a message to the respective Discord channel with the player’s name, job, and the time they toggled their duty status.
The messages are color-coded: green for going on duty and red for going off duty.

image

Download here : GitHub

4 Likes

Update :

  • Added Total Time Calculation to the off duty log.
  • Added a cooldown to stop logs being spammed, configurable in the config.

ESX ? no ? :frowning:

I’ve test this script using qbox on my server… I dont know whats wrong with it but it keep spamming when One of Player do their job, even when I set logCooldown it still spamming on duty > on duty > on duty. maybe the problem is… it detecting teleport as On/Off duty?

esx :upside_down_face: