Citizen Search

We are going to divide this part into 10 different parts: citizen info, search & capture, dangerous, notes, fines, reports, licenses, weapons, vehicles and properties.

Citizen Info

Here you can see info like name, lastname, gender, nationality, birthdate, id(player identifier), phone number, bank account number and the job.

Some servers can get XXXXXXXXX in some fields because the script can't find that citizen information, here you can take a look where to find the code to change the way to get that missing fields:

Nationality: custom/server/menu/nationality.lua Phone Number: custom/server/menu/phone.lua Bank Account Number: custom/server/menu/bank.lua

Search capture & Dangerous

Those checks are only information available so that the police can know more information about the player.

Notes

Here each job can attach notes with relevant citizen information. Notes can be pinned and will stand out due to their purple color.

Fines

Here all the fines that the citizen has received will be shown, the agent can delete the fine and add more fines.

Reports

All the criminal code registered here will be listed here. You can also add a personalized fine to the citizen.

You can directly access the report by clicking on the list of reports that are related to this citizen.

Licenses & Weapons

The user's licenses and weapons registered in the player's inventory will be displayed here. You can add licenses to the player. Below we will list the files to modify access to this data: Licenses: custom/server/menu/licenses.lua Weapons: custom/server/menu/weapons.lua You can make some weapons not be displayed in the list by modifying the Config.BlackListedUsersWeapons option in config/evidences.lua, example:

Config.BlackListedUsersWeapons = { -- The list of weapons that will not be listed in the citizen profile
    "WEAPON_STUNGUN",
    "WEAPON_FLAREGUN",
    "WEAPON_FIREEXTINGUISHER",
}

Vehicles

The list of all the vehicles that the citizen has is displayed along with all the license plates of all the cars. You can modify the logic for obtaining this data in this file: custom/serrver/menu/vehicles.lua Most addon vehicles do not have a label set in the game files NULL, therefore we have created some options to create labels for each vehicle in config/vehicles.lua -> Config.CustomCarLabels

Config.CustomCarLabels = { -- A list for custom vehicle labels, for the citizen search only will take this label if the vehicle label is NULL
    [GetHashKey("police")] = "POLICE PATROL",
    [GetHashKey("police2")] = "POLICE PATROL 2",
    [GetHashKey("police3")] = "POLICE PATROL 3",
}

In this example the label of the vehicles police, police2, police3 has been changed, you should do this with all the addon cars you have.

Properties

The list of all the properties that the citizen has, you can modify logic to get this data here: custom/server/menu/propiertes.lua

Last updated