ðŸĶīAdd Injuries

Config.BodyParts = {
	-- ["0"] = { id = "hip", label = "Damaged Hipbone", levels = { ["default"] = "Damaged", ["10"] = "Damaged x2", ["20"] = "Damaged x3", ["30"] = "Damaged x3", ["40"] = "Damaged x3", ["50"] = "Damaged x3" } },
	["0"] = { id = "hip", label = "Damaged Hipbone", levels = { ["default"] = "Damaged", ["10"] = "Damaged x2", ["20"] = "Damaged x3", ["30"] = "Damaged x3", ["40"] = "Damaged x3" } }, -- hip bone,
	["10706"] = { id = "rclavicle", label = "Right Clavicle", levels = { ["default"] = "Damaged" } },                                                                                 --right clavicle
	["64729"] = { id = "lclavicle", label = "Left Clavicle", levels = { ["default"] = "Damaged" } },                                                                                  --right clavicle
	["14201"] = { id = "lfoot", label = "Left Foot", levels = { ["default"] = "Damaged" } },                                                                                          -- left foot
	["18905"] = { id = "lhand", label = "Left Hand", levels = { ["default"] = "Damaged" } },                                                                                          -- left hand
	["24816"] = { id = "lbdy", label = "Lower chest", levels = { ["default"] = "Damaged" } },                                                                                         -- lower chest
	["24817"] = { id = "ubdy", label = "Upper Chest", levels = { ["default"] = "Damaged" } },                                                                                         -- Upper chest
	["24818"] = { id = "shoulder", label = "Shoulder", levels = { ["default"] = "Damaged" } },                                                                                        -- shoulder
	["28252"] = { id = "rforearm", label = "Right Forearm", levels = { ["default"] = "Damaged" } },                                                                                   -- right forearm
	["36864"] = { id = "rleg", label = "Right leg", levels = { ["default"] = "Damaged" } },                                                                                           -- right lef
	["39317"] = { id = "neck", label = "Neck", levels = { ["default"] = "Damaged" } },                                                                                                -- neck
	["40269"] = { id = "ruparm", label = "Right Upper Arm", levels = { ["default"] = "Damaged" } },                                                                                   -- right upper arm
	["45509"] = { id = "luparm", label = "Left Upper Arm", levels = { ["default"] = "Damaged" } },                                                                                    -- left upper arm
	["51826"] = { id = "rthigh", label = "Right Thigh", levels = { ["default"] = "Damaged" } },                                                                                       -- right thigh
	["52301"] = { id = "rfoot", label = "Right Foot", levels = { ["default"] = "Damaged" } },                                                                                         -- right foot
	["57005"] = { id = "rhand", label = "Right Hand", levels = { ["default"] = "Damaged" } },                                                                                         -- right hand
	["57597"] = { id = "5lumbar", label = "5th Lumbar vertabra", levels = { ["default"] = "Damaged" } },                                                                              --waist
	["58271"] = { id = "lthigh", label = "Left Thigh", levels = { ["default"] = "Damaged" } },                                                                                        -- left thigh
	["61163"] = { id = "lforearm", label = "Left forearm", levels = { ["default"] = "Damaged" } },                                                                                    -- left forearm
	["63931"] = { id = "lleg", label = "Left Leg", levels = { ["default"] = "Damaged" } },                                                                                            -- left leg
	["31086"] = { id = "head", label = "Head", levels = { ["default"] = "Damaged" } },                                                                                                -- head
}

To add another injury on a bone you just need to copy and pase an existing one

["HASH"] = { id = "ID_BONE", label = "BONE LABEL", levels =
 { 
    ["default"] = "Damaged",
    [10] = "The bone is damaged 10%",
    [20] = "The bone is damaged more then 10%" 
 } 
},

If you get NOT FOUND in reason it means you dont have that injury damage weapon registered in client/modules/weapons.lua

WEAPONS = {
    [`WEAPON_UNARMED`] = { "Player got beaten to death", "beaten" },
    [`WEAPON_KNIFE`] = { "Player has been stabbed", "stabbed" },
    [`WEAPON_NIGHTSTICK`] = { "Player has been hit with a nightstick", "beaten" },
    [`WEAPON_HAMMER`] = { "Player has been struck with a hammer", "stabbed" },
    [`WEAPON_BAT`] = { "Player has been hit with a bat", "beaten" },
    [`WEAPON_GOLFCLUB`] = { "Player has been whacked with a golf club", "beaten" },
    [`WEAPON_CROWBAR`] = { "Player has been struck with a crowbar", "stabbed" },
    [`WEAPON_PISTOL`] = { "Player has been shot with a pistol", "shot" },
    [`WEAPON_COMBATPISTOL`] = { "Player has been shot with a combat pistol", "shot" },
    [`WEAPON_APPISTOL`] = { "Player has been shot with an AP pistol", "shot" },
    [`WEAPON_PISTOL50`] = { "Player has been shot with a .50 pistol", "shot" },
    [`WEAPON_MICROSMG`] = { "Player has been shot with a micro SMG", "shot" },
    [`WEAPON_SMG`] = { "Player has been shot with an SMG", "shot" },
    [`WEAPON_ASSAULTSMG`] = { "Player has been shot with an assault SMG", "shot" },
    [`WEAPON_ASSAULTRIFLE`] = { "Player has been shot with an assault rifle", "shot" },
    [`WEAPON_CARBINERIFLE`] = { "Player has been shot with a carbine rifle", "shot" },
    [`WEAPON_ADVANCEDRIFLE`] = { "Player has been shot with an advanced rifle", "shot" },
    [`WEAPON_MG`] = { "Player has been shot with a machine gun", "shot" },
    [`WEAPON_COMBATMG`] = { "Player has been shot with a combat machine gun", "shot" },
    [`WEAPON_PUMPSHOTGUN`] = { "Player has been shot with a pump shotgun", "shot" },
    [`WEAPON_SAWNOFFSHOTGUN`] = { "Player has been shot with a sawed-off shotgun", "shot" },
    [`WEAPON_ASSAULTSHOTGUN`] = { "Player has been shot with an assault shotgun", "shot" },
    [`WEAPON_BULLPUPSHOTGUN`] = { "Player has been shot with a bullpup shotgun", "shot" },
    [`WEAPON_SNIPERRIFLE`] = { "Player has been shot by a sniper rifle", "shot" },
    [`WEAPON_HEAVYSNIPER`] = { "Player has been shot by a heavy sniper", "shot" },
    [`WEAPON_REMOTESNIPER`] = { "Player has been shot by a remote sniper", "shot" },
    [`WEAPON_GRENADELAUNCHER`] = { "Player has been hit by a grenade launcher", "beaten" },
    [`WEAPON_GRENADE`] = { "Player has been blown up by a grenade", "burn" },
    [`WEAPON_STICKYBOMB`] = { "Player has been blown up by a sticky bomb", "burn" },
    [`WEAPON_MOLOTOV`] = { "Player has been set on fire by a Molotov cocktail", "burn" },
    [`WEAPON_RPG`] = { "Player has been hit by an RPG", "beaten" },
    [`WEAPON_MINIGUN`] = { "Player has been shot with a minigun", "shot" },
    [`WEAPON_GRENADELAUNCHER_SMOKE`] = { "Player has been hit by a smoke grenade launcher", "beaten" },
    [`WEAPON_RAYPISTOL`] = { "Player has been shot by a ray pistol", "shot" },
    [`WEAPON_RAYCARBINE`] = { "Player has been shot by a ray carbine", "shot" },
    [`WEAPON_RAYMINIGUN`] = { "Player has been shot with a ray minigun", "shot" },
    [`WEAPON_RAYSHOTGUN`] = { "Player has been shot with a ray shotgun", "shot" },
    [`WEAPON_RAYASSAULTRIFLE`] = { "Player has been shot with a ray assault rifle", "shot" },


    [-842959696] = { "Player has been fallen to death", "beaten" },
}

Example

[-1553120962] = { "Has been hit by a vehicle", "beaten" },

Last updated