Evo Devlopment
  • HOME
    • Welcome
    • Contact Us
  • Produscts
    • Understanding Our Script System
    • Advanced K9 System
      • Key Features
      • Installation
      • Commands
      • Exports
    • Advanced K9 System V2
      • Key Features
      • Installation
      • Commands
      • Exports
    • Leo Tablet System
      • Key Features
      • Installation
      • Commands
      • Exports
    • Advanced Blackmarket
      • Key Features
      • Installation
      • Commands
      • Exports
    • Christmas Script
      • Key Features
      • Installation
Powered by GitBook
On this page
  1. Produscts
  2. Leo Tablet System

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.


PreviousCommandsNextAdvanced Blackmarket

Last updated 2 months ago