SetPedArmour for body, and for head?

Hey,
Is there something to set the head armour ? With a police helmet its just a skin, damage dont change so i’d like to set a head armour when police put a helmet … ?

Something like :

if data.current.value == 'helmet' then
			local playerPed = PlayerPedId()
			Citizen.Wait(3000)			
			-- SetPedArmour(playerPed, 100) ??HEAD ARMOUR INSTEAD??
			setUniform(data.current.value, playerPed)

EDIT : Using ESX if that can helps

1 Like

I haven’t tried it myself, but perhaps try GivePedHelmet()

can you guide me how to use it

GivePedHelmet(
	ped --[[ Ped ]], 
	cannotRemove --[[ boolean ]], 
	helmetFlag --[[ integer ]], 
	textureIndex --[[ integer ]]
)

I tried to create ped armor that shot at the first shot still dead

ped = CreatePed(4, 0xAC4B4506, newX, newY, newZ, 0.0, true, true)
	SetPedArmour(ped, 10000)
			SetPedAccuracy(ped, 2500)
			SetPedSeeingRange(ped, 10000.0)
			SetPedHearingRange(ped, 10000.0)
			
			SetPedHelmet(ped , true)
			GivePedHelmet(ped, true, 1024, 0)
			SetPedMaxHealth(ped , 1000)	
2 Likes