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 (
SetPedArmouris 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
