[ESX] [OPEN-SOURCE]
The mdm_bulletproof_vests script is designed to incorporate ballistic inserts that can only be utilized when wearing a specific bulletproof vest (defined in the config). Upon using the insert, the vest replenishes itself based on the parameters specified in the configuration. If the player is equipped with both the designated bulletproof vest and inserts, removing the bulletproof vest will reset the player's vest to its default state.
This script is tailored for ESX and utilizes the ox_lib; however, it can be easily customized as it is open source.
Preview - YouTube
Fivem - Forum