CreateLog


Create a log entry in the MDT.

local logId = exports.drx_mdt:CreateLog(type, action, author_stateid)

Paramters:

  • type (string): The type of entity being logged. Possible values: citizens, incidents, reports, evidence, vehicles, warrants, bolos, weapons and cameras.

  • action (string): The action performed. Possible values: create, update and delete.

  • author_stateid (string): The state ID of the author (matches drx_mdt_officers.stateid).

Returns:

  • logId (number): The unique ID of the created log entry (drx_mdt_logs.id).

Last updated

Was this helpful?