[RELEASE] Enhanced HUD

Did you changed the line

TriggerEvent('esx_skin:openSaveableMenu')

into the hud:loadMenu ?

Hey dude , do u also have a working version of the Hungerthirst script ?

I followed your step in your 2 help topics, would you possibly share it?

i’m trying to 2 days make this work

I have a problem, i can create my skin whitout problem but when i disconect from my server and i connect after, my skin has been reset, have you a solution pls?

It works fine here using that script :

So I replaced this in client.lua

TriggerEvent('esx_skin:openSaveableMenu')

with

TriggerEvent('hud:loadMenu')

Next I added the saving function in the server.lua :

-- Register the player
ESX.RegisterServerCallback('jsfour-register:register', function(source, cb, data)
  local identifier = GetPlayerIdentifiers(source)[1]
  local lastdigits = math.random(9) .. math.random(9) .. math.random(9) .. math.random(9)
  MySQL.Async.execute("UPDATE `users` SET `firstname` = @firstname, `lastname` = @lastname, `dateofbirth` = @dateofbirth, `sex` = @sex, `height` = @height, `lastdigits` = @lastdigits WHERE identifier = @identifier",
  {
    ['@identifier']   = identifier,
    ['@firstname']    = data.firstname,
    ['@lastname']     = data.lastname,
    ['@dateofbirth']  = data.dateofbirth,
    ['@sex']          = data.sex,
    ['@height']       = data.height,
    ['@lastdigits']   = lastdigits
  },
  function( result )
    MySQL.Async.execute('INSERT INTO characters (identifier, firstname, lastname, dateofbirth, sex, height, lastdigits) VALUES (@identifier, @firstname, @lastname, @dateofbirth, @sex, @height, @lastdigits)',
    {
      ['@identifier']   = identifier,
      ['@firstname']    = data.firstname,
      ['@lastname']     = data.lastname,
      ['@dateofbirth']  = data.dateofbirth,
      ['@sex']          = data.sex,
      ['@height']       = data.height,
      ['@lastdigits']   = lastdigits
    },
	function (result )
	  MySQL.Async.execute('INSERT INTO outfits (idSteam) VALUES (@identifier)', 
	  {
	    ['@identifier']	 = identifier
	  },
	  function( result )
		-- Done
		cb(true)
	  end)
    end)
  end)
end)

That is all. Now you can enjoy your register and this skincreator. Make sure you use (if you want of course) my files from the github. They have the working finish button.

Oh and one thing for all those who struggle with this menu, Make sure that you load the character as a spawnpoint 'mp_m_freemode_01' { x = -1352.43, y = -1542.75, z = 4.42268 }

If you spawn random skate guys example : a_m_y_skater_01, most of the skin options will not work.
I also hope that people understand that for all the different identity scripts there are, your code and lines you need to add can be different. I focus mainly on the basic ESX scripts.

8 Likes

You will have to be patient :stuck_out_tongue:
Tomorrow is my last day at work. Then i have 3 weeks of free time and can continue on this project.

2 Likes

regardless if it works or not you are a wonderful person

Well it should work fine haha. Only the loading does not work yet.
If you still have problems, send me a pm with some info about what is not working.

I do not use drunk but gym so for me it’s 3

I configure it as it comes in the tutorial and it doesn’t work for me I don’t understand …
my identity doesn’t even work for me

Also have a problem with your cat on your side.
You press your key, the chat throws it but you can’t write anything in it?
After testing the problem comes from the “menu” script

I configure it as it comes in the tutorial and it doesn’t work for me I don’t understand …
neither does my identity work

What identity do you use ? The server you see in the video uses the latest fivem server and all the latest script updates.
If esx_identity is not working. Try making it working with esx_skin and skinchanger. Then once that works, remove those 2 and install skincreator.

Complete creator :slight_smile:
Everything loading so slow becouse of recording :confused:
Normally everything loading faster.

10 Likes

Can you send me?

I use KASHacters Multi Character and when i choose my character its will spawn a hipster skater any idea?

can it be used with esx_plasticsurgery?

Can you share it here ? So that others can use it too :slight_smile:

it’s driving you crazy xD I have no way to start haha
I think I’m going to make it impossible

neither with the esx_identity nor with esx_skin not with the skincharger nothing is no way