Bulletproof vest bug

On The server im playing On we pbviously have a clothing store, where all The clotibg pieces work a 100%. But The bulletproof vests arent Working. Every time u put Them On they pop off Like 15-30 seconds later and u have to take it On again and again and again. We have been trying a couple diferent things to fix it But cant find a fix. So now im asking u guys if anyone has a fix?

1 Like

maybe its not saving properly to the db ? thats why it removes it after a few seconds ?

Sounds logic. I’ll look into it and tell ya if it works

Uhhm What if it is coded from and vrp??? Could it be because its not in The scripts But only there as a fictive / cosmetic item without and item ID wich means it cant talk with The database?

possible or the id is just incorrect

Yea But the thing is I have noticed that it doesent work on most servers so I guess the vest is just wrong done in an vrp or something

anyone who has found a way to fix it on ??

up…

I’m currently looking for how to take off this stupid bulletproof jacket. Didn’t find how!

Found the problem, if you’re using vRP, vrp_basic_menu/client.lua around the line 212, you should find this piece of code:

Citizen.CreateThread(function()
  while true do
    Citizen.Wait(30000)

    if IsPlayerPlaying(PlayerId()) and state_ready then
	  if vRPbm.getArmour() == 0 then
	    if(GetEntityModel(GetPlayerPed(-1)) == GetHashKey("mp_m_freemode_01")) or (GetEntityModel(GetPlayerPed(-1)) == GetHashKey("mp_f_freemode_01")) then
	      SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 1, 2)
		end
	  end
    end
  end
end)

comment it and it should work!
basically, if you didnt have any armor in your ped, it would remove the vest component.