HEX
HexscriptsVersion 3.0Charcreator

Installation

Here you will get the full Installation guide to get this script running.

Download Asset

Login in your FiveM Portal Account

To Download our Script you must login in your Fivem Portal Account

Download the Script

If you are sucessfully logged in into your Account go to Assets and search by the script hex_3_charcreator then download it.

Download Dependencies

DependencyRequired
es_extended
skinchanger and esx_skin
illenium-appearance

Start Asset

To make sure the asset start and run properly, you need to add them in the correct order inside your server.cfg. Below is an example of how it should look.

Note

You can also create a folder called [hex] inside your resources folder. If you own multiple scripts from us, you won’t need to add each one separately to your server.cfg.

# 1. Start database wrapper called oxmysql
ensure oxmysql

# 2. Start the specific framework
ensure es_extended or qb-core or qbx_core

# 3. Now start our asset singularly
ensure hex_3_charcreator
# Or you can start all of our assets at once into a folder called [hex]
ensure [hex]

If you are using esx_multicharacter you must replace this function:

function Multicharacter:LoadSkinCreator(skin)
    TriggerEvent("skinchanger:loadSkin", skin, function()
        DoScreenFadeIn(600)
        SetPedAoBlobRendering(self.playerPed, true)
        ResetEntityAlpha(self.playerPed)

        if GetResourceState('hex_3_charcreator') == 'started' then
            exports['hex_3_charcreator']:OpenCharCreator(function()
                Multicharacter.finishedCreation = true
            end)
        else
            TriggerEvent("esx_skin:openSaveableMenu", function()
                Multicharacter.finishedCreation = true
            end, function()
                Multicharacter.finishedCreation = true
            end)
        end
    end)
end

If you are using esx_identity you must replace this AddEventHandler:

AddEventHandler("esx_skin:playerRegistered", function()
    CreateThread(function()
        while not ESX.PlayerLoaded do
            Wait(100)
        end

        if Skin.firstSpawn then
            ESX.TriggerServerCallback("esx_skin:getPlayerSkin", function(skin)
                if skin == nil then
                    exports["skinchanger"]:LoadSkin({ sex = 0 })

                    if GetResourceState('hex_3_charcreator') == 'started' then
                        exports['hex_3_charcreator']:OpenCharCreator()
                    else
                        Menu:Saveable()
                    end
                else
                    exports["skinchanger"]:LoadSkin(skin)
                end
            end)

            Skin.firstSpawn = false
        end
    end)
end)