Hello, I am looking to create an item “bulletproof vest”, I left the base of “esx_clip”, I create my item in the comic, someone can give me the procedure to follow please ? my client side code:
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
RegisterNetEvent(‘esx_Vest:bulletproof’)
AddEventHandler(‘esx_Vest:bulletproof’, function()
SetPedArmor(GetPlayerPed(-1), 100)
TriggerServerEvent(‘esx_Vest:remove’)
ESX.ShowNotification(“tu a utilisé un chargeur”)
else
ESX.ShowNotification(“tu n’a pas d’arme en main”)
end
else
ESX.ShowNotification(“ce type de munision ne convient pas”)
end
end)