History Entry for Player
You can only use these events on client-side, do not try any other way.
This feature is used to insert a history entry for a player and is compatible only when Config.MDT.newMdt = false
. It allows history data to be added to the player's job database. For example, if the callback is executed for a police officer, only players in the police job can view the entry.
Parameters
The server callback requires three parameters:
Data Object
Contains the history data to be inserted:
identifier (string): The player's identifier.
datatype (string): Specifies the type of entry (e.g.,
infraction
). Do not modify this value.dataobj (table): Includes detailed information about the entry:
message (string): A descriptive message.
by (string): The individual adding the entry (e.g., "John#1234").
title (string): The title for the entry.
data (table): Key-value pairs for additional details:
key: The label/title of the data.
value: The content/value of the data.
Example (Client-Side)
This feature is designed for client-side usage.
Ensure that the
identifier
anddataobj
values are correctly formatted and adapted to your server's logic.
Last updated