ESX Skinchanger / Skin / Identity


#1

Any1 know how to get the menu when joining first time


#2

Your load order isn’t correct, or you are missing a dependency.


#3

Do i put this in server.cfg

local isMale = true

local skin = {
	sex          = 1,
	face         = 0,
	skin         = 0,
	beard_1      = 0,
	beard_2      = 0,
	beard_3      = 0,
	beard_4      = 0,
	hair_1       = 0,
	hair_2       = 0,
	hair_color_1 = 0,
	hair_color_2 = 0,
	tshirt_1     = 0,
	tshirt_2     = 0,
	torso_1      = 0,
	torso_2      = 0,
	decals_1     = 0,
	decals_2     = 0,
	arms         = 0,
	pants_1      = 0,
	pants_2      = 0,
	shoes_1      = 0,
	shoes_2      = 0,
	mask_1       = 0,
	mask_2       = 0,
	bproof_1     = 0,
	bproof_2     = 0,
	chain_1      = 0,
	chain_2      = 0,
	helmet_1     = 0,
	helmet_2     = 0,
	glasses_1    = 0,
	glasses_2    = 0,
}

-- Load freemode model
TriggerEvent('skinchanger:loadDefaultModel', isMale)

-- Load skin
TriggerEvent('skinchanger:loadSkin', skin)

-- you can also load only some components :
TriggerEvent('skinchanger:loadSkin', {
	beard_1      = 0,
	beard_2      = 0,
})

-- Get list of components and maxVals
TriggerEvent('skinchanger:getData', function(components, maxVals)
	print('Components => ' .. json.encode(components))
	print('MaxVals => ' .. json.encode(maxVals))
end)

-- Get current skin
TriggerEvent('skinchanger:getSkin', function(skin)
	print(json.encode(skin))
end)

Add this in your server.cfg :
start skinchanger


[USAGE]

local isMale = true

local skin = {
	sex          = 1,
	face         = 0,
	skin         = 0,
	beard_1      = 0,
	beard_2      = 0,
	beard_3      = 0,
	beard_4      = 0,
	hair_1       = 0,
	hair_2       = 0,
	hair_color_1 = 0,
	hair_color_2 = 0,
	tshirt_1     = 0,
	tshirt_2     = 0,
	torso_1      = 0,
	torso_2      = 0,
	decals_1     = 0,
	decals_2     = 0,
	arms         = 0,
	pants_1      = 0,
	pants_2      = 0,
	shoes_1      = 0,
	shoes_2      = 0,
	mask_1       = 0,
	mask_2       = 0,
	bproof_1     = 0,
	bproof_2     = 0,
	chain_1      = 0,
	chain_2      = 0,
	helmet_1     = 0,
	helmet_2     = 0,
	glasses_1    = 0,
	glasses_2    = 0,
}

-- Load freemode model
TriggerEvent('skinchanger:loadDefaultModel', isMale)

-- Load skin
TriggerEvent('skinchanger:loadSkin', skin)

-- you can also load only some components :
TriggerEvent('skinchanger:loadSkin', {
	beard_1      = 0,
	beard_2      = 0,
})

-- Get list of components and maxVals
TriggerEvent('skinchanger:getData', function(components, maxVals)
	print('Components => ' .. json.encode(components))
	print('MaxVals => ' .. json.encode(maxVals))
end)

-- Get current skin
TriggerEvent('skinchanger:getSkin', function(skin)
	print(json.encode(skin))
end)


#4

Look over this is it like this???


#5

…you shouldn’t have to modify anything.


#6

SOLVED! No more help needed


#7

@Albin hey what did you have to do to get yours to work I’m having the same problem now.


#8

I just forgot to load it :face_with_hand_over_mouth:


#9

Do you think you’d be able to help me because I’m having some problems getting ESX up and running.


#10

did you solve it? having problems


#11

I am running into the issue where it gives me select 4 and 6 to rotate but there is no menu to actually customize? can anyone help me out. I am running the skin changer, skin and identity


#12

Same, you find a way to resolve this issue?


#13

ask in the original ESX topic or where ever you got the resource from.


#14

Hope you fixed the issue, but for anyone else that stumbles across this thread. I believe the issue is that you are not start menus

Add to server.cfg

start esx_menu_default
start esx_menu_list
start esx_menu_dialog

Go ahead and install these mods if you haven’t already from the link below:
esx_menu_default: https://github.com/ESX-Org/esx_menu_default
esx_menu_list: https://github.com/ESX-Org/esx_menu_list
esx_menu_dialog: https://github.com/ESX-Org/esx_menu_dialog


#15

c627378e9e1171290aefd77f0c059dcd