Scripts/resources/[il]/illenium-appearance/client/framework/qb/compatibility.lua

31 lines
809 B
Lua
Raw Normal View History

2024-12-29 19:49:12 +00:00
if not Framework.QBCore() then return end
local client = client
-- Backwards Compatible Events
RegisterNetEvent("qb-clothing:client:openMenu", function()
local config = GetDefaultConfig()
config.ped = true
config.headBlend = true
config.faceFeatures = true
config.headOverlays = true
config.components = true
config.props = true
config.tattoos = true
OpenShop(config, true, "all")
end)
RegisterNetEvent("qb-clothing:client:openOutfitMenu", function()
OpenMenu(nil, "outfit")
end)
RegisterNetEvent("qb-clothing:client:loadOutfit", LoadJobOutfit)
RegisterNetEvent("qb-multicharacter:client:chooseChar", function()
client.setPedTattoos(cache.ped, {})
ClearPedDecorations(cache.ped)
TriggerServerEvent("illenium-appearance:server:resetOutfitCache")
end)