Add a body armor to the cop


#1

Hello,

I just would like to know how can I equip a body armor for cop :slight_smile: this is what I did (last line) but he does not work, if someone could help me I would be very happy !

						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_NIGHTSTICK"), true, true)
						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PISTOL50"), 150, true, true)
						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_STUNGUN"), true, true)
						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PUMPSHOTGUN"), 150, true, true)
						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_BULLPUPRIFLE"), 150, true, true) --TEST BULLPUP
						GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_BODYARMOR"), true, true)

Have a good day


#2

I haven’t tested it but maybe this will be of some use?

SetPedArmor(GetPlayerPed(-1), 100);

Edit: Edited to make an easier one liner.


#3

I’ll give you a feedback this afternoon, if it works, not at home actually, thanks !


#4

Hello,

if you want to add a body armor for cop :

you must add :

SetPedComponentVariation(GetPlayerPed(-1), 9, 4, 1, 2)

and for remove :

SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 1, 2)

#6

Hello Xtas3, and it possible to share your script please for my french server


#7

Hello Patrick47,

I use actually the Release Cop FiveM V1.0.1 by Kyomini with some modifications but I’m not finished yet.


#8

Tu es français ? You french Possible to talk to one another in private?