[RELEASE] Enhanced HUD

Mogę wszystko.

Rotacja kamery działa.
Menu działa z esx.
Postać się zapisuje i wczytuje przy wychodzeniu i wychodzeniu. Gdy ktoś pierwszy raz wchodzi na serwer pokazuje mu się menu. Wybór kobiety i mężczyzny jest na poziomie esx_identity

Jak to wszystko ustawiłeś? Każdy skrypt mi działa oprócz tego że gdy probuje wyłączyć menu ustawiania postaci to nic się nie dzieje.

I’m testing the character creation scripts with the identity

So far I think it works correctly
the character menu comes out after the identity

as soon as I have it 100% I will upload the file or a guide to do it;)

The food and drink bars.

The gasoline hud still works 100%.

I can only finish structuring the character to create character

3 Likes

For those who are still working on it.
Quick demo of the character creation in action :

(I hope you all can see the video xD)

2 Likes

drunk is 0 not 3,btw thx
var hunger = status [1]
var thirst = status [2]
var drunk = status [0]

yeah please lol

can’t see

It should work now :slight_smile:

you can share?

when will the inventory and the inventory of the car be available?

I shared it here : [RELEASE] Enhanced HUD

When i use esx identity the screen gets stuck on loadscreen, i use jsfour register = (

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