Retrieve detailed information about an officer using their state íd.
local officer = exports.drx_mdt:GetOfficerByStateId(stateid)
Paramters:
stateid (string): The state id of the officer.
stateid
string
Returns:
officer (table or nil): Returns a table with officer info if found, otherwise nil. The table includes: - id: (number) - stateid: (string) - badgenumber: (string) - department_id: (number) - rank_id: (number) - suspended: (boolean) - image_url: (string or nil) - roles: (table of role IDs)
officer
table
nil
id
number
badgenumber
department_id
rank_id
suspended
boolean
image_url
roles
Last updated 8 months ago