Store logo
Premium Scripts

rps_BodyArmor

$15.00

Verifying accountโ€ฆ

Description

Realistic body armor for roleplay servers. The vest is the carrier, the plates inside it give the protection. Open your vest, slide plates in, and watch them crack under fire โ€“ a broken plate has to be pulled out and replaced. Rifle rounds chew through cheap plates; Level IV ceramic stops them.

Features

Vests & plates

  • ๐Ÿฆบ Vest = carrier, plates = protection โ€“ 3 vests included (Plate Carrier, Heavy, Police / job-locked)
  • ๐ŸŽ’ 2-slot plate stash per vest โ€“ right-click the vest โ†’ Open vest opens a second inventory next to yours (ox_inventory / tgiann-inventory). Only plates fit.
  • ๐Ÿ” Plates travel with the vest โ€“ trade it, stash it, drop it; its plates go with it
  • ๐Ÿงฅ Vest stays in your inventory โ€“ use it to put it on, use it again to take it off (progress bar + animation)
  • ๐Ÿ”’ The worn vest can't be dropped, given or stashed โ€“ take it off first

Durability

  • ๐Ÿ“‰ Every plate has its own durability, saved on the item (shows as a durability bar + Protection: 40/75)
  • ๐Ÿ’ฅ A plate at 0 becomes a Broken Plate in the same slot โ€“ no protection, swap it for a new one
  • ๐Ÿ”„ Change plates while wearing the vest โ€“ armour updates instantly
  • ๐Ÿ“ Vest description shows its plates: Plates: Ceramic Plate (Level IV) 80%, Broken plate

Damage model

  • ๐ŸŽฏ Hit-location protection โ€“ plates only cover the torso; limb and head shots go straight to health (head ร—1.5)
  • ๐Ÿ”ซ Weapon classes โ€“ class 1 pistols, class 2 SMGs / shotguns, class 3 rifles / MGs / snipers / heavy
  • ๐Ÿ›ก๏ธ Per-plate, per-class stats โ€“ how fast a plate wears and how much damage pierces to health
  • โž• Two plates stack: 2 ร— Level IV = 150 armour; front plate takes hits first, overflow goes to the back plate
  • ๐Ÿข Optional movement penalty / sprint block per vest

Server side

  • ๐Ÿ” Server-authoritative: durability can only go down, equip/remove timers are checked, no client-side armour hacks (SetPedArmour is enforced)
  • ๐Ÿ’พ Worn vest survives reconnects and restarts
  • ๐Ÿงฉ Exports for other scripts

Highlights

๐Ÿงฐ Framework & inventory support

Built on rps_lib, so one script runs everywhere:

Inventory Frameworks Open vest
ox_inventory ESX, QBCore, Qbox 2-slot stash ยท right-click button + /vest
tgiann-inventory ESX, QBCore, Qbox 2-slot stash ยท right-click button + /vest
qb-inventory QBCore 2-slot menu ยท /vest
ps-inventory QBCore 2-slot menu ยท /vest
lj-inventory QBCore 2-slot menu ยท /vest

Install guides with copy-paste item definitions for every inventory are included (install/ox.md, install/tgiann.md, install/qb.md, install/ps.md, install/lj.md) plus item images.

โŒจ๏ธ Commands

Command Description
/vest Open your vest to change plates
/removearmor Take off your vest
/armor Vest armour + each plate's condition

โš™๏ธ Config preview

Config.PlateSlots  = 2
Config.BrokenPlate = 'broken_plate'

Config.Vests = {
    armor_vest_police = {
        label = 'Police Plate Carrier', speed = 1.0,
        jobs = { 'police', 'sheriff' },
        vest = { male = { drawable = 13, texture = 0 }, female = { drawable = 9, texture = 0 } },
    },
}

Config.Plates = {
    armor_plate_heavy = {
        label = 'Ceramic Plate (Level IV)', armour = 75,
        wear   = { [1] = 0.6, [2] = 0.6, [3] = 0.5 },
        pierce = { [1] = 0.0, [2] = 0.0, [3] = 0.0 },
    },
}

Config.WeaponOverrides = {
    [`WEAPON_PISTOL50`] = 2, -- Desert Eagle counts as class 2
}

Everything is configurable: vests, plates, weapon classes, clothing per gender, timings, texts.

๐Ÿ”Œ Exports

-- client
exports.rps_BodyArmor:IsWearingArmor()
exports.rps_BodyArmor:GetArmor()        -- { item, label, armour, max, plates }
-- server
exports.rps_BodyArmor:GetArmor(src)     -- { item, vestId, plates }
exports.rps_BodyArmor:ClearArmor(src)

๐Ÿ“ฆ Requirements

  • rps_lib
  • One of: ox_inventory, tgiann-inventory, qb-inventory, ps-inventory, lj-inventory