Evidences

config/evidences.lua
Config.EvidenceSystem = true

Config.Evidences = {
    ["Shoot"] = {
        sprite = 41,
        color = { r = 255, g = 255, b = 100 },
        item = "evidence_a",
        anim = false,
    },
    ["Impact"] = {
        sprite = 6,
        color = { r = 255, g = 128, b = 0 },
        item = "evidence_n",
        anim = true,
    },
    ["BloodRest"] = {
        sprite = 20,
        color = { r = 225, g = 0, b = 0 },
        item = "evidence_r",
        anim = true,
    },
    ["NpcBlood"] = {
        sprite = 20,
        color = { r = 225, g = 0, b = 0 },
        item = "evidence_r",
        anim = true,
    },
    ["VehCrash"] = {
        sprite = 36,
        color = {},
        item = "evidence_b",
        anim = true,
    },
    ["Drug"] = {
        sprite = 20,
        color = { r = 0, g = 200, b = 0 },
        item = "evidence_v",
        anim = true,
    },
}

Config.Ammos = {
    ["AMMO_PISTOL"] = "9x19mm [BAJO]",
    ["AMMO_SMG"] = "9x19mm [BAJO]",
    ["AMMO_RIFLE"] = "7.62x51mm [MEDIO]",
    ["AMMO_MINIGUN"] = "7.62x51mm [MEDIO]",
    ["AMMO_SHOTGUN"] = "Cartucho cal. 12 [ALTO]",
    ["AMMO_SNIPER"] = "12.7x99mm [ALTO]",
    ["AMMO_SNIPER_REMOTE"] = "12.7x99mm [ALTO]",
    ["AMMO_GRENADELAUNCHER"] = "Explosivo",
    ["AMMO_RPG"] = "Explosivo",
    ["AMMO_FLARE"] = "Bengala",
}

Config.AmmoTypes = {
    ['weapon_pistol']                   = "AMMO_PISTOL",
    ['weapon_pistol_mk2']               = "AMMO_PISTOL",
    ['weapon_combatpistol']             = "AMMO_PISTOL",
    ... -- All the weapons ammos
}

Config.WeaponsLabels = {
    ['weapon_unarmed']                  = 'Fists',               
    ['weapon_dagger']                   = 'Dagger',          
    ['weapon_bat']                      = 'Bat',             
    ...     
}

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

Config.BlackListedShootAlertWeapons = { -- The list of weapons that will not trigger the shoot alert   
    --"WEAPON_STUNGUN",
    --"WEAPON_FLAREGUN",
    --"WEAPON_FIREEXTINGUISHER",
}

Config.SecondsToCool = 600

-- Some non important code

In the Config.Evidences all types of evidence are shown, at the moment no more can be created, you can only modify the spirit, color, the item and a parameter called anim that will make the player bend down to pick it up. the evidence, for example if it is a shot normally the person who shoots is at a certain height and not on the ground, with the IK system the player will automatically move his hand to the position where the evidence is to pick it up.

The Config.Ammos are the names of each ammo type that will be displayed in the report.

The Config.AmmoTypes are the ratings for each ammo for each weapon.

The Config.BlackListedShootAlertWeapons are the weapons that will be ignored so as not to send a shooting alert to the police.

The Config.SecondsToCool are the seconds that have to pass for an evidence to be deleted.

Last updated