------------------------------------------------------------------
--                          Variables
------------------------------------------------------------------
local cam = -1							-- Camera control
local heading = 332.219879				-- Heading coord


------------------------------------------------------------------
--                          NUI
------------------------------------------------------------------

RegisterNUICallback('updateSkin', function(data)
	v = data.value
	-- Face
	dad = tonumber(data.dad)
	mum = tonumber(data.mum)
	dadmumpercent = tonumber(data.dadmumpercent)
	skin = tonumber(data.skin)
	eyecolor = tonumber(data.eyecolor)
	acne = tonumber(data.acne)
	skinproblem = tonumber(data.skinproblem)
	freckle = tonumber(data.freckle)
	wrinkle = tonumber(data.wrinkle)
	wrinkleopacity = tonumber(data.wrinkleopacity)
	hair = tonumber(data.hair)
	haircolor = tonumber(data.haircolor)
	eyebrow = tonumber(data.eyebrow)
	eyebrowopacity = tonumber(data.eyebrowopacity)
	beard = tonumber(data.beard)
	beardopacity = tonumber(data.beardopacity)
	beardcolor = tonumber(data.beardcolor)
	-- Clothes
	hats = tonumber(data.hats)
	glasses = tonumber(data.glasses)
	ears = tonumber(data.ears)
	tops = tonumber(data.tops)
	pants = tonumber(data.pants)
	shoes = tonumber(data.shoes)
	watches = tonumber(data.watches)

	if(v == true) then
		local ped = GetPlayerPed(-1)
		local torso = GetPedDrawableVariation(ped, 3)
		local torsotext = GetPedTextureVariation(ped, 3)
		local leg = GetPedDrawableVariation(ped, 4)
		local legtext = GetPedTextureVariation(ped, 4)
		local shoes = GetPedDrawableVariation(ped, 6)
		local shoestext = GetPedTextureVariation(ped, 6)
		local accessory = GetPedDrawableVariation(ped, 7)
		local accessorytext = GetPedTextureVariation(ped, 7)
		local undershirt = GetPedDrawableVariation(ped, 8)
		local undershirttext = GetPedTextureVariation(ped, 8)
		local torso2 = GetPedDrawableVariation(ped, 11)
		local torso2text = GetPedTextureVariation(ped, 11)
		local prop_hat = GetPedPropIndex(ped, 0)
		local prop_hat_text = GetPedPropTextureIndex(ped, 0)
		local prop_glasses = GetPedPropIndex(ped, 1)
		local prop_glasses_text = GetPedPropTextureIndex(ped, 1)
		local prop_earrings = GetPedPropIndex(ped, 2)
		local prop_earrings_text = GetPedPropTextureIndex(ped, 2)
		local prop_watches = GetPedPropIndex(ped, 6)
		local prop_watches_text = GetPedPropTextureIndex(ped, 6)

		TriggerServerEvent("updateSkin", dad, mum, dadmumpercent, skin, eyecolor, acne, skinproblem, freckle, wrinkle, wrinkleopacity, eyebrow, eyebrowopacity, beard, beardopacity, beardcolor, hair, haircolor, torso, torsotext, leg, legtext, shoes, shoestext, accessory, accessorytext, undershirt, undershirttext, torso2, torso2text, prop_hat, prop_hat_text, prop_glasses, prop_glasses_text, prop_earrings, prop_earrings_text, prop_watches, prop_watches_text)
		hideMenus()
		SkinCreator(false)
		else
		SetCustomization(dad, mum, dadmumpercent, skin, eyecolor, acne, skinproblem, freckle, wrinkle, wrinkleopacity, eyebrow, eyebrowopacity, beard, beardopacity, beardcolor, hair, haircolor, torso, torsotext, leg, legtext, shoes, shoestext, accessory, accessorytext, undershirt, undershirttext, torso2, torso2text, prop_hat, prop_hat_text, prop_glasses, prop_glasses_text, prop_earrings, prop_earrings_text, prop_watches, prop_watches_text)
	end
end)

local function RGBRainbow( frequency )
	local result = {}
	local curtime = GetGameTimer() / 500

	result.r = math.floor( math.sin( curtime * frequency + 10 ) * 127 + 128 )
	result.g = math.floor( math.sin( curtime * frequency + 12 ) * 127 + 128 )
	result.b = math.floor( math.sin( curtime * frequency + 14 ) * 127 + 128 )
	
	return result
end

RegisterNetEvent("vRP_C:playerSpawned")
AddEventHandler("vRP_C:playerSpawned", function(dad, mum, dadmumpercent, skin, eyecolor, acne, skinproblem, freckle, wrinkle, wrinkleopacity, eyebrow, eyebrowopacity, beard, beardopacity, beardcolor, hair, haircolor, torso, torsotext, leg, legtext, shoes, shoestext, accessory, accessorytext, undershirt, undershirttext, torso2, torso2text, prop_hat, prop_hat_text, prop_glasses, prop_glasses_text, prop_earrings, prop_earrings_text, prop_watches, prop_watches_text)
	SetCustomization(dad, mum, dadmumpercent, skin, eyecolor, acne, skinproblem, freckle, wrinkle, wrinkleopacity, eyebrow, eyebrowopacity, beard, beardopacity, beardcolor, hair, haircolor, torso, torsotext, leg, legtext, shoes, shoestext, accessory, accessorytext, undershirt, undershirttext, torso2, torso2text, prop_hat, prop_hat_text, prop_glasses, prop_glasses_text, prop_earrings, prop_earrings_text, prop_watches, prop_watches_text)
end)

-- Character rotation
RegisterNUICallback('rotateleftheading', function(data)
	print("muie")
	local currentHeading = GetEntityHeading(GetPlayerPed(-1))
	heading = currentHeading+tonumber(data.value)
end)

RegisterNUICallback('rotaterightheading', function(data)
	print("muie")
	local currentHeading = GetEntityHeading(GetPlayerPed(-1))
	heading = currentHeading-tonumber(data.value)
end)

-- Define which part of the body must be zoomed
RegisterNUICallback('zoom', function(data)
	zoom = data.zoom
end)


------------------------------------------------------------------
--                          Functions
------------------------------------------------------------------

function SetCustomization(dad, mum, dadmumpercent, skin, eyecolor, acne, skinproblem, freckle, wrinkle, wrinkleopacity, eyebrow, eyebrowopacity, beard, beardopacity, beardcolor, hair, haircolor, torso, torsotext, leg, legtext, shoes, shoestext, accessory, accessorytext, undershirt, undershirttext, torso2, torso2text, prop_hat, prop_hat_text, prop_glasses, prop_glasses_text, prop_earrings, prop_earrings_text, prop_watches, prop_watches_text)
	SetPedHeadBlendData			(GetPlayerPed(-1), dad, mum, dad, skin, skin, skin, dadmumpercent * 0.1, dadmumpercent * 0.1, 1.0, true)
	SetPedEyeColor				(GetPlayerPed(-1), eyecolor)
	if acne == 0 then
		SetPedHeadOverlay		(GetPlayerPed(-1), 0, acne, 0.0)
	else
		SetPedHeadOverlay		(GetPlayerPed(-1), 0, acne, 1.0)
	end
	SetPedHeadOverlay			(GetPlayerPed(-1), 6, skinproblem, 1.0)
	if freckle == 0 then
		SetPedHeadOverlay		(GetPlayerPed(-1), 9, freckle, 0.0)
	else
		SetPedHeadOverlay		(GetPlayerPed(-1), 9, freckle, 1.0)
	end
	SetPedHeadOverlay       	(GetPlayerPed(-1), 3, wrinkle, wrinkleopacity * 0.1)
	SetPedComponentVariation	(GetPlayerPed(-1), 2, hair, 0, 2)
	SetPedHairColor				(GetPlayerPed(-1), haircolor, haircolor)
	SetPedHeadOverlay       	(GetPlayerPed(-1), 2, eyebrow, eyebrowopacity * 0.1) 
	SetPedHeadOverlay       	(GetPlayerPed(-1), 1, beard, beardopacity * 0.1)   
	SetPedHeadOverlayColor  	(GetPlayerPed(-1), 1, 1, beardcolor, beardcolor) 
	SetPedHeadOverlayColor  	(GetPlayerPed(-1), 2, 1, beardcolor, beardcolor)
	if hats == 0 then		ClearPedProp(GetPlayerPed(-1), 0)
	elseif hats == 1 then	SetPedPropIndex(GetPlayerPed(-1), 0, 3-1, 1-1, 2)
	elseif hats == 2 then	SetPedPropIndex(GetPlayerPed(-1), 0, 3-1, 7-1, 2)
	elseif hats == 3 then	SetPedPropIndex(GetPlayerPed(-1), 0, 4-1, 3-1, 2)
	elseif hats == 4 then	SetPedPropIndex(GetPlayerPed(-1), 0, 5-1, 1-1, 2)
	elseif hats == 5 then	SetPedPropIndex(GetPlayerPed(-1), 0, 5-1, 2-1, 2)
	elseif hats == 6 then	SetPedPropIndex(GetPlayerPed(-1), 0, 6-1, 1-1, 2)
	elseif hats == 7 then	SetPedPropIndex(GetPlayerPed(-1), 0, 8-1, 1-1, 2)
	elseif hats == 8 then	SetPedPropIndex(GetPlayerPed(-1), 0, 8-1, 2-1, 2)
	elseif hats == 9 then	SetPedPropIndex(GetPlayerPed(-1), 0, 8-1, 3-1, 2)
	elseif hats == 10 then	SetPedPropIndex(GetPlayerPed(-1), 0, 8-1, 6-1, 2)
	elseif hats == 11 then	SetPedPropIndex(GetPlayerPed(-1), 0, 11-1, 6-1, 2)
	elseif hats == 12 then	SetPedPropIndex(GetPlayerPed(-1), 0, 10-1, 6-1, 2)
	elseif hats == 13 then	SetPedPropIndex(GetPlayerPed(-1), 0, 11-1, 8-1, 2)
	elseif hats == 14 then	SetPedPropIndex(GetPlayerPed(-1), 0, 10-1, 8-1, 2)
	elseif hats == 15 then	SetPedPropIndex(GetPlayerPed(-1), 0, 13-1, 1-1, 2)
	elseif hats == 16 then	SetPedPropIndex(GetPlayerPed(-1), 0, 13-1, 2-1, 2)
	elseif hats == 17 then	SetPedPropIndex(GetPlayerPed(-1), 0, 14-1, 3-1, 2)
	elseif hats == 18 then	SetPedPropIndex(GetPlayerPed(-1), 0, 15-1, 1-1, 2)
	elseif hats == 19 then	SetPedPropIndex(GetPlayerPed(-1), 0, 15-1, 2-1, 2)
	elseif hats == 20 then	SetPedPropIndex(GetPlayerPed(-1), 0, 16-1, 2-1, 2)
	elseif hats == 21 then	SetPedPropIndex(GetPlayerPed(-1), 0, 16-1, 3-1, 2)
	elseif hats == 22 then	SetPedPropIndex(GetPlayerPed(-1), 0, 21-1, 6-1, 2)
	elseif hats == 23 then	SetPedPropIndex(GetPlayerPed(-1), 0, 22-1, 1-1, 2)
	elseif hats == 24 then	SetPedPropIndex(GetPlayerPed(-1), 0, 26-1, 2-1, 2)
	elseif hats == 25 then	SetPedPropIndex(GetPlayerPed(-1), 0, 27-1, 1-1, 2)
	elseif hats == 26 then	SetPedPropIndex(GetPlayerPed(-1), 0, 28-1, 1-1, 2)
	elseif hats == 27 then	SetPedPropIndex(GetPlayerPed(-1), 0, 35-1, 0, 2)
	elseif hats == 28 then	SetPedPropIndex(GetPlayerPed(-1), 0, 56-1, 1-1, 2)
	elseif hats == 29 then	SetPedPropIndex(GetPlayerPed(-1), 0, 56-1, 2-1, 2)
	elseif hats == 30 then	SetPedPropIndex(GetPlayerPed(-1), 0, 56-1, 3-1, 2)
	elseif hats == 31 then	SetPedPropIndex(GetPlayerPed(-1), 0, 77-1, 20-1, 2)
	elseif hats == 32 then	SetPedPropIndex(GetPlayerPed(-1), 0, 97-1, 3-1, 2)
	end
	
	if glasses == 0 then		ClearPedProp(GetPlayerPed(-1), 1)
	elseif glasses == 1 then	SetPedPropIndex(GetPlayerPed(-1), 1, 4-1, 1-1, 2)
	elseif glasses == 2 then	SetPedPropIndex(GetPlayerPed(-1), 1, 4-1, 10-1, 2)
	elseif glasses == 3 then	SetPedPropIndex(GetPlayerPed(-1), 1, 5-1, 5-1, 2)
	elseif glasses == 4 then	SetPedPropIndex(GetPlayerPed(-1), 1, 5-1, 10-1, 2)
	elseif glasses == 5 then	SetPedPropIndex(GetPlayerPed(-1), 1, 6-1, 1-1, 2)
	elseif glasses == 6 then	SetPedPropIndex(GetPlayerPed(-1), 1, 6-1, 9-1, 2)
	elseif glasses == 7 then	SetPedPropIndex(GetPlayerPed(-1), 1, 8-1, 1-1, 2)
	elseif glasses == 8 then	SetPedPropIndex(GetPlayerPed(-1), 1, 9-1, 2-1, 2)
	elseif glasses == 9 then	SetPedPropIndex(GetPlayerPed(-1), 1, 10-1, 1-1, 2)
	elseif glasses == 10 then	SetPedPropIndex(GetPlayerPed(-1), 1, 16-1, 7-1, 2)
	elseif glasses == 11 then	SetPedPropIndex(GetPlayerPed(-1), 1, 18-1, 10-1, 2)
	elseif glasses == 12 then	SetPedPropIndex(GetPlayerPed(-1), 1, 26-1, 1-1, 2)
	end

	if ears == 0 then		ClearPedProp(GetPlayerPed(-1), 2)
	elseif ears == 1 then	SetPedPropIndex(GetPlayerPed(-1), 2, 4-1, 1-1, 2)
	elseif ears == 2 then	SetPedPropIndex(GetPlayerPed(-1), 2, 5-1, 1-1, 2)
	elseif ears == 3 then	SetPedPropIndex(GetPlayerPed(-1), 2, 6-1, 1-1, 2)
	elseif ears == 4 then	SetPedPropIndex(GetPlayerPed(-1), 2, 10-1, 2-1, 2)
	elseif ears == 5 then	SetPedPropIndex(GetPlayerPed(-1), 2, 11-1, 2-1, 2)
	elseif ears == 6 then	SetPedPropIndex(GetPlayerPed(-1), 2, 12-1, 2-1, 2)
	elseif ears == 7 then	SetPedPropIndex(GetPlayerPed(-1), 2, 19-1, 4-1, 2)
	elseif ears == 8 then	SetPedPropIndex(GetPlayerPed(-1), 2, 20-1, 4-1, 2)
	elseif ears == 9 then	SetPedPropIndex(GetPlayerPed(-1), 2, 21-1, 4-1, 2)
	elseif ears == 10 then	SetPedPropIndex(GetPlayerPed(-1), 2, 28-1, 1-1, 2)
	elseif ears == 11 then	SetPedPropIndex(GetPlayerPed(-1), 2, 29-1, 1-1, 2)
	elseif ears == 12 then	SetPedPropIndex(GetPlayerPed(-1), 2, 30-1, 1-1, 2)
	elseif ears == 13 then	SetPedPropIndex(GetPlayerPed(-1), 2, 31-1, 1-1, 2)
	elseif ears == 14 then	SetPedPropIndex(GetPlayerPed(-1), 2, 32-1, 1-1, 2)
	elseif ears == 15 then	SetPedPropIndex(GetPlayerPed(-1), 2, 33-1, 1-1, 2)
	end

	-- Keep these 4 variations together.
	-- It avoids empty arms or noisy clothes superposition
	if tops == 0 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 15, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 15, 0, 2) 	-- Torso 2
	elseif tops == 1 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 0, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 0, 1, 2) 	-- Torso 2
	elseif tops == 2 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 0, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 0, 7, 2) 	-- Torso 2
	elseif tops == 3 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 2, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 2, 9, 2) 	-- Torso 2
	elseif tops == 4 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 5, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 3, 11, 2) 	-- Torso 2
	elseif tops == 5 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 5, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 3, 15, 2) 	-- Torso 2
	elseif tops == 6 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 4, 0, 2) 	-- Torso 2
	elseif tops == 7 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 4, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 4, 0, 2) 	-- Torso 2
	elseif tops == 8 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 26, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 4, 0, 2) 	-- Torso 2
	elseif tops == 9 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 5, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 5, 0, 2) 	-- Torso 2
	elseif tops == 10 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 2, 4, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 6, 11, 2) 	-- Torso 2
	elseif tops == 11 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 2, 4, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 6, 0, 2) 	-- Torso 2
	elseif tops == 12 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 2, 4, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 6, 3, 2) 	-- Torso 2
	elseif tops == 13 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 7, 4, 2) 	-- Torso 2
	elseif tops == 14 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 7, 10, 2) 	-- Torso 2
	elseif tops == 15 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 7, 12, 2) 	-- Torso 2
	elseif tops == 16 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 7, 13, 2) 	-- Torso 2
	elseif tops == 17 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 9, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 9, 0, 2) 	-- Torso 2
	elseif tops == 18 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 10, 0, 2) 	-- Torso 2
	elseif tops == 19 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 12, 2, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 10, 0, 2) 	-- Torso 2
	elseif tops == 20 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 18, 0, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 10, 0, 2) 	-- Torso 2
	elseif tops == 21 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 11, 2, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 10, 0, 2) 	-- Torso 2
	elseif tops == 22 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 12, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 12, 10, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 12, 10, 2) 	-- Torso 2
	elseif tops == 23 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 13, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 13, 0, 2) 	-- Torso 2
	elseif tops == 24 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 14, 0, 2) 	-- Torso 2
	elseif tops == 25 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 14, 1, 2) 	-- Torso 2
	elseif tops == 26 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 16, 0, 2) 	-- Torso 2
	elseif tops == 27 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 16, 1, 2) 	-- Torso 2
	elseif tops == 28 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 16, 2, 2) 	-- Torso 2
	elseif tops == 29 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 17, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 17, 0, 2) 	-- Torso 2
	elseif tops == 30 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 17, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 17, 1, 2) 	-- Torso 2
	elseif tops == 31 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 17, 4, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 17, 4, 2) 	-- Torso 2
	elseif tops == 32 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 27, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 26, 0, 2) 	-- Torso 2
	elseif tops == 33 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 27, 5, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 26, 5, 2) 	-- Torso 2
	elseif tops == 34 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 27, 6, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 26, 6, 2) 	-- Torso 2
	elseif tops == 35 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 63, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 31, 0, 2) 	-- Torso 2
	elseif tops == 36 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 36, 4, 2) 	-- Torso 2
	elseif tops == 37 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 36, 5, 2) 	-- Torso 2
	elseif tops == 38 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 24, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 37, 0, 2) 	-- Torso 2
	elseif tops == 39 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 24, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 37, 1, 2) 	-- Torso 2
	elseif tops == 40 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 24, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 37, 2, 2) 	-- Torso 2
	elseif tops == 41 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 8, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 38, 0, 2) 	-- Torso 2
	elseif tops == 42 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 8, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 38, 3, 2) 	-- Torso 2
	elseif tops == 43 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 39, 0, 2) 	-- Torso 2
	elseif tops == 44 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 39, 1, 2) 	-- Torso 2
	elseif tops == 45 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 41, 0, 2) 	-- Torso 2
	elseif tops == 46 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 42, 0, 2) 	-- Torso 2
	elseif tops == 47 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 50, 0, 2) 	-- Torso 2
	elseif tops == 48 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 50, 3, 2) 	-- Torso 2
	elseif tops == 49 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 50, 4, 2) 	-- Torso 2
	elseif tops == 50 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 57, 0, 2) 	-- Torso 2
	elseif tops == 51 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 50, 1, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 70, 0, 2) 	-- Torso 2
	elseif tops == 52 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 50, 1, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 70, 1, 2) 	-- Torso 2
	elseif tops == 53 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 50, 1, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 23, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 70, 7, 2) 	-- Torso 2
	elseif tops == 54 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 3, 1, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 72, 1, 2) 	-- Torso 2
	elseif tops == 55 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 6, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 87, 0, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 5, 0, 2) 		-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 74, 0, 2) 	-- Torso 2
	elseif tops == 56 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 12, 2, 2) 	-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 28, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 77, 0, 2) 	-- Torso 2
	elseif tops == 57 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 15, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 79, 0, 2) 	-- Torso 2
	elseif tops == 58 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 80, 0, 2) 	-- Torso 2
	elseif tops == 59 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 80, 1, 2) 	-- Torso 2
	elseif tops == 60 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 82, 5, 2) 	-- Torso 2
	elseif tops == 61 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 82, 8, 2) 	-- Torso 2
	elseif tops == 62 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 82, 9, 2) 	-- Torso 2
	elseif tops == 63 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 0, 2) 	-- Torso 2
	elseif tops == 64 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 2, 2) 	-- Torso 2
	elseif tops == 65 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 4, 2) 	-- Torso 2
	elseif tops == 66 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 11, 2) 	-- Torso 2
	elseif tops == 67 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 0, 2) 	-- Torso 2
	elseif tops == 68 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 1, 2) 	-- Torso 2
	elseif tops == 69 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 2, 2) 	-- Torso 2
	elseif tops == 70 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 4, 2) 	-- Torso 2
	elseif tops == 71 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 87, 8, 2) 	-- Torso 2
	elseif tops == 72 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 89, 0, 2) 	-- Torso 2
	elseif tops == 73 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 95, 0, 2) 	-- Torso 2
	elseif tops == 74 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 31, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 99, 1, 2) 	-- Torso 2
	elseif tops == 75 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 31, 13, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 99, 3, 2) 	-- Torso 2
	elseif tops == 76 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 31, 13, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 101, 0, 2) 	-- Torso 2
	elseif tops == 77 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 105, 0, 2) 	-- Torso 2
	elseif tops == 78 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 106, 0, 2) 	-- Torso 2
	elseif tops == 79 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 73, 2, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 109, 0, 2) 	-- Torso 2
	elseif tops == 80 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 111, 0, 2) 	-- Torso 2
	elseif tops == 81 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 111, 3, 2) 	-- Torso 2
	elseif tops == 82 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 113, 0, 2) 	-- Torso 2
	elseif tops == 83 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 126, 5, 2) 	-- Torso 2
	elseif tops == 84 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 126, 9, 2) 	-- Torso 2
	elseif tops == 85 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 126, 10, 2) 	-- Torso 2
	elseif tops == 86 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 126, 14, 2) 	-- Torso 2
	elseif tops == 87 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 131, 0, 2) 	-- Torso 2
	elseif tops == 88 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 134, 0, 2) 	-- Torso 2
	elseif tops == 89 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 134, 1, 2) 	-- Torso 2
	elseif tops == 90 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 0, 2) 	-- Torso 2
	elseif tops == 91 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 2, 2) 	-- Torso 2
	elseif tops == 92 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 4, 2) 	-- Torso 2
	elseif tops == 93 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 5, 2) 	-- Torso 2
	elseif tops == 94 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 6, 2) 	-- Torso 2
	elseif tops == 95 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 8, 2) 	-- Torso 2
	elseif tops == 96 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 143, 9, 2) 	-- Torso 2
	elseif tops == 97 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 146, 0, 2) 	-- Torso 2
	elseif tops == 98 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 16, 2, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 166, 0, 2) 	-- Torso 2
	elseif tops == 99 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 167, 0, 2) 	-- Torso 2
	elseif tops == 100 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 167, 4, 2) 	-- Torso 2
	elseif tops == 101 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 167, 6, 2) 	-- Torso 2
	elseif tops == 102 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 167, 12, 2) 	-- Torso 2
	elseif tops == 103 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 169, 0, 2) 	-- Torso 2
	elseif tops == 104 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 172, 0, 2) 	-- Torso 2
	elseif tops == 105 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 2, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 38, 1, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 173, 0, 2) 	-- Torso 2
	elseif tops == 106 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 2, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 41, 2, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 185, 0, 2) 	-- Torso 2
	elseif tops == 107 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 2, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 202, 0, 2) 	-- Torso 2
	elseif tops == 108 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 203, 10, 2) 	-- Torso 2
	elseif tops == 109 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 203, 16, 2) 	-- Torso 2
	elseif tops == 110 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 203, 25, 2) 	-- Torso 2
	elseif tops == 111 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 2, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 205, 0, 2) 	-- Torso 2
	elseif tops == 112 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 226, 0, 2) 	-- Torso 2
	elseif tops == 113 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 257, 0, 2) 	-- Torso 2
	elseif tops == 114 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 257, 9, 2) 	-- Torso 2
	elseif tops == 115 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 257, 17, 2) 	-- Torso 2
	elseif tops == 116 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 1, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 259, 9, 2) 	-- Torso 2
	elseif tops == 117 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 5, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 5, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 269, 2, 2) 	-- Torso 2
	elseif tops == 118 then
		SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2)		-- Torso
		SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2) 		-- Neck
		SetPedComponentVariation(GetPlayerPed(-1), 8, 15, 0, 2) 	-- Undershirt
		SetPedComponentVariation(GetPlayerPed(-1), 11, 282, 6, 2) 	-- Torso 2
	end

	if pants == 0 then 		SetPedComponentVariation(GetPlayerPed(-1), 4, 61, 4, 2)
	elseif pants == 1 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 0, 0, 2)
	elseif pants == 2 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 0, 2, 2)
	elseif pants == 3 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 1, 12, 2)
	elseif pants == 4 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 2, 11, 2)
	elseif pants == 5 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 3, 0, 2)
	elseif pants == 6 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 4, 0, 2)
	elseif pants == 7 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 4, 1, 2)
	elseif pants == 8 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 4, 4, 2)
	elseif pants == 9 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 5, 0, 2)
	elseif pants == 10 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 5, 2, 2)
	elseif pants == 11 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 7, 0, 2)
	elseif pants == 12 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 7, 1, 2)
	elseif pants == 13 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 9, 0, 2)
	elseif pants == 14 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 9, 1, 2)
	elseif pants == 15 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 10, 0, 2)
	elseif pants == 16 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 10, 2, 2)
	elseif pants == 17 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 12, 0, 2)
	elseif pants == 18 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 12, 5, 2)
	elseif pants == 19 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 12, 7, 2)
	elseif pants == 20 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 14, 0, 2)
	elseif pants == 21 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 14, 1, 2)
	elseif pants == 22 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 14, 3, 2)
	elseif pants == 23 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 15, 0, 2)
	elseif pants == 24 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 20, 0, 2)
	elseif pants == 25 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 24, 0, 2)
	elseif pants == 26 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 24, 1, 2)
	elseif pants == 27 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 24, 5, 2)
	elseif pants == 28 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 26, 0, 2)
	elseif pants == 29 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 26, 4, 2)
	elseif pants == 30 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 26, 5, 2)
	elseif pants == 31 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 26, 6, 2)
	elseif pants == 32 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 28, 0, 2)
	elseif pants == 33 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 28, 3, 2)
	elseif pants == 34 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 28, 8, 2)
	elseif pants == 35 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 28, 14, 2)
	elseif pants == 36 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 42, 0, 2)
	elseif pants == 37 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 42, 1, 2)
	elseif pants == 38 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 48, 0, 2)
	elseif pants == 39 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 48, 1, 2)
	elseif pants == 40 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 49, 0, 2)
	elseif pants == 41 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 49, 1, 2)
	elseif pants == 42 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 54, 1, 2)
	elseif pants == 43 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 55, 0, 2)
	elseif pants == 44 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 60, 2, 2)
	elseif pants == 45 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 60, 9, 2)
	elseif pants == 46 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 71, 0, 2)
	elseif pants == 47 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 75, 2, 2)
	elseif pants == 48 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 76, 2, 2)
	elseif pants == 49 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 78, 0, 2)
	elseif pants == 50 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 78, 2, 2)
	elseif pants == 51 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 78, 4, 2)
	elseif pants == 52 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 82, 0, 2)
	elseif pants == 53 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 82, 2, 2)
	elseif pants == 54 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 82, 3, 2)
	elseif pants == 55 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 86, 9, 2)
	elseif pants == 56 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 88, 9, 2)
	elseif pants == 57 then	SetPedComponentVariation(GetPlayerPed(-1), 4, 100, 9, 2)
	end

	if shoes == 0 then 	SetPedComponentVariation(GetPlayerPed(-1), 6, 34, 0, 2)
	elseif shoes == 1 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 0, 10, 2)
	elseif shoes == 2 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 1, 0, 2)
	elseif shoes == 3 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 1, 1, 2)
	elseif shoes == 4 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 1, 3, 2)
	elseif shoes == 5 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 3, 0, 2)
	elseif shoes == 6 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 3, 6, 2)
	elseif shoes == 7 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 3, 14, 2)
	elseif shoes == 8 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 48, 0, 2)
	elseif shoes == 9 then	SetPedComponentVariation(GetPlayerPed(-1), 6, 48, 1, 2)
	elseif shoes == 10 then SetPedComponentVariation(GetPlayerPed(-1), 6, 49, 0, 2)
	elseif shoes == 11 then SetPedComponentVariation(GetPlayerPed(-1), 6, 49, 1, 2)
	elseif shoes == 12 then SetPedComponentVariation(GetPlayerPed(-1), 6, 5, 0, 2)
	elseif shoes == 13 then SetPedComponentVariation(GetPlayerPed(-1), 6, 6, 0, 2)
	elseif shoes == 14 then SetPedComponentVariation(GetPlayerPed(-1), 6, 7, 0, 2)
	elseif shoes == 15 then SetPedComponentVariation(GetPlayerPed(-1), 6, 7, 9, 2)
	elseif shoes == 16 then SetPedComponentVariation(GetPlayerPed(-1), 6, 7, 13, 2)
	elseif shoes == 17 then SetPedComponentVariation(GetPlayerPed(-1), 6, 9, 3, 2)
	elseif shoes == 18 then SetPedComponentVariation(GetPlayerPed(-1), 6, 9, 6, 2)
	elseif shoes == 19 then SetPedComponentVariation(GetPlayerPed(-1), 6, 9, 7, 2)
	elseif shoes == 20 then SetPedComponentVariation(GetPlayerPed(-1), 6, 10, 0, 2)
	elseif shoes == 21 then SetPedComponentVariation(GetPlayerPed(-1), 6, 12, 0, 2)
	elseif shoes == 22 then SetPedComponentVariation(GetPlayerPed(-1), 6, 12, 2, 2)
	elseif shoes == 23 then SetPedComponentVariation(GetPlayerPed(-1), 6, 12, 13, 2)
	elseif shoes == 24 then SetPedComponentVariation(GetPlayerPed(-1), 6, 15, 0, 2)
	elseif shoes == 25 then SetPedComponentVariation(GetPlayerPed(-1), 6, 15, 1, 2)
	elseif shoes == 26 then SetPedComponentVariation(GetPlayerPed(-1), 6, 16, 0, 2)
	elseif shoes == 27 then SetPedComponentVariation(GetPlayerPed(-1), 6, 20, 0, 2)
	elseif shoes == 28 then SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2)
	elseif shoes == 29 then SetPedComponentVariation(GetPlayerPed(-1), 6, 27, 0, 2)
	elseif shoes == 30 then SetPedComponentVariation(GetPlayerPed(-1), 6, 28, 0, 2)
	elseif shoes == 31 then SetPedComponentVariation(GetPlayerPed(-1), 6, 28, 1, 2)
	elseif shoes == 32 then SetPedComponentVariation(GetPlayerPed(-1), 6, 28, 3, 2)
	elseif shoes == 33 then SetPedComponentVariation(GetPlayerPed(-1), 6, 28, 2, 2)
	elseif shoes == 34 then SetPedComponentVariation(GetPlayerPed(-1), 6, 31, 2, 2)
	elseif shoes == 35 then SetPedComponentVariation(GetPlayerPed(-1), 6, 31, 4, 2)
	elseif shoes == 36 then SetPedComponentVariation(GetPlayerPed(-1), 6, 36, 0, 2)
	elseif shoes == 37 then SetPedComponentVariation(GetPlayerPed(-1), 6, 36, 3, 2)
	elseif shoes == 38 then SetPedComponentVariation(GetPlayerPed(-1), 6, 42, 0, 2)
	elseif shoes == 39 then SetPedComponentVariation(GetPlayerPed(-1), 6, 42, 1, 2)
	elseif shoes == 40 then SetPedComponentVariation(GetPlayerPed(-1), 6, 42, 7, 2)
	elseif shoes == 41 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 0, 2)
	elseif shoes == 42 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 3, 2)
	elseif shoes == 43 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 8, 2)
	elseif shoes == 44 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 9, 2)
	elseif shoes == 45 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 10, 2)
	elseif shoes == 46 then SetPedComponentVariation(GetPlayerPed(-1), 6, 57, 11, 2)
	elseif shoes == 47 then SetPedComponentVariation(GetPlayerPed(-1), 6, 75, 4, 2)
	elseif shoes == 48 then SetPedComponentVariation(GetPlayerPed(-1), 6, 75, 7, 2)
	elseif shoes == 49 then SetPedComponentVariation(GetPlayerPed(-1), 6, 75, 8, 2)
	elseif shoes == 50 then SetPedComponentVariation(GetPlayerPed(-1), 6, 77, 0, 2)
	end

	if watches == 0 then		ClearPedProp(GetPlayerPed(-1), 6)
	elseif watches == 1 then	SetPedPropIndex(GetPlayerPed(-1), 6, 1-1, 1-1, 2)
	elseif watches == 2 then	SetPedPropIndex(GetPlayerPed(-1), 6, 2-1, 1-1, 2)
	elseif watches == 3 then	SetPedPropIndex(GetPlayerPed(-1), 6, 4-1, 1-1, 2)
	elseif watches == 4 then	SetPedPropIndex(GetPlayerPed(-1), 6, 4-1, 3-1, 2)
	elseif watches == 5 then	SetPedPropIndex(GetPlayerPed(-1), 6, 5-1, 1-1, 2)
	elseif watches == 6 then	SetPedPropIndex(GetPlayerPed(-1), 6, 9-1, 1-1, 2)
	elseif watches == 7 then	SetPedPropIndex(GetPlayerPed(-1), 6, 11-1, 1-1, 2)
	end
	
	-- Unused yet
	-- These presets will be editable in V2 release
	SetPedHeadOverlay       	(GetPlayerPed(-1), 4, 0, 0.0)   	-- Lipstick
	SetPedHeadOverlay       	(GetPlayerPed(-1), 8, 0, 0.0) 		-- Makeup
	SetPedHeadOverlayColor  	(GetPlayerPed(-1), 4, 1, 0, 0)      -- Makeup Color
	SetPedHeadOverlayColor  	(GetPlayerPed(-1), 8, 1, 0, 0)      -- Lipstick Color
	SetPedComponentVariation	(GetPlayerPed(-1), 1,  0,0, 2)    	-- Mask
end

function SkinCreator(enable)
	local ped = GetPlayerPed(-1)
	-- Disable Controls
	-- TODO: Reset controls when player confirm his character creation
	if enable == true then
		loadMenus()
		FreezeEntityPosition(ped, true)
		DisableControlAction(2, 14, true)
		DisableControlAction(2, 15, true)
		DisableControlAction(2, 16, true)
		DisableControlAction(2, 17, true)
		DisableControlAction(2, 30, true)
		DisableControlAction(2, 31, true)
		DisableControlAction(2, 32, true)
		DisableControlAction(2, 33, true)
		DisableControlAction(2, 34, true)
		DisableControlAction(2, 35, true)
		DisableControlAction(0, 25, true)
		DisableControlAction(0, 24, true)

		if IsDisabledControlJustReleased(0, 24) or IsDisabledControlJustReleased(0, 142) then -- MeleeAttackAlternate
			SendNUIMessage({type = "click"})
		end

		-- Player
		SetPlayerInvincible(ped, true)

		-- Camera

		RenderScriptCams(false, false, 0, 1, 0)
		DestroyCam(cam, false)
		if(not DoesCamExist(cam)) then
			cam = CreateCam('DEFAULT_SCRIPTED_CAMERA', true)
			--SetCamFov(cam,70.0)
			SetCamCoord(cam, GetEntityCoords(GetPlayerPed(-1)))
			SetCamRot(cam, 0.0, 0.0, 0.0)
			SetCamActive(cam,  true)
			RenderScriptCams(true,  false,  0,  true,  true)
			SetCamCoord(cam, GetEntityCoords(GetPlayerPed(-1)))
		end
		local x,y,z = table.unpack(GetEntityCoords(GetPlayerPed(-1)))
		SetCamCoord(cam, x+0.3, y+2.0, z+0.0)
		SetCamRot(cam, 0.0, 0.0, 170.0)
	else
		FreezeEntityPosition(ped, false)
		SetPlayerInvincible(ped, false)
		RenderScriptCams(false, false, 0, 1, 0)
		DestroyCam(cam, false)
	end
end

function loadMenus()
	SetNuiFocus(true, true)
	SendNUIMessage({
		openSkinCreator = true
	})
end

function hideMenus()
	SetNuiFocus(false)
	SendNUIMessage({
		openSkinCreator = false
	})
end

Citizen.CreateThread(function()
	Citizen.Wait(0)
	hideMenus()
	SkinCreator(false)
end)

function DrawMissionText2(m_text, showtime)
    ClearPrints()
	SetTextEntry_2("STRING")
	AddTextComponentString(m_text)
	DrawSubtitleTimed(showtime, 1)
end

function texthelphaineALEX(str)
	SetTextComponentFormat("STRING")
	AddTextComponentString(str)
	DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end

local locations = {
	{1932.76989746094, 3727.73510742188, 32.8444557189941},
	{1693.26, 4822.27, 42.06},
	{125.83, -223.16, 54.55},
	{-710.16, -153.26, 37.41},
	{-821.69, -1073.90, 11.32},
	{-1192.81, -768.24, 17.31},
	{4.25, 6512.88, 31.87},
	{425.471, -806.164, 29.4911},
	{-284.1448059082,6136.87890625,31.500102996826},
	{63.185001373291,7226.1650390625,3.2974207401276}
	
}


Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		local playerPos = GetEntityCoords(GetPlayerPed(-1), true)
		for i,v in pairs(locations) do
			if Vdist(v[1],v[2],v[3],playerPos.x,playerPos.y,playerPos.z) < 3 then
				DrawMissionText2("~y~Apasa ~o~E ~y~pentru a te schimba!",10)
				if IsControlPressed(0,51) then
					SetEntityHeading(GetPlayerPed(-1), heading)
					loadMenus()
					SkinCreator(true)
				end
			end
			if Vdist(v[1],v[2],v[3],playerPos.x,playerPos.y,playerPos.z) <= 12.0 then
						local rainbow = RGBRainbow( 1 )
				DrawMarker(41,v[1], v[2], v[3],0, 0, 0, 0, 0, 0, 1.001,1.001,1.001,rainbow.r, rainbow.g, rainbow.b,200,1,0,0,true)
			end
		end
	end
end)


Citizen.CreateThread(function()
	Citizen.Wait(0)
	for i,v in pairs(locations) do
		local blip = AddBlipForCoord(v[1],v[2],v[3])
		SetBlipSprite(blip, 73)
		SetBlipScale(blip, 1.2)
		SetBlipColour(blip, 4)
		SetBlipAsShortRange(blip, true)
		
		BeginTextCommandSetBlipName("STRING")
		AddTextComponentString("Imbracaminte")
		EndTextCommandSetBlipName(blip)
	end
end)