LM-DEVELOPMENT has released a free resource on GitHub called "Staff Duty" for FiveM servers that utilize TX-Admin. This resource provides an efficient way to manage and check the duty status of staff members.
-
Integration with TX-Admin: The resource seamlessly works with TX-Admin, a popular management system for FiveM servers.
-
Simple Status Check: Both client and server can easily verify the duty status of a player.
-
Statebag-Based System: Utilizes FiveM's statebag system for efficient status updates.
For the best experience, we recommend using the following versions or newer:
- ox_lib: Version 3.27.0 or newer
- illenium-appearance: Version 5.4.0 or newer
With this resource, server administrators can:
- Track the duty status of staff members.
- Assign specific functions or permissions to staff members who are on duty.
- Improve logging and monitoring of staff activities.
Client-side Check: (Not Recommended)
if LocalPlayer.state.isOnDuty then
print("Hello World, I am on staff duty")
end
Server-side Check:
if Player(source).state.isOnDutythen
print("Hello World, I am on staff duty")
end