I can't figure out the reason it doesn't popus character's creation menu.
Players are spawning naked on the island and no data is added to database.
After that the acount is added on the database with only steamid and the data on the query.
After that it could open client character creation screen, but it won't.
I debugged and figure out that it never going into: ServerCharacterCreation(player)
I tried to find out this function to check it out, but can't find it.
AddRemoteEvent("ServerCharacterCreation", function(player)
print('ServerCharacterCreation: CAIU AQUI')
local color = hairsColor[defaultCharacter.haircolors]
local skin = skinColor[defaultCharacter.skins]
CallRemoteEvent(player, "ClientChangeClothing", player, 0, hairsModel[defaultCharacter.hair], color[1], color[2], color[3], color[4])
CallRemoteEvent(player, "ClientChangeClothing", player, 1, shirtsModel[defaultCharacter.tops], 0, 0, 0, 0)
CallRemoteEvent(player, "ClientChangeClothing", player, 4, pantsModel[defaultCharacter.trousers], 0, 0, 0, 0)
CallRemoteEvent(player, "ClientChangeClothing", player, 5, shoesModel[defaultCharacter.shoes], 0, 0, 0, 0)
CallRemoteEvent(player, "ClientChangeClothing", player, 6, "noShoesLegsTorso", skin[1], skin[2], skin[3], skin[4])
SetPlayerBusy(player)
CallRemoteEvent(player, "askClientCreation")
-- CallRemoteEvent(player, "openModify", defaultCharacter, true)
end)
But the print that i add on the func don't executes.