Exports
📦 Exports
The Police HR Tablet System provides a range of developer exports that allow you to access officer data, division structure, and permissions programmatically. These exports are ideal for integrating the HR system with other scripts such as MDTs, duty trackers, inventory systems, or admin panels.
Use them to enhance gameplay functionality, enforce role-based access, or build custom features around your department infrastructure.
Click to view Exports List
📦 Export: HR Tablet – Example Usage
The Police HR Tablet System includes useful exports so developers can interact with officer data, ranks, divisions, and permissions from other scripts like duty systems, MDTs, or menu UIs.
✅ Examples
📛 Get Officer Rank
exports['evo-pd-hr']:GetPlayerRank(identifier, function(rank)
print("Officer Rank:", rank)
end)Returns the officer's rank as a string (e.g., "Senior Officer").
🏢 Get Officer Division Name
exports['evo-pd-hr']:GetPlayerDivision(identifier, function(division)
print("Division:", division)
end)Returns the name of the division the player belongs to.
🖼️ Get Officer Profile Picture
exports['evo-pd-hr']:GetProfilePicture(identifier, function(picture)
print("Picture Path:", picture)
end)Returns the path or URL to the officer's profile photo.
🔐 Get Personal Permissions
exports['evo-pd-hr']:GetPersonalPermissions(identifier, function(permissions)
if permissions then
print("Permissions:", json.encode(permissions))
end
end)Returns a table of permission keys assigned to the officer (e.g., dashboard, employee, forms...).
🧩 Get Division Rank Info
exports['evo-pd-hr']:GetPlayerRankInDivision(identifier, function(data)
print(json.encode(data))
end)Returns the division_id, rank_name, and rank_number of the officer’s division rank.
📋 Get Division Rank Permissions
exports['evo-pd-hr']:GetDivisionRankPermissions("LSPD", 2, function(perms)
print("Permissions for LSPD Rank 2:", json.encode(perms))
end)Returns the permission table for a specific division and rank number.
🔍 Get Player’s Effective Division Permissions
exports['evo-pd-hr']:GetPlayerPermissionsInDivision(divisionID, identifier, function(perms)
print("Division Permissions:", json.encode(perms))
end)Returns the permissions for the player's assigned rank in the given division.
Last updated