Hello there, I have a Problem with my bproof Vest Script. I to change the color of the bproof but I don’t know how. Here is my current code
RegisterNetEvent('westen:bproof')
AddEventHandler('westen:bproof', function()
useVest()
end)
function useVest()
local playerPed = PlayerPedId()
local lib = 'anim@heists@narcotics@funding@gang_idle'
local anim = 'gang_chatting_idle01'
ESX.Streaming.RequestAnimDict(lib, function()
TaskPlayAnim(playerPed, lib, anim, 8.0, -8.0, -1, 0, 0, false, false, false)
RemoveAnimDict(lib)
end)
Citizen.Wait(0)
DisableAllControlActions(0)
ClearPedTasks(playerPed)
ESX.ShowNotification("Du benutzt eine ~b~kugelsichere Weste")
Wait(1000)
SetPedArmour(playerPed, 100)
TriggerEvent('skinchanger:change', 'bproof_1', 20)
ESX.ShowNotification("~g~Kugelsichere Weste angezogen")
end
I would be happy if someone could help me