[Release] [ESX] clothesmerfik | put on/take off your clothes


There is the same script but with commands, I can disble de menu if u want
the commands are in spanish so they are:
/ropa – to put clothes
/camiseta – to tackeoff the shirt
/pantalones – takeoff the pants
/zapatos – takeoff the shoes

1 Like

thanks, well i mean if u can help me out on how to set up the hunger/thirst bar under the health bar, and if possible the stamina bar also

Thos are my bars

Thanks

Like this

    function(data, menu)	
		if data.current.value == 'ubie' then			
		ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
		TriggerEvent('skinchanger:loadSkin', skin)
		end)
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'tul' then
		TriggerEvent('smerfikubrania:koszulka')
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'spo' then
		TriggerEvent('smerfikubrania:spodnie')
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'but' then
		TriggerEvent('smerfikubrania:buty')
		ESX.UI.Menu.CloseAll()		
	  end	  
	end,
	function(data, menu)
        menu.close()
    end)

Nice But Can U Make One To VRP

I want to change keybind how can I do it?

1 Like

What are the values for other things like masks/hats? Is there somewhere I can find that?

1 Like

very beautiful resources but however there is still a problem women do not have feet and an asser asser bizarre there would be no way to ensure that each sex have a different outfit?

Make if skin.sex == 1 and then same events but with changed numbers.

in which part?

Can you tell me how to write this right?

BlockquoteESX                     = nil

Citizen.CreateThread(function()
  while ESX == nil do
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    Citizen.Wait(0)
  end
end)



RegisterNetEvent('smerfikubrania:koszulka')
AddEventHandler('smerfikubrania:koszulka', function()
	TriggerEvent('skinchanger:getSkin.sex==1', function(skin)
	

		local clothesSkin = {
		['tshirt_1'] = 15, ['tshirt_2'] = 0,
		['torso_1'] = 19, ['torso_2'] = 2,
		['arms'] = 15, ['arms_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)
RegisterNetEvent('smerfikubrania:spodnie')
AddEventHandler('smerfikubrania:spodnie', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	

		local clothesSkin = {
		['pants_1'] = 19, ['pants_2'] = 2
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)

RegisterNetEvent('smerfikubrania:buty')
AddEventHandler('smerfikubrania:buty', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	

		local clothesSkin = {
		['shoes_1'] = 34, ['shoes_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)


RegisterNetEvent('smerfikubrania:koszulka')
AddEventHandler('smerfikubrania:koszulka', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	

		local clothesSkin = {
		['tshirt_1'] = 15, ['tshirt_2'] = 0,
		['torso_1'] = 22, ['torso_2'] = 2,
		['arms'] = 15, ['arms_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)
RegisterNetEvent('smerfikubrania:spodnie')
AddEventHandler('smerfikubrania:spodnie', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	

		local clothesSkin = {
		['pants_1'] = 61, ['pants_2'] = 1
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)

RegisterNetEvent('smerfikubrania:buty')
AddEventHandler('smerfikubrania:buty', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	

		local clothesSkin = {
		['shoes_1'] = 34, ['shoes_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
	end)
end)
function OpenActionMenuInteraction(target)

	local elements = {}

	table.insert(elements, {label = ('Poner ropa'), value = 'ubie'})
	table.insert(elements, {label = ('Quitar camiseta'), value = 'tul'})
	table.insert(elements, {label = ('Quitar pantalones'), value = 'spo'})
	table.insert(elements, {label = ('Quitar zapatos'), value = 'but'})
  		ESX.UI.Menu.CloseAll()	


	ESX.UI.Menu.Open(
		'default', GetCurrentResourceName(), 'action_menu',
		{
			title    = ('Clothes'),
			align    = 'top-left',
			elements = elements
		},
    function(data, menu)



		
		if data.current.value == 'ubie' then			
		ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
		TriggerEvent('skinchanger:loadSkin', skin)
		end)
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'tul' then
		TriggerEvent('smerfikubrania:koszulka')
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'spo' then
		TriggerEvent('smerfikubrania:spodnie')
		ESX.UI.Menu.CloseAll()	
		elseif data.current.value == 'but' then
		TriggerEvent('smerfikubrania:buty')
		ESX.UI.Menu.CloseAll()	
	  end
	end)


end

			
Citizen.CreateThread(function()
  while true do
    Citizen.Wait(0)
    if IsControlJustReleased(0, 48) and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'action_menu') then
		OpenActionMenuInteraction()
    end
  end
end)

1 Like

can help me?

Hi, I’d like to ask you or someone who reads this comment, how can I put this script in Esx_jsidmenu or Esx_personmenu (F5 menu (Idcard etc))… I’m a beginner, it would be nice if someone wanted to explain it to me.

Does not work.

Girl ped dont have arms n stuff. Anyone have a fix for this?

I’ve made this to fix the female skin

ESX                     = nil

Citizen.CreateThread(function()
  while ESX == nil do
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    Citizen.Wait(0)
  end
end)

RegisterNetEvent('smerfikubrania:koszulka')
AddEventHandler('smerfikubrania:koszulka', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	
if skin.sex == 0 then
		local clothesSkin = {
		['tshirt_1'] = 15, ['tshirt_2'] = 0,
		['torso_1'] = 15, ['torso_2'] = 0,
		['arms'] = 15, ['arms_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
else
		local clothesSkin = {
		['tshirt_1'] = 14, ['tshirt_2'] = 0,
		['torso_1'] = 82, ['torso_2'] = 0,
		['arms'] = 15, ['arms_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
end
	end)
end)
RegisterNetEvent('smerfikubrania:spodnie')
AddEventHandler('smerfikubrania:spodnie', function()
	TriggerEvent('skinchanger:getSkin', function(skin)

if skin.sex == 0 then
		local clothesSkin = {
		['pants_1'] = 21, ['pants_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
else
		local clothesSkin = {
		['pants_1'] = 15, ['pants_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
end
	end)
end)

RegisterNetEvent('smerfikubrania:buty')
AddEventHandler('smerfikubrania:buty', function()
	TriggerEvent('skinchanger:getSkin', function(skin)
	
if skin.sex == 0 then
		local clothesSkin = {
		['shoes_1'] = 34, ['shoes_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
else
		local clothesSkin = {
		['shoes_1'] = 35, ['shoes_2'] = 0
		}
		TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
end
	end)
end)

function OpenActionMenuInteraction(target)

	ESX.UI.Menu.CloseAll()
	local elements = {}

	table.insert(elements, {label = ('Se rhabiller'), value = 'ubie'})
	table.insert(elements, {label = ('Enlever son haut'), value = 'tul'})
	table.insert(elements, {label = ('Enlever son pantalon'), value = 'spo'})
	table.insert(elements, {label = ('Enlever ses chaussures'), value = 'but'})

	ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'action_menu',
	{
		title    = ('Vêtements'),
		align    = 'top-left',
		elements = elements
	},
		function(data, menu)
			
			if data.current.value == 'ubie' then			
			ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
			TriggerEvent('skinchanger:loadSkin', skin)
			end)
			elseif data.current.value == 'tul' then
			TriggerEvent('smerfikubrania:koszulka')
			elseif data.current.value == 'spo' then
			TriggerEvent('smerfikubrania:spodnie')
			elseif data.current.value == 'but' then
			TriggerEvent('smerfikubrania:buty')
		end
		end,
	function(data, menu)
        menu.close()
	end)


end

--[[
Citizen.CreateThread(function()
  while true do
    Citizen.Wait(0)
    if IsControlJustReleased(0, 57) and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'action_menu') then
		OpenActionMenuInteraction()
    end
  end
end)
]]--

RegisterNetEvent('NB:openMenuVetements')
AddEventHandler('NB:openMenuVetements', function()
  	OpenActionMenuInteraction()
end)

Possible to return to the actual jobskin, for example mechanic if putting on your clothes?

Is there a way I can turn this into a chat command

They just did, like 5 times and even shared a github fork. Is it really that hard to simply read?