Hi ! I just added this manually in the DB:
CREATE TABLE IF NOT EXISTS `outfits` (
`identifier` varchar(50) DEFAULT NULL,
`hair` int(11) DEFAULT NULL,
`haircolour` int(11) DEFAULT NULL,
`torso` int(11) DEFAULT NULL,
`torsotexture` int(11) DEFAULT NULL,
`torsoextra` int(11) DEFAULT NULL,
`torsoextratexture` int(11) DEFAULT NULL,
`pants` int(11) DEFAULT NULL,
`pantscolour` int(11) DEFAULT NULL,
`shoes` int(11) DEFAULT NULL,
`shoescolour` int(11) DEFAULT NULL,
`bodyaccesoire` int(11) DEFAULT NULL,
`undershirt` int(11) DEFAULT NULL,
`armor` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
and in es_customization/server.lua:
require "resources/essentialmode/lib/MySQL"
-- MySQL:open("IP", "databasname", "user", "password")
MySQL:open("IP", "DB", "USER", "PASS")
Now everytime i change my clothes, itās saved in the DB. I use Freeroam, so i need to change some things in the server.lua & client.lua to work properly, cause for now it donāt load at connexion the skin & customizations choosed before. but for now, iām a little bit lost about what to do !
For the āTorsoā without glove missings, i looked in es_customization in client.lua, and i see this:
function initValids()
local am = 0
for i = 0,GetNumberOfPedDrawableVariations(GetPlayerPed(-1), 3) do
if IsPedComponentVariationValid(GetPlayerPed(-1), 3, i, 2) then
am = am + 1
validTorso[am] = i
end
end
am = 0
for i =0, GetNumberOfPedDrawableVariations(GetPlayerPed(-1), 7) do
if IsPedComponentVariationValid(GetPlayerPed(-1), 7, i, 2) then
am = am + 1
validUnder[am] = i
end
end
end
Maybe iām wrong, but iām almost sure itās here ā¦ but not sure whatās to be changed ā¦