Ped vest not working properly

So i have tried over 5 peds now and i cant put the vest on only 2 slots. I have custom peds with vests and have never had this problem. But now in the hwaycop and cop slot it does this https://gyazo.com/c84640a69406c33124417183ebb84643 it will go on for a quick second then disappear. No matter what model i use.

so its a custom ped ? maybe he needs custom armor like from the lspdfr script that lets u add more options to the ped like other armor, maybe mess with the metas and assign different armor to him see if that works

Yeah i usually never have this problem. Its in the slot. Its there, but its gone a second after you put it on. So maybe if it wasnt coming on at all that would be it but i dont think it is. I will have a look though.

maybe there is a script blocking it

I’m experiencing the same issue.

Running vRP (FYI)

I’ve gone through and manually disabled ALL references in playerstate to updating clothing customization (both in modules, and client script) and I’m still experiencing it.

Thus, It cant be related to playerstate updates - there has to be another script that is causing this.

Hopefully I’ll track down the culprit. @vizzra

@vizzra If you happen to be running vRP - this might help.

I tracked down the cause of my issue - which was a function inside the client.lua for vrp_basic_menu

Essentially was happening was there was an unused, but still executed function that was setup to give players armour.

“function vRPbm.setArmour(armour,vest)
local player = GetPlayerPed(-1)
if vest then
if(GetEntityModel(player) == GetHashKey(“mp_m_freemode_01”)) then
SetPedComponentVariation(player, 9, 4, 1, 2) --Bulletproof Vest
else
SetPedComponentVariation(player, 9, 6, 1, 2)
end
end
local n = math.floor(armour)
SetPedArmour(player,n)
end”

Commenting this out (as it was not needed) completely removed the issue.

Did you also have all the player state stuff removed also? I – the whole section so it ignores it, but still have the flash armor once then it doesn’t stay on. We have a really cool vest but its useless kind of a buzzkill. Any other ideas?