mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix(skinchanger): Add missing export
This commit is contained in:
@@ -116,7 +116,7 @@ function SkinChanger:SetHead()
|
|||||||
if not self.character["grandparents"] then
|
if not self.character["grandparents"] then
|
||||||
self.character["grandparents"] = 0
|
self.character["grandparents"] = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
SetPedHeadBlendData(self.playerPed,
|
SetPedHeadBlendData(self.playerPed,
|
||||||
self.character["mom"], self.character["dad"], self.character["grandparents"] , self.character["mom"],
|
self.character["mom"], self.character["dad"], self.character["grandparents"] , self.character["mom"],
|
||||||
self.character["dad"], self.character["grandparents"], face_weight, skin_weight, third_weight, false)
|
self.character["dad"], self.character["grandparents"], face_weight, skin_weight, third_weight, false)
|
||||||
@@ -243,6 +243,19 @@ function SkinChanger:Init()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function SkinChanger:GetData(noMax)
|
||||||
|
local components = SkinChanger.components
|
||||||
|
for k, v in pairs(SkinChanger.character) do
|
||||||
|
for i = 1, #components, 1 do
|
||||||
|
if k == components[i].name then
|
||||||
|
components[i].value = v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return components, noMax and nil or self:MaxValues()
|
||||||
|
end
|
||||||
|
|
||||||
--- exports
|
--- exports
|
||||||
|
|
||||||
exports("GetSkin", function()
|
exports("GetSkin", function()
|
||||||
@@ -257,6 +270,10 @@ exports("LoadSkin", function(skin)
|
|||||||
return SkinChanger:LoadSkin(skin)
|
return SkinChanger:LoadSkin(skin)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
exports("GetData", function(noMax)
|
||||||
|
return SkinChanger:GetData(noMax)
|
||||||
|
end)
|
||||||
|
|
||||||
exports("LoadClothes", function(playerSkin, clothesSkin)
|
exports("LoadClothes", function(playerSkin, clothesSkin)
|
||||||
return SkinChanger:LoadClothes(playerSkin, clothesSkin)
|
return SkinChanger:LoadClothes(playerSkin, clothesSkin)
|
||||||
end)
|
end)
|
||||||
@@ -292,16 +309,7 @@ AddEventHandler("skinchanger:modelLoaded", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
AddEventHandler("skinchanger:getData", function(cb)
|
AddEventHandler("skinchanger:getData", function(cb)
|
||||||
local components = SkinChanger.components
|
cb(SkinChanger:GetData())
|
||||||
for k, v in pairs(SkinChanger.character) do
|
|
||||||
for i = 1, #components, 1 do
|
|
||||||
if k == components[i].name then
|
|
||||||
components[i].value = v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
cb(components, SkinChanger:MaxValues())
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
SkinChanger:Init()
|
SkinChanger:Init()
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
Locales["en"] = {
|
Locales["en"] = {
|
||||||
["sex"] = "sex",
|
["sex"] = "sex",
|
||||||
["mom"] = "mom's face",
|
["mom"] = "Face 1",
|
||||||
["dad"] = "dad's face",
|
["dad"] = "Face 2",
|
||||||
["resemblance"] = "resemblance",
|
["grandparents"] = "Face 3",
|
||||||
|
["resemblance"] = "Face 1/2 Mix",
|
||||||
|
["resemblance_g"] = "Face 3 Mix",
|
||||||
["skin_tone"] = "skin tone",
|
["skin_tone"] = "skin tone",
|
||||||
["nose_1"] = "nose width",
|
["nose_1"] = "nose width",
|
||||||
["nose_2"] = "nose peak height",
|
["nose_2"] = "nose peak height",
|
||||||
|
|||||||
Reference in New Issue
Block a user