GetOfficerByStateId


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.

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)

Last updated

Was this helpful?