Hello,
I just would like to know how can I equip a body armor for cop 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
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.
1 Like
I’ll give you a feedback this afternoon, if it works, not at home actually, thanks !
Xtas3
May 9, 2017, 8:43am
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)
2 Likes
Hello Xtas3, and it possible to share your script please for my french server
Xtas3
May 9, 2017, 8:59am
7
Hello Patrick47,
I use actually the Release Cop FiveM V1.0.1 by Kyomini with some modifications but I’m not finished yet.
1 Like
Tu es français ? You french Possible to talk to one another in private?
1 Like
Rodier
May 26, 2019, 6:40pm
10
hi
can you help me - how to add body armor to esx police job menu?
thanks
Rodier
July 7, 2019, 9:59am
12
But that is just texture. Not real armor
Use this function :
set_ped_armour(GetPlayerPed(-1), 100)
You can set this after setpedcomponent…
Where exactly do you put this? I’m using esx_policejob
Rodier
August 14, 2019, 5:47pm
16
use esx police job that have inside code with bullet_wear
I actually found that today messing around. I need to find a police PED with armor though because I only have the SWAT. Thanks!
This may sound stupid, how exactly do you get the “ComponentVariation” numbers “SetPedComponentVariation(GetPlayerPed(-1), 9, 4, 1, 2 )” - These 4 numbers. I’m trying to add a skin but don’t know how to add a specific one I want as I don’t know what the 4 numbers are. If it helps I use ESX and have EUP clothing so is it possible to get the id? / How do I get the ids for clothing?
Thanks for any help. Much appreciated
Hi, How Can i Set 200 Armor in -----> SetPedArmor(GetPlayerPed(-1), 100);
1 Like
Vigier
October 1, 2020, 3:39am
20
how can i set when armour = 0 then SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 1, 2)
Hi guys, where i can find for Vest the skin ? Example how to change skin that vest. Which scripts have things about it ?
1 Like