Jump to content

Recommended Posts

bom estou tentando ajeitar este script, más me deparei com o seguinte... ao abrir o menu da loja das skins, não está aparecendo o catalogo para selecionar as mesmas alguém sabe dizer o que fiz errado ?

client side:

local screen = {guiGetScreenSize()}
local GUI = {}
GUI.size = {300, 400+40}
GUI.element = {}
local skinoriginal = nil

local function load_leftmenu()	
	if isElement(window) then	
		grid=guiCreateGridList(255,0,0,275,false,window)
		guiSetAlpha(grid,0.8)
		guiGridListAddColumn(grid,"Nome",0.7)
		guiGridListAddColumn(grid,"Preço",0.2)
		guiGridListSetSortingEnabled(grid,false)
	
		
		bt_comprars = guiCreateButton(10,320,280,30,"Comprar",false,window,true)
		bt_provars = guiCreateButton(10,360,280,30,"Provar",false,window,true)
		bt_sairs = guiCreateButton(10,360+40,280,30,"Sair",false,window,true)
		loadcatalogos()
	end
end

local function addItem(item,price,selecionavel,r,g,b)
	if isElement(grid) then
		local row = guiGridListAddRow(grid)
		local name  = item
		local price = price or 0
		guiGridListSetItemText(grid,row,1,name,selecionavel,false)
		if type(r) == "number" then
			guiGridListSetItemColor(grid,row,1,r,g,b,255)
		end
		if selecionavel then return end
		i2 = guiGridListSetItemText(grid,row,2,price,selecionavel,false)
		if type(r) == "number" then
			guiGridListSetItemColor(grid,row,2,r,g,b,255)
		end
	end
end

function loadcatalogos()
	if isElement(grid) then
		addItem("❖ Skins ❖",0,true,255,0,0)
		for i=1,#skins do
			local name,price = skins[i][2],skins[i][3]
			addItem("● "..name,price,false,255,165,0)
		end			
	end
end

local function clear_window()
	local x = 10
	local y = (screen[2] / 2 - GUI.size[2] / 2)	
	if isElement(window) then
		destroyElement(window)		
	end
	window = guiCreateWindow(x, y, GUI.size[1], GUI.size[2], "Loja de skins", false)
end

local function close()
	if isElement(window) then
		destroyElement(window)
	end		
	showCursor(false)	
	carRemove()
end

local function togglePanelLojaSkin()
	if isElement(window) == false then
		showCursor(true)
		clear_window()
		load_leftmenu()
		skinoriginal = getElementModel(localPlayer)
		carAdd()
	else
		destroyElement(window)
		showCursor(false)
	end
	
end
addEvent("togglePanelLojaSkin", true)
addEventHandler("togglePanelLojaSkin", localPlayer, togglePanelLojaSkin)

local function onGuiClickPanel (button, state, absoluteX, absoluteY)
	if source == bt_sairs then
		close()		
		triggerServerEvent("Leaves",localPlayer,localPlayer,skinoriginal)
		skinoriginal = nil		
	elseif source == bt_comprars then
		local clothename = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), 1)	
		local clotheprice = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), 2)
		if clothename == "" or clothename == nil then
			outputChatBox("Selecione uma roupa por favor.",255,255,255)
			return 
		end
		local id = getId(clothename)
		if getPlayerMoney() < tonumber(clotheprice) then outputChatBox("Dinheiro insuficiente",255,255,255) return end
		outputChatBox("Comprada "..clothename,255,255,255)		
		skinoriginal = id
		triggerServerEvent("Comprars",localPlayer,localPlayer,id,clotheprice)
	elseif source == bt_provars then	
		local clothename = guiGridListGetItemText(grid, guiGridListGetSelectedItem(grid), 1)	
		if clothename == "" or clothename == nil then
			outputChatBox("Selecione uma roupa por favor.",255,255,255)
			return 
		end
		local id = getId(clothename)
		outputChatBox("Provando "..clothename,255,255,255)
		triggerServerEvent("Provars",localPlayer,localPlayer,id)
	end	
end
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClickPanel)

function getId(name)
	local id
	local name = string.gsub(name,"    ","")
	local name = string.gsub(name,"● ","")	
	for i=1,#skins do
		if skins[i][2] == name then
			id = skins[i][1]
			break
		end
	end
	return id
end

function onQuitGame( reason )
	if skinoriginal ~= nil then
		triggerServerEvent("Save",source,localPlayer,"skin",skinoriginal,nil)
	end
end
addEventHandler( "onClientPlayerQuit", getRootElement(), onQuitGame )

server side:

markerse={}
markerss={}

mkl1 = {}
local ppx,ppy,ppz = 217.68614196777,-98.584159851074,1004.2578125 

local ppx2,ppy2,ppz2 = 202.348, -96.355, 1005.258 -1
mkl2 = {}

local ppx3,ppy3,ppz3 = 212.49438476563,-96.010269165039,1004.2578125
mkl3 = {}



--Load Lojas
for i=1,#config do
	local x,y,z = config[i][1],config[i][2],config[i][3]
	markerse[i] = createMarker(x,y,z,"cylinder",1.5,29, 149, 27,255)
	createBlipAttachedTo(markerse[i],45,1,255,255,255,255,0,150)
	setElementData(markerse[i],"Store:DM",i)
	
	mkl1[i] = createMarker(ppx,ppy,ppz,"cylinder",1.5,29, 149, 27,255)
	setElementDimension(mkl1[i],i)
	setElementInterior(mkl1[i],15,ppx,ppy,ppz)
	
	mkl2[i] = createMarker(ppx2,ppy2,ppz2,"cylinder",1.5,29, 149, 27,255)
	setElementDimension(mkl2[i],i)
	setElementInterior(mkl2[i],15,ppx2,ppy2,ppz2)
	
	mkl3[i] = createMarker(ppx3,ppy3,ppz3,"cylinder",1.5,29, 149, 27,255)
	setElementDimension(mkl3[i],i)
	setElementInterior(mkl3[i],15,ppx3,ppy3,ppz3)		
	
	markerss[i] = createMarker(sx,sy,sz,"cylinder",1.5,29, 149, 27,255)
	if isElement(markerss[i]) then
		setElementDimension(markerss[i],i)
		setElementInterior(markerss[i],15,sx,sy,sz)
		setElementData(markerss[i],"Store:Saida",{x,y,z})
	end
end

function enterstore(source,marker)
	local dm = getElementData(source,"Store:DM") or 0
	unbindKey (source,"k", "down", entrarloja )
	----exports.Script_OnMarkerMsgs_:delete(source)	
	setElementInterior(source,15,sx,sy+2,sz+1)
	setElementRotation(source,0,0,srz)
	setElementDimension(source,tonumber(dm))
	--setTimer(triggerClientEvent,500,1,source,"toggleHome",source)
end

function sairloja(source, marker)
	local dm = getElementData(source,"Store:DM") or 0
	unbindKey (source,"k", "down", entrarloja )
	----exports.Script_OnMarkerMsgs_:delete(source)	
	local pos = getElementData(source,"Store:Saida") or {0,0,0}
	local sx,sy,sz = pos[1],pos[2],pos[3]
	setElementInterior(source,0,sx,sy+2,sz+1)
	setElementDimension(source,0)
end

function clothesmg(source)
		outputChatBox("------------------------------------------------------------------------------------------------------",source,255,255,255)
		outputChatBox("❖Ulitize os comandos para tirar ou por a peça de roupa/acessorio❖",source,255,255,255)
		outputChatBox("● /camisa - Camisa, camiseta, casaco e etc",source,255,0,0)
		outputChatBox("● /calca - Cueca, bermuda, calça e etc",source,255,0,0)
		outputChatBox("● /tenis - Chinelo, tenis, bota e etc",source,255,0,0)
		outputChatBox("● /chapeu - Chapéu, boné, capacete e etc",source,255,0,0)
		outputChatBox("● /oculos - Óculos, bandana, mascara e etc",source,255,0,0)		
		outputChatBox("------------------------------------------------------------------------------------------------------",source,255,255,255)
	
end

function MarkerHit ( marker, matchingDimension )
	for bb=1,#markerse do
		if marker == markerse[bb] and matchingDimension then		
			if isPedInVehicle(source) then return end
			setElementData(source,"Store:DM",bb)
			if isElementWithinMarker(source, marker) then
				enterstore(source, marker)
			end
			--triggerClientEvent(root, "addNotification", root, "Aperte 'k' para entrar na loja", "info")
			break
		end	
	end
	for bb=1,#markerss do
		if marker == markerss[bb] and matchingDimension then		
			if isPedInVehicle(source) then return end
				local pos = getElementData(marker,"Store:Saida")
				setElementData(source,"Store:Saida",pos)
				if isElementWithinMarker(source, marker) then
					sairloja(source, marker)
				end
				setElementData(source,"Store:DM",nil)
				setElementData(source,"Store:Saida",nil)
				--triggerClientEvent(root, "addNotification", root, "Aperte 'k' para sair da loja", "info")	
			break
		end	
	end	
	for bb=1,#mkl1 do
		if marker == mkl1[bb] and matchingDimension then
			if getPedSkin(source) == 0 then
				local roupast = getElementData(source,"roupast")
				local roupasm = getElementData(source,"roupasm")		
				local camisa = getElementData(source,"camisa") or false
				local calca = getElementData(source,"calca") or false
				local oculos = getElementData(source,"oculos") or false
				local tenis = getElementData(source,"tenis") or false
				local chapeu = getElementData(source,"chapeu") or false		
				if camisa or calca or oculos or tenis or chapeu then
					for i=0, 17, 1 do
						removePedClothes ( source, i ) 
						local clothesTexture, clothesModel = roupast[i],roupasm[i]
						if ( clothesTexture ~= "vazio" ) and ( clothesModel ~= "vazio" ) and ( clothesTexture ~= "nil" ) and ( clothesModel ~= "nil" ) then
							local d = addPedClothes(source,tostring(clothesTexture),tostring(clothesModel),i)			
						end
					end		
					setElementData(source,"camisa",false)
					setElementData(source,"calca",false)
					setElementData(source,"oculos",false)
					setElementData(source,"tenis",false)
					setElementData(source,"chapeu",false)	
				end
				setElementData(source,"inloja",true)
				clothesmg(source)
				triggerClientEvent(source,"togglePanelLoja",source)			
			end
			break
		end	
	end
	for bb=1,#mkl2 do
		if marker == mkl2[bb] and matchingDimension then		
			triggerClientEvent(source,"togglePanelLojaSkin",source)
			break
		end	
	end	
	for bb=1,#mkl3 do
		if marker == mkl3[bb] and matchingDimension then
			if getPedSkin(source) == 0 then
				triggerClientEvent(source,"togglePanelLojaMassa",source)			
			end
			break
		end	
	end		
end
addEventHandler ( "onPlayerMarkerHit", getRootElement(), MarkerHit )

function MarkerLeave ( marker, matchingDimension )
	for bb=1,#markerse do
		if marker == markerse[bb] and matchingDimension then
			--exports.Script_OnMarkerMsgs_:delete(source)
			unbindKey (source,"k", "down", entrarloja)
			setElementData(source,"Store:DM",nil)
			break
		end
	end	
	for bb=1,#markerss do
		if marker == markerss[bb] and matchingDimension then
			--exports.Script_OnMarkerMsgs_:delete(source)
			unbindKey (source,"k", "down", sairloja)
			setElementData(source,"Store:Saida",nil)
			break
		end
	end		
end
addEventHandler ( "onPlayerMarkerLeave", getRootElement(), MarkerLeave )


function Provar(source,tx,md,index)
	addPedClothes(source,tx,md,index)
end
addEvent("Provar",true)
addEventHandler("Provar",root,Provar)



function Remover(source,tx,md,index)
	removePedClothes ( source, index ) 
end
addEvent("Remover",true)
addEventHandler("Remover",root,Remover)



function Leave(source,txs,mds)
	for i=0, 17, 1 do
		removePedClothes ( source, i ) 
		local clothesTexture, clothesModel = txs[i],mds[i]
		--outputChatBox(i.."##"..tostring(clothesTexture).." - "..tostring(clothesModel))
		if ( clothesTexture ~= "vazio" ) and ( clothesModel ~= "vazio" ) and ( clothesTexture ~= nil ) and ( clothesModel ~= nil ) then
			addPedClothes(source,clothesTexture,clothesModel,i)
		end
	end
	local t,m = getPedClothesC(source)
	setElementData(source,"roupast",t)
	setElementData(source,"roupasm",m)	
	setElementData(source,"inloja",false)
	saveClothes(source,t,m)	
end
addEvent("Leave",true)
addEventHandler("Leave",root,Leave)

function Comprar(source,tx,md,index,price)
	takePlayerMoney(source,price)
	addPedClothes(source,tx,md,index)
	local t,m = getPedClothesC(source)
	setElementData(source,"roupast",t)
	setElementData(source,"roupasm",m)	
	saveClothes(source,t,m)
end
addEvent("Comprar",true)
addEventHandler("Comprar",root,Comprar)

function Provars(source,id)
	setPedSkin(source,id)
end
addEvent("Provars",true)
addEventHandler("Provars",root,Provars)

function Leaves(source,id)
	setPedSkin(source,id)
	if id == 0 then
		updateStats(source)
	end
end
addEvent("Leaves",true)
addEventHandler("Leaves",root,Leaves)

function Comprars(source,id,price)
	takePlayerMoney(source,price)
	setPedSkin(source,id)
	saveSkins(source,id)
	if id == 0 then
		updateStats(source)
	end
end
addEvent("Comprars",true)
addEventHandler("Comprars",root,Comprars)

function Comprarm(source,price,g,f)
	takePlayerMoney(source,price)
	setPedStat(source,21,g)
	setPedStat(source,23,f)
	saveStats(source)
end
addEvent("Comprarm",true)
addEventHandler("Comprarm",root,Comprarm)

function Save(source,id,i1,i2)
	if id == "skin" then
		local sid = i1
		saveSkins(source,sid)
	else
		local clothesTexture, clothesModel = i1,i2
		saveClothes(source,clothesTexture, clothesModel)
		--outputChatBox("ss")
	end
end
addEvent("Save",true)
addEventHandler("Save",root,Save)

function convertVet(vet,s)
	local vt2 = {}	
	if s == "inver" then
		for i = 1,#vet do
			local id = i-1
			vt2[id] = vet[i]
		end
	else
		for i = 0,#vet do
			local id = i+1
			vt2[id] = vet[i]
		end		
	end
	return vt2
end

function loadClothes(player)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) and getElementModel(player) == 0 then
		local tx = getAccountData(account,"Clothessaver:Texture")
		local md = getAccountData(account,"Clothessaver:Model")
		local tx = convertVet(split(tx,","),"inver")
		local md = convertVet(split(md,","),"inver")	
		setElementData(source,"roupast",tx)
		setElementData(source,"roupasm",md)			
		for i=0, 17, 1 do
			removePedClothes ( player, i ) 
			local clothesTexture, clothesModel = string.gsub(tostring(tx[i])," ","") ,string.gsub(tostring(md[i])," ","")
			--outputChatBox(i.." ## "..tostring(clothesTexture).." - "..tostring(clothesModel))
			if ( clothesTexture ~= "vazio" ) and ( clothesModel ~= "vazio" ) and ( clothesTexture ~= "nil" ) and ( clothesModel ~= "nil" ) then
				local d = addPedClothes(player,tostring(clothesTexture),tostring(clothesModel),i)			
			end
		end
	end
end
addEvent( "Clothes:LOAD", true )
addEventHandler( "Clothes:LOAD", root, loadClothes )

function saveClothes(player,texture,model)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) then
		local texture = table.concat(convertVet(texture,"revert"),",")
		local model = table.concat(convertVet(model,"revert"),",")
		setAccountData(account, "Clothessaver:Texture", texture)
		setAccountData(account, "Clothessaver:Model", model)
	end
end
addEvent( "Clothes:SAVE", true )
addEventHandler( "Clothes:SAVE", root, saveClothes )

function loadSkins(player)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) then
		local id = getAccountData(account,"Skinsaver:ID") or 0
		setPedSkin(player,id)
		if id == 0 then
			loadStats(player)
		end
	end
end
addEvent( "Skins:LOAD", true )
addEventHandler( "Skins:LOAD", root, loadSkins )

function saveSkins(player,id)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) then
		setAccountData(account, "Skinsaver:ID", id)
	end
end
addEvent( "Skins:SAVE", true )
addEventHandler( "Skins:SAVE", root, saveSkins )

function loadStats(player)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) then
		if getPedSkin(player) ~= 0 then return end
		local stats1 = getAccountData(account,"statsaver:gordo") or 0
		local stats2 = getAccountData(account,"statsaver:forte") or 0
		setElementData(player,"statsaver:gordo",stats1)
		setElementData(player,"statsaver:forte",stats2)
		setPedStat(player,21,stats1)
		setPedStat(player,23,stats2)
	end
end
addEvent( "Stats:LOAD", true )
addEventHandler( "Stats:LOAD", root, loadStats )

function saveStats(player)
	local account = getPlayerAccount(player)
	if ( not isGuestAccount(account) ) then
		if getPedSkin(player) ~= 0 then return end
		local stats1 = getPedStat(player,21) --gordo
		local stats2 = getPedStat(player,23) --forte
		setAccountData(account, "statsaver:gordo", stats1)
		setAccountData(account, "statsaver:forte", stats2)
		setElementData(player,"statsaver:gordo",stats1)
		setElementData(player,"statsaver:forte",stats2)		
	end
end
addEvent( "Stats:SAVE", true )
addEventHandler( "Stats:SAVE", root, saveStats )

function updateStats(player)
	if getPedSkin(player) == 0 then
		local stats1 = getElementData(player, "statsaver:gordo")
		local stats2 = getElementData(player, "statsaver:forte")	
		setPedStat(player,21,stats1)
		setPedStat(player,23,stats2)				
	end
end

addEventHandler("onPlayerLogin", root,
  function()
    setPedSkin(source,0)
	loadClothes(source)
	loadStats(source)
	setTimer(loadSkins,1000,1,source)
  end
)

addEventHandler("onResourceStart", resourceRoot,
function(res)
	if (getResourceName(res) == getResourceName(getThisResource())) then
		for _, player in ipairs(getElementsByType("player")) do
			setPedSkin(player,0)
			loadClothes(player)
			setTimer(loadSkins,1000,1,player)
			--setTimer(triggerClientEvent,1000,1,player,"togglePanelLojaMassa",player)
		end
	end
end)

function quitPlayer ( quitType )
	local skin = getElementModel(source)
	setElementModel(source,0)
	saveStats(source)
	local nudate = getElementData(source,"nu")
	local roupast = getElementData(source,"roupast")
	local roupasm = getElementData(source,"roupasm")
	if nudate then
		for i=0, 17, 1 do
			removePedClothes ( source, i ) 
			local clothesTexture, clothesModel = roupast[i],roupasm[i]
			if ( clothesTexture ~= "vazio" ) and ( clothesModel ~= "vazio" ) and ( clothesTexture ~= "nil" ) and ( clothesModel ~= "nil" ) then
				local d = addPedClothes(source,tostring(clothesTexture),tostring(clothesModel),i)			
			end
		end		
		setElementData(source,"nu",false)		
	end	
	local t,m = getPedClothesC(source)
	saveClothes(source,t,m)
	saveSkins(source,skin)	
end
addEventHandler ( "onPlayerQuit", root, quitPlayer )

function updateroupa(source)
	local roupast = getElementData(source,"roupast")
	local roupasm = getElementData(source,"roupasm")
	local camisa = getElementData(source,"camisa") or false
	local calca = getElementData(source,"calca") or false
	local oculos = getElementData(source,"oculos") or false
	local tenis = getElementData(source,"tenis") or false
	local chapeu = getElementData(source,"chapeu") or false
	if camisa then
		local index = 0
		removePedClothes(source,index)
	else
		local index = 0
		local tx,md = roupast[index],roupasm[index]
		addPedClothes(source,tx,md,index)
	end
	if calca then
		local index = 2
		removePedClothes(source,index)	
	else
		local index = 2
		local tx,md = roupast[index],roupasm[index]
		addPedClothes(source,tx,md,index)
	end
	if oculos then
		local index = 15
		removePedClothes(source,index)	
	else
		local index = 15
		local tx,md = roupast[index],roupasm[index]
		addPedClothes(source,tx,md,index)
	end
	if tenis then
		local index = 3
		removePedClothes(source,index)	
	else
		local index = 3
		local tx,md = roupast[index],roupasm[index]
		addPedClothes(source,tx,md,index)
	end
	if chapeu then
		local index = 16
		removePedClothes(source,index)		
	else
		local index = 16
		local tx,md = roupast[index],roupasm[index]
		addPedClothes(source,tx,md,index)
	end
end

function nu(source,cmd)	
	local loja = getElementData(source,"inloja")
	if loja then outputChatBox("Saia da loja primeiro",source,255,255,255) return end 
	if getPedSkin(source) ~= 0 then return end
	if cmd == "camisa" then
		local camisa = getElementData(source,"camisa") or false
		local data,roupa = camisa,"camisa"
		if data then
			setElementData(source,roupa,false)
			outputChatBox("Voce colocou o(a) "..roupa,source,255,255,255)
		else
			setElementData(source,roupa,true)
			outputChatBox("Voce tirou o(a) "..roupa,source,255,255,255)		
		end
		updateroupa(source)
	elseif cmd == "calca" then
		local calca = getElementData(source,"calca") or false
		local data,roupa = calca,"calca"
		if data then
			setElementData(source,roupa,false)
			outputChatBox("Voce colocou o(a) "..roupa,source,255,255,255)
		else
			setElementData(source,roupa,true)
			outputChatBox("Voce tirou o(a) "..roupa,source,255,255,255)		
		end
		updateroupa(source)	
	elseif cmd == "oculos" then
		local oculos = getElementData(source,"oculos") or false
		local data,roupa = oculos,"oculos"
		if data then
			setElementData(source,roupa,false)
			outputChatBox("Voce colocou o(a) "..roupa,source,255,255,255)
		else
			setElementData(source,roupa,true)
			outputChatBox("Voce tirou o(a) "..roupa,source,255,255,255)		
		end
		updateroupa(source)	
	elseif cmd == "tenis" then
		local tenis = getElementData(source,"tenis") or false
		local data,roupa = tenis,"tenis"
		if data then
			setElementData(source,roupa,false)
			outputChatBox("Voce colocou o(a) "..roupa,source,255,255,255)
		else
			setElementData(source,roupa,true)
			outputChatBox("Voce tirou o(a) "..roupa,source,255,255,255)		
		end	
		updateroupa(source)
	elseif cmd == "chapeu" then
		local chapeu = getElementData(source,"chapeu") or false
		local data,roupa = chapeu,"chapeu"
		if data then
			setElementData(source,roupa,false)
			outputChatBox("Voce colocou o(a) "..roupa,source,255,255,255)
		else
			setElementData(source,roupa,true)
			outputChatBox("Voce tirou o(a) "..roupa,source,255,255,255)		
		end	
		updateroupa(source)
	end
end
addCommandHandler("camisa",nu)
addCommandHandler("calca",nu)
addCommandHandler("oculos",nu)
addCommandHandler("chapeu",nu)
addCommandHandler("tenis",nu)

Server side2:

config = {
{2244.4619140625,-1665.0860595703,14.4765625},
{460.76547241211,-1500.9693603516,30.057741165161},
} 

sx,sy,sz,srz = 207.6900177002,-110.68050384521,1004.1328125,0

skins = {
	{0,"CJ",500},
	{25,"Skin1",500},
	{11,"Skin2",500},
	{73,"Skin3",500},
	{72,"Skin4",500},
	{19,"Skin5",500},
	{37,"Skin6",500},
	{73,"Skin7",500},
	{35,"Skin8",500},
	{14,"Skin9",500},
	{15,"Skin10",500},
	{16,"Skin11",500},
	{34,"Skin12",500},
	{13,"Skin13",500},
	{89,"Skin14",500},
	{79,"Skin15",500},
	{18,"Skin16",500},
	
}

Calcas = {
	{"0","Cueca Branca",500},
	{"8","Cueca Preta",500},
	{"9","Cueca Corações",500},	
	{"39","Calça Dragão",500},	
	{"40","Calça Jeans",500},
	{"7","Calça Jeans2",500},		
	{"1","Calça Camuflada",500},
	{"2","Calça Cinza Camuflada",500},
	{"3","Calça Cinza",500},
	{"4","Calça Khaki",500},
	{"5","Calça de Pista",500},
	{"6","Calça de Pista Treris",500},
	{"10","Calça Branca ",500},
	{"11","Calça Vermelha Listra",500},
	{"12","Calça Cinza Listra",500},
	{"13","Calça Azul Listra",500},	
	{"14","Calça Verde Listra",500},
	{"26","Calça Verde",500},
	{"27","Calça Vermelha",500},
	{"28","Calça Bege",500},
	{"29","Calça Verde M",500},
	{"32","Calça PretaF",500},
	{"33","Calça AzulF",500},
	{"34","Calça CBy",500},
	{"35","Calça CBy2",500},
	{"41","Calça Banana",500},
	{"36","Calça Social1",500},
	{"37","Calça Social2",500},		
	{"42","Calça Social3",500},
	{"43","Calça Social4",500},
	{"44","Calça Melancia",500},
	{"18","Calça Arrow Colorida",500},	
	{"15","Bermuda Branca",500},
	{"16","Bermuda Vermelha",500},
	{"17","Bermuda Vermelha2",500},
	{"19","Bermuda Preta",500},
	{"20","Bermuda Verde",500},
	{"21","Bermuda LP",500},
	{"22","Bermuda LVerd",500},
	{"23","Bermuda LVerm",500},
	{"24","Bermuda LA",500},
	{"25","Bermuda Verde",500},
	{"30","Bermuda Bege",500},
	{"31","Bermuda AE",500},	
}
Rosto = {
	{"1","Mascara",500},			
	{"0","Oculos + Nariz",500},		
	{"3","Oculos 1 Grau",500},	
	{"4","Oculos Fundo De Garrafa",500},
	{"9","Oculos H Escuro",500},
	{"10","Oculos S Escuro",500},
	{"14","Oculos S1 Escuro",500},
	{"15","Oculos S2 Escuro",500},
	{"16","Oculos S3 Escuro",500},		
	{"11","Oculos Noia 1.0",500},
	{"12","Oculos Noia 2.0",500},
	{"13","Oculos Noia 3.0",500},
	{"2","Tapa Olho",500},		
	{"5","Bandana Vermelha",500},
	{"6","Bandana Azul",500},
	{"7","Bandana Verde",500},
	{"8","Bandana Preta",500},		
}

Cabeca = {
	{"0","Bandred",500},
	{"1","Bandblue",500},	
	{"2","Bandgang",500},	
	{"3","Bandblack",500},
	{"4","Bandred2",500},
	{"5","Bandblue2",500},
	{"6","Bandblack2",500},
	{"7","Bandgang2",500},
	{"8","Capknitgrn",500},
	{"9","Captruck",500},
	{"10","Cowboy",500},
	{"11","Hattiger",500},
	{"12","Helmet",500},
	{"13","Moto",500},
	{"14","Boxingcap",500},
	{"15","Hockey",500},
	{"16","Capgang",500},
	{"17","Capgangback",500},
	{"18","Capgangside",500},
	{"19","Capgangover",500},
	{"20","Capgangup",500},
	{"21","Bikerhelmet",500},	
	{"22","Capred",500},	
	{"23","Capredback",500},
	{"24","Capredside",500},
	{"25","Capredover",500},
	{"26","Capredup",500},
	{"27","Capblue",500},
	{"28","Capblueback",500},
	{"29","Capblueside",500},
	{"30","Capblueover",500},
	{"31","Capblueup",500},
	{"32","Skullyblk",500},
	{"33","Skullygrn",500},
	{"34","Hatmancblk",500},
	{"35","Hatmancplaid",500},
	{"36","Capzip",500},
	{"37","Capzipback",500},
	{"38","Capzipside",500},
	{"39","Capzipover",500},	
	{"40","Capzipup",500},
	{"41","Beretred",500},
	{"42","Beretblk",500},
	{"43","Capblk",500},
	{"44","Capblkback",500},
	{"45","Capblkside",500},
	{"46","Capblkover",500},
	{"47","Capblkup",500},
	{"48","Trilbydrk",500},
	{"49","Trilbylght",500},
	{"50","Bowler",500},
	{"51","Bowlerred",500},
	{"52","Bowlerblue",500},
	{"53","Bowleryellow",500},
	{"54","Boater",500},
	{"55","Bowlergang",500},
	{"56","Boaterblk",500},		
}
	
Relogios = {
	{"0","Hello Kif",500},
	{"1","Hello Bronze",500},
	{"2","IRG",500},
	{"3","Helfigerts",500},
	{"4","Larks",500},
	{"5","Greend",500},
	{"6","Prata Link",500},
	{"7","Ouro Link",500},
	{"8","Ouro",500},
	{"9","Prata",500},
	{"10","Full Gold SH",500},
	{"11","Full Metal SH",500},
}
Cordoes = {
	{"0","Aluminio",500},
	{"1","Africa",500},
	{"3","Saints",500},
	{"4","Maconha",500},
	{"5","Metal",500},
	{"6","Cobre",500},
	{"7","Prata",500},
	{"8","Ouro",500},
	{"9","S/L Prata",500},
	{"10","$ Prata",500},
	{"11","Crucifixo Prata",500},
}
Calcados = {
	{"0","Descalço",500},
	{"9","Chinelo",500},			
	{"7","Sandalha",500},
	{"8","Sandalha + Meia",500},	
	{"2","Tenis Bask 1",500},
	{"3","Tenis FlipFlop",500},
	{"4","Tenis Hitop",500},
	{"6","Tenis Sneaker",500},
	{"10","Tenis Sneaker PRO",500},
	{"11","Tenis RootStar",500},
	{"12","Tenis Arrow Azul",500},
	{"13","Tenis Bg",500},
	{"14","Tenis Arrow Vermelho",500},
	{"15","Tenis Arrow Azul",500},
	{"16","Tenis Arrow Branco",500},
	{"17","Tenis Arrow TW",500},
	{"18","Tenis Arrow Cinza",500},
	{"20","Tenis RootStar P",500},
	{"21","Tenis RootStar V",500},
	{"22","Tenis RootStar M",500},
	{"23","Tenis Timb",500},
	{"24","Tenis TimbC",500},
	{"25","Tenis TimbCs",500},
	{"26","Tenis TimbC 2.0",500},
	{"27","Tenis TimbCj",500},
	{"28","Tenis Kin",500},
	{"29","Tenis Dress",500},
	{"30","Tenis Brn",500},
	{"31","Tenis PZ",500},
	{"35","Tenis Hooker P",500},
	{"36","Tenis Hooker Q ",500},
	{"37","Tenis Hooker R",500},
	{"1","Bota Marrom",500},		
	{"19","Bota Cinza",500},		
	{"32","Bota MT 1.0",500},	
	{"33","Bota MT 2.0",500},
	{"34","Bota MT 3.0",500},			
}
Cabelos = {
	{"0","Baixo",500},
	{"1","Baixo Loiro",500},
	{"2","Baixo Vermelho",500},
	{"3","Baixo Azul",500},
	{"4","Baixo Verde",500},
	{"5","Baixo Rosa",500},
	{"30","Baixo + Bigode",500},
	{"31","Baixo + Cavanhaque P",500},		
	{"29","Baixo + Cavanhaque G",500},	
	{"6","Careca",500},
	{"8","Careca + Bigode",500},
	{"9","Careca + Cavanhaque P",500},
	{"7","Careca + Cavanhaque G",500},		
	{"11","Alto",500},
	{"12","Will",500},
	{"13","Mohawk",500},
	{"14","Pixaim",500},
	{"15","Tranças",500},
	{"16","Tranças Loiras",500},
	{"17","Falhado",500},
	{"18","Mal Cortado",500},
	{"19","Moicano",500},
	{"20","Moicano Loiro",500},
	{"21","Moicano Rosa",500},
	{"22","Moicano + Cavanhaque G",500},
	{"23","Black Power",500},
	{"26","Black Power Loiro",500},		
	{"24","Black Power + Bigode",500},
	{"32","Black Power + Cavanhaque P",500},		
	{"25","Black Power + Cavanhaque G",500},
	{"27","Topper",500},
	{"28","Elvis",500},
}
Camisas = {
	{"0","Sem Camisa",500},		
	{"1","Regata Preta",500},
	{"2","Regata Branca",500},
	{"50","Regata Loedwn",500},	
	{"15","Regata Dribblers 69",500},	
	{"16","Regata Saints 7",500},		
	{"3","Camisa Listrada",500},
	{"4","Camisa Ecko Unltd",500},
	{"5","Camisa Homem Aranha",500},	
	{"6","Camisa Foda-se",500},	
	{"10","Camisa 3D Cat",500},			
	{"11","Camisa Crânio",500},	
	{"20","Camisa Nike Air",500},
	{"25","Camisa Bart Simpsom",500},
	{"26","Camisa Adidas Originals",500},
	{"27","Camisa Adidas White",500},	
	{"51","Camisa Billabong",500},			
	{"12","Camisa M.U",500},
	{"17","Camisa Bg 52",500},	
	{"18","Camisa Bandits",500},	
	{"19","Camisa Arrow",500},				
	{"28","Camisa Five",500},	
	{"29","Camisa Sub Urban",500},	
	{"23","Camisa Pro Arrow",500},
	{"33","Camisa c/ Colete",500},	
	{"40","Camisa Manga Marrom",500},
	{"41","Camisa Social",500},
	{"42","Camisa Social",500},
	{"43","Camisa Social",500},
	{"44","Camisa Social",500},
	{"45","Camisa ZIP B",500},	
	{"46","Camisa ZIP C",500},	
	{"48","Camisa c/ Tiros",500},
	{"52","Camisa Maddgrey",500},	
	{"53","Camisa Maddgun",500},
	{"58","Camisa Beach",500},	
	{"59","Camisa Avaí",500},	
	{"7","Camisa Quadrilha",500}, --manga	
	{"8","Camisa Social",500},	--manga		
	{"13","Casaco Jh",500},	
	{"14","Casaco VR",500},			
	{"21","Casaco Arrow",500},
	{"22","Casaco Hockey",500},
	{"24","Casaco Arrow Colorido",500},
	{"30","Casaco C",500},	
	{"31","Casaco Five",500},	
	{"32","Casaco Gran Rockstar",500},	
	{"34","Casaco Green Musg",500},	
	{"35","Casaco Green Black",500},	
	{"60","Casaco Bege",500},
	{"49","Casaco Laranja",500},			
	{"36","Casaco Rockstar Branco",500},	
	{"37","Casaco Rockstar Azul",500},	
	{"38","Casaco Rockstar Cinza",500},	
	{"39","Casaco Rockstar Verde",500},	
	{"9","Jaqueta srt",500},		
	{"56","Jaqueta Preta",500},
	{"47","Jaqueta Jeans",500},		
	{"57","Jaqueta Jeans Preta",500},			
	{"54","Palitó Cinza",500},	
	{"55","Palitó Preto",500},			
	{"61","Palitó Vermelho",500},
	{"62","Palitó Azul",500},
	{"63","Palitó Amarelo",500},
	{"64","Palitó Listrado",500},
	{"65","Palitó God",500},
	{"66","Palitó Verde",500},	
	{"67","Palitó R",500},		
}

--Braço esquerdo
t1 = {
	{"0","Maconha",500},	
	{"1","Cruz",500},	
	{"2","Aranha",500},		
}

--Braço Inferior Esquerdo
t2 = {
	{"0","Gun",500},	
	{"1","Cross five",500},	
	{"2","Cross two",500},		
	{"3","Cross three",500},			
}

--Braço direito
t3 = {
	{"0","Aztec",500},	
	{"1","Crown",500},	
	{"2","Clown",500},		
	{"3","África",500},			
}

--Braço inferior direito
t4 = {
	{"0","Cross seven",500},	
	{"1","Seven ss",500},	
	{"2","CMaryT",500},		
	{"3","ThMary",500},			
}

--Costas
t5 = {
	{"0","Sa",500},	
	{"1","Sa2",500},	
	{"2","SA3",500},		
	{"3","WESTSD",500},
	{"4","Santos",500},	
	{"5","Poker",500},		
	{"6","8Gun",500},	
}

--Peito esquerdo
t6 = {
	{"0","9Crown",500},	
	{"1","9Gun",500},	
	{"2","9Gun2",500},		
	{"3","9Homby",500},
	{"4","9Bullt",500},	
	{"5","9Rasta",500},		
}

--Peito direito
t7 = {
	{"0","10LS",500},	
	{"1","10LS2",500},	
	{"2","10LS3",500},		
	{"3","10LS4",500},
	{"4","10LS5",500},	
	{"5","10Og",500},
	{"6","10Weed",500},	
}

--Estomago
t8 = {
	{"0","11Grove",500},	
	{"1","11Grov2",500},	
	{"2","11Grov3",500},		
	{"3","11Dice",500},
	{"4","11Dice2",500},	
	{"5","11Jail",500},
	{"6","11GGift",500},	
}

--Parte inferior das costas
t9 = {
	{"0","12Angel",500},	
	{"1","12Maybr",500},	
	{"2","12Dager",500},		
	{"3","12BNdit",500},
	{"4","12Cross",500},	
	{"5","12Myfac",500},	
}

clothes = { 
	[0] = { 		
		[0] = {Texture = "player_torso", Model = "torso", price = 10},
		[1] = {Texture = "vestblack", Model = "vest", price = 50},
		[2] =  {Texture = "vest", Model = "vest", price = 50 },
		[3] =  {Texture = "tshirt2horiz", Model = "tshirt", price = 75 },
		[4] =  {Texture = "tshirtwhite", Model = "tshirt", price = 75 },
		[5] =  {Texture = "tshirtilovels", Model = "tshirt", price = 75 },
		[6] =  {Texture = "tshirtblunts", Model = "tshirt", price = 75 },
		[7] =  {Texture = "shirtbplaid", Model = "shirtb", price = 75 },
		[8] =  {Texture = "shirtbcheck", Model = "shirtb", price = 75 },
		[9] =  {Texture = "field", Model = "field", price = 100 },
		[10] =  {Texture = "tshirterisyell", Model = "tshirt", price = 100 },
		[11] =  {Texture = "tshirterisorn", Model = "tshirt", price = 100 },
		[12] =  {Texture = "trackytop2eris", Model = "trackytop1", price = 100 },
		[13] =  {Texture = "bbjackrim", Model = "bbjack", price = 100 },
		[14] =  {Texture = "bballjackrstar", Model = "bbjack", price = 100 },
		[15] =  {Texture = "baskballdrib", Model = "baskball", price = 125 },
		[16] =  {Texture = "baskballrim", Model = "baskball", price = 125 },
		[17] =  {Texture = "sixtyniners", Model = "tshirt", price = 125 },
		[18] =  {Texture = "bandits", Model = "baseball", price = 125 },
		[19] =  {Texture = "tshirtprored", Model = "tshirt", price = 125 },
		[20] =  {Texture = "tshirtproblk", Model = "tshirt", price = 125 },
		[21] =  {Texture = "trackytop1pro", Model = "trackytop1", price = 175 },
		[22] =  {Texture = "hockeytop", Model = "sweat", price = 175 },
		[23] =  {Texture = "bbjersey", Model = "sleevt", price = 175 },
		[24] =  {Texture = "shellsuit", Model = "trackytop1", price = 175 },
		[25] =  {Texture = "tshirtheatwht", Model = "tshirt", price = 200 },
		[26] =  {Texture = "tshirtbobomonk", Model = "tshirt", price = 200},
		[27] =  {Texture = "tshirtbobored", Model = "tshirt", price = 200 },
		[28] =  {Texture = "tshirtbase5", Model = "tshirt", price = 200 },
		[29] =  {Texture = "tshirtsuburb", Model = "tshirt", price = 200 },
		[30] =  {Texture = "hoodyamerc", Model = "hoodya", price = 500 },
		[31] =  {Texture = "hoodyabase5", Model = "hoodya", price = 500 },
		[32] =  {Texture = "hoodyarockstar", Model = "hoodya", price = 500 },
		[33] =  {Texture = "wcoatblue", Model = "wcoat", price = 200 },
		[34] =  {Texture = "coach", Model = "coach", price = 250 },
		[35] =  {Texture = "coachsemi", Model = "coach", price = 250 },
		[36] =  {Texture = "sweatrstar", Model = "sweat", price = 300 },
		[37] =  {Texture = "hoodyAblue", Model = "hoodyA", price = 500 },
		[38] =  {Texture = "hoodyAblack", Model = "hoodyA", price = 500 },
		[39] =  {Texture = "hoodyAgreen", Model = "hoodyA", price = 500 },
		[40] =  {Texture = "sleevtbrown", Model = "sleevt", price = 350 },
		[41] =  {Texture = "shirtablue", Model = "shirta", price = 300 },
		[42] =  {Texture = "shirtayellow", Model = "shirta", price = 300 },
		[43] =  {Texture = "shirtagrey", Model = "shirta", price = 300 },
		[44] =  {Texture = "shirtbgang", Model = "shirtb", price = 250 },
		[45] =  {Texture = "tshirtzipcrm", Model = "tshirt", price = 300 },
		[46] =  {Texture = "tshirtzipgry", Model = "tshirt", price = 300 },
		[47] =  {Texture = "denimfade", Model = "denim", price = 500 },
		[48] =  {Texture = "bowling", Model = "hawaii", price = 400 },
		[49] =  {Texture = "hoodjackbeige", Model = "hoodjack", price = 400 },
		[50] =  {Texture = "baskballloc", Model = "baskball", price = 200 },
		[51] =  {Texture = "tshirtlocgrey", Model = "tshirt", price = 250 },
		[52] =  {Texture = "tshirtmaddgrey", Model = "tshirt", price = 250 },
		[53] =  {Texture = "tshirtmaddgrn", Model = "tshirt", price = 250 },
		[54] =  {Texture = "suit1grey", Model = "suit1", price = 500 },
		[55] =  {Texture = "suit1blk", Model = "suit1", price = 500 },
		[56] =  {Texture = "leather", Model = "leather", price = 1000 },
		[57] =  {Texture = "painter", Model = "painter", price = 400 },
		[58] =  {Texture = "hawaiiwht", Model = "hawaii", price = 400 },
		[59] =  {Texture = "hawaiired", Model = "hawaii", price = 400 },
		[60] =  {Texture = "sportjack", Model = "trackytop1", price = 350 },
		[61] =  {Texture = "suit1red", Model = "suit1", price = 500 },
		[62] =  {Texture = "suit1blue", Model = "suit1", price = 500 },
		[63] =  {Texture = "suit1yellow", Model = "suit1", price = 500 },
		[64] =  {Texture = "suit2grn", Model = "suit2", price = 750 },
		[65] =  {Texture = "tuxedo", Model = "suit2", price = 500 },
		[66] =  {Texture = "suit1gang", Model = "suit1", price = 500 },
		[67] =  {Texture = "letter", Model = "sleevt", price = 500 }
	},
	[1] = {			
		[0] = {Texture = "player_face", Model = "head", price = 50 },
		[1] = {Texture = "hairblond", Model = "head", price = 75 },
		[2] = {Texture = "hairred", Model = "head", price = 75 },
		[3] = {Texture = "hairblue", Model = "head", price = 75 },
		[4] = {Texture = "hairgreen", Model = "head", price = 75 },
		[5] = {Texture = "hairpink", Model = "head", price = 75 },
		[6] = {Texture = "bald", Model = "head", price = 75 },
		[7] = {Texture = "baldbeard", Model = "head", price = 75 },
		[8] = {Texture = "baldtash", Model = "head", price = 75 },
		[9] = {Texture = "baldgoatee", Model = "head", price = 75 },
		[10] = {Texture = "highfade", Model = "head", price = 75 },
		[11] = {Texture = "highafro", Model = "highafro", price = 100 },
		[12] = {Texture = "wedge", Model = "wedge", price = 100 },
		[13] = {Texture = "slope", Model = "slope", price = 100 },
		[14] = {Texture = "jhericurl", Model = "jheri", price = 100 },
		[15] = {Texture = "cornrows", Model = "cornrows", price = 250 },
		[16] = {Texture = "cornrowsb", Model = "cornrows", price = 250 },
		[17] = {Texture = "tramline", Model = "tramline", price = 75 },
		[18] = {Texture = "groovecut", Model = "groovecut", price = 75 },
		[19] = {Texture = "mohawk", Model = "mohawk", price = 150 },
		[20] = {Texture = "mohawkblond", Model = "mohawk", price = 150 },
		[21] = {Texture = "mohawkpink", Model = "mohawk", price = 150 },
		[22] = {Texture = "mohawkbeard", Model = "mohawk", price = 250 },
		[23] = {Texture = "afro", Model = "afro", price = 250 },
		[24] = {Texture = "afrotash", Model = "afro", price = 250 },
		[25] = {Texture = "afrobeard", Model = "afro", price = 300 },
		[26] = {Texture = "afroblond", Model = "afro", price = 250 },
		[27] = {Texture = "flattop", Model = "flattop", price = 200 },
		[28] = {Texture = "elvishair", Model = "elvishair", price = 200 },
		[29] = {Texture = "beard", Model = "head", price = 175 },
		[30] = {Texture = "tash", Model = "head", price = 75 },
		[31] = {Texture = "goatee", Model = "head", price = 75 },
		[32] = {Texture = "afrogoatee", Model = "afro", price = 175 }
	},				
	[2] = { 		
		[0] = {Texture = "player_legs", Model = "legs", price = 25 },
		[1] = {Texture = "worktrcamogrn", Model = "worktr", price = 300 },
		[2] = {Texture = "worktrcamogry", Model = "worktr", price = 300 },
		[3] = {Texture = "worktrgrey", Model = "worktr", price = 250 },
		[4] = {Texture = "worktrkhaki", Model = "worktr", price = 250 },
		[5] = {Texture = "tracktr", Model = "tracktr", price = 100 },
		[6] = {Texture = "tracktreris", Model = "tracktr", price = 100 },
		[7] = {Texture = "jeansdenim", Model = "jeans", price = 150 },
		[8] = {Texture = "legsblack", Model = "legs", price = 50 },
		[9] = {Texture = "legsheart", Model = "legs", price = 50 },
		[10] = {Texture = "biegetr", Model = "chinosb", price = 150 },
		[11] = {Texture = "tracktrpro", Model = "tracktr", price = 100 },
		[12] = {Texture = "tracktrwhstr", Model = "tracktr", price = 100 },
		[13] = {Texture = "tracktrblue", Model = "tracktr", price = 100 },
		[14] = {Texture = "tracktrgang", Model = "tracktr", price = 100 },
		[15] = {Texture = "bbshortwht", Model = "boxingshort", price = 75 },
		[16] = {Texture = "boxshort", Model = "boxingshort", price = 75 },
		[17] = {Texture = "bbshortred", Model = "boxingshort", price = 75 },
		[18] = {Texture = "shellsuittr", Model = "tracktr", price = 100 },
		[19] = {Texture = "shortsgrey", Model = "shorts", price = 125 },
		[20] = {Texture = "shortskhaki", Model = "shorts", price = 125 },
		[21] = {Texture = "chongergrey", Model = "chonger", price = 125 },
		[22] = {Texture = "chongergang", Model = "chonger", price = 125 },
		[23] = {Texture = "chongerred", Model = "chonger", price = 125 },
		[24] = {Texture = "chongerblue", Model = "chonger", price = 125 },
		[25] = {Texture = "shortsgang", Model = "shorts", price = 125 },
		[26] = {Texture = "denimsgang", Model = "jeans", price = 300 },
		[27] = {Texture = "denimsred", Model = "jeans", price = 300 },
		[28] = {Texture = "chinosbiege", Model = "chinosb", price = 250 },
		[29] = {Texture = "chinoskhaki", Model = "chinosb", price = 250 },
		[30] = {Texture = "cutoffchinos", Model = "shorts", price = 75 },
		[31] = {Texture = "cutoffchinosblue", Model = "shorts", price = 75 },
		[32] = {Texture = "chinosblack", Model = "chinosb", price = 150 },
		[33] = {Texture = "chinosblue", Model = "chinosb", price = 150 },
		[34] = {Texture = "leathertr", Model = "leathertr", price = 750 },
		[35] = {Texture = "leathertrchaps", Model = "leathertr", price = 750 },
		[36] = {Texture = "suit1trgrey", Model = "suit1tr", price = 150 },
		[37] = {Texture = "suit1trblk", Model = "suit1tr", price = 200 },
		[38] = {Texture = "cutoffdenims", Model = "", price = 200 },
		[39] = {Texture = "suit1trred", Model = "suit1tr", price = 400 },
		[40] = {Texture = "suit1trblue", Model = "suit1tr", price = 400 },
		[41] = {Texture = "suit1tryellow", Model = "suit1tr", price = 400 },
		[42] = {Texture = "suit1trgreen", Model = "suit1tr", price = 400 },
		[43] = {Texture = "suit1trblk2", Model = "suit1tr", price = 400 },
		[44] = {Texture = "suit1trgang", Model = "suit1tr", price = 400 }
	},
	[3] = {			
		[0] = {Texture = "foot", Model = "feet", price = 0},
		[1] = {Texture = "cowboyboot2", Model = "biker", price = 500 },
		[2] = {Texture = "bask2semi", Model = "bask1", price = 250 },
		[3] = {Texture = "bask1eris", Model = "bask1", price = 250 },
		[4] = {Texture = "sneakerbincgang", Model = "sneaker", price = 250 },
		[5] = {Texture = "sneakerbincblue", Model = "sneaker", price = 250 },
		[6] = {Texture = "sneakerbincblk", Model = "sneaker", price =  250},
		[7] = {Texture = "sandal", Model = "flipflop", price = 75 },
		[8] = {Texture = "sandalsock", Model = "flipflop", price = 75 },
		[9] = {Texture = "flipflop", Model = "flipflop", price = 75 },
		[10] = {Texture = "hitop", Model = "bask1", price = 250 },
		[11] = {Texture = "convproblk", Model = "conv", price = 250 },
		[12] = {Texture = "convproblu", Model = "conv", price = 250 },
		[13] = {Texture = "convprogrn", Model = "conv", price = 250 },
		[14] = {Texture = "sneakerprored", Model = "sneaker", price = 250 },
		[15] = {Texture = "sneakerproblu", Model = "sneaker", price = 250 },
		[16] = {Texture = "sneakerprowht", Model = "sneaker", price = 250 },
		[17] = {Texture = "bask1prowht", Model = "bask1", price = 250 },
		[18] = {Texture = "bask1problk", Model = "bask1", price =  250},
		[19] = {Texture = "boxingshoe", Model = "biker", price = 500 },
		[20] = {Texture = "convheatblk", Model = "conv", price = 250 },
		[21] = {Texture = "convheatred", Model = "conv", price = 250 },
		[22] = {Texture = "convheatorn", Model = "conv", price = 250 },
		[23] = {Texture = "sneakerheatwht", Model = "sneaker", price = 250 },
		[24] = {Texture = "sneakerheatgry", Model = "sneaker", price = 250 },
		[25] = {Texture = "sneakerheatblk", Model = "sneaker", price = 250 },
		[26] = {Texture = "bask2heatwht", Model = "bask1", price = 250 },
		[27] = {Texture = "bask2heatband", Model = "bask1", price = 250 },
		[28] = {Texture = "timbergrey", Model = "bask1", price = 250 },
		[29] = {Texture = "timberred", Model = "bask1", price = 250 },
		[30] = {Texture = "timberfawn", Model = "bask1", price = 250 },
		[31] = {Texture = "timberhike", Model = "bask1", price = 250 },
		[32] = {Texture = "cowboyboot", Model = "biker", price = 500 },
		[33] = {Texture = "biker", Model = "biker", price = 500 },
		[34] = {Texture = "snakeskin", Model = "biker", price = 500 },
		[35] = {Texture = "shoedressblk", Model = "shoe", price = 300 },
		[36] = {Texture = "shoedressbrn", Model = "shoe", price = 300 },
		[37] = {Texture = "shoespatz", Model = "shoe", price = 300 }
	},
	[4] = {			
		[0] = {Texture = "4WEED", Model = "4weed", price = 300 },
		[1] = {Texture = "4RIP", Model = "4rip", price = 300 },
		[2] = {Texture = "4SPIDER", Model = "4spider", price = 300 } 
	},
	[5] = { 		
		[0] = {Texture = "5GUN", Model = "5gun", price = 300 },
		[1] = {Texture = "5CROSS", Model = "5cross", price = 300 },
		[2] = {Texture = "5CROSS2", Model = "5cross2", price = 300 },
		[3] = {Texture = "5CROSS3", Model = "5cross3", price = 300 }
	},			
	[6] = {			
		[0] = {Texture = "6AZTEC", Model = "6aztec", price = 300 },
		[1] = {Texture = "6CROWN", Model = "6crown", price = 300 },
		[2] = {Texture = "6CLOWN", Model = "6clown", price = 300 },
		[3] = {Texture = "6AFRICA", Model = "6africa", price = 300 } 
	},		
	[7] = { 		
		[0] = {Texture = "7CROSS", Model = "7cross", price = 300 },
		[1] = {Texture = "7CROSS2", Model = "7cross2", price = 300 },
		[2] = {Texture = "7CROSS3", Model = "7cross3", price = 300 },
		[3] = {Texture = "7MARY", Model = "7mary", price = 300 }
	},			
	[8] = { 		
		[0] = {Texture = "8SA", Model = "8sa", price = 500 },
		[1] = {Texture = "8SA2", Model = "8sa2", price = 500 },
		[2] = {Texture = "8SA3", Model = "8sa3", price = 500 },
		[3] = {Texture = "8WESTSD", Model = "8westside", price = 500 },
		[4] = {Texture = "8SANTOS", Model = "8santos", price = 400 },
		[5] = {Texture = "8POKER", Model = "8poker", price = 400 },
		[6] = {Texture = "8GUN", Model = "8gun", price = 400 }
	},
	[9] = { 		
		[0] = {Texture = "9CROWN", Model = "9crown", price = 200 },
		[1] = {Texture = "9GUN", Model = "9gun", price = 200 },
		[2] = {Texture = "9GUN2", Model = "9gun2", price = 200 },
		[3] = {Texture = "9HOMBY", Model = "9homeboy", price = 200 },
		[4] = {Texture = "9BULLT", Model = "9bullet", price = 200 },
		[5] = {Texture = "9RASTA", Model = "9rasta", price = 200 }
	},			
	[10] = { 		
		[0] = {Texture = "10LS", Model = "10ls", price = 200 },
		[1] = {Texture = "10LS2", Model = "10ls2", price = 200 },
		[2] = {Texture = "10LS3", Model = "10ls3", price = 200 },
		[3] = {Texture = "10LS4", Model = "10ls4", price = 200 },
		[4] = {Texture = "10ls5", Model = "10ls5", price = 200 },
		[5] = {Texture = "10OG", Model = "10og", price = 200 },
		[6] = {Texture = "10WEED", Model = "10weed", price = 200 }
	},			
	[11] = { 		
		[0] = {Texture = "11GROVE", Model = "11grove", price = 300 },
		[1] = {Texture = "11GROV2", Model = "11grove2", price = 300 },
		[2] = {Texture = "11GROV3", Model = "11grove3", price = 300 },
		[3] = {Texture = "11DICE", Model = "11dice", price = 300 },
		[4] = {Texture = "11DICE2", Model = "11dice2", price = 300 },
		[5] = {Texture = "11JAIL", Model = "11jail", price = 300 },
		[6] = {Texture = "11GGIFT", Model = "11godsgift", price = 300 }
	},			
	[12] = { 		
		[0] = {Texture = "12ANGEL", Model = "12angels", price = 500 },
		[1] = {Texture = "12MAYBR", Model = "12mayabird", price = 500 },
		[2] = {Texture = "12DAGER", Model = "12dagger", price = 500 },
		[3] = {Texture = "12BNDIT", Model = "12bandit", price = 500 },
		[4] = {Texture = "12CROSS", Model = "12cross7", price = 500 },
		[5] = {Texture = "12MYFAC", Model = "12mayafce", price = 500 }
	},
	[13] = { 		
		[0] = {Texture = "dogtag", Model = "neck", price = 75 },
		[1] = {Texture = "neckafrica", Model = "neck", price = 75 },
		[2] = {Texture = "stopwatck", Model = "neck", price = 75 },
		[3] = {Texture = "necksaints", Model = "neck", price = 75 },
		[4] = {Texture = "neckhash", Model = "neck", price = 100 },
		[5] = {Texture = "necksilver", Model = "neck2", price = 300 },
		[6] = {Texture = "neckgold", Model = "neck2", price = 750 },
		[7] = {Texture = "neckropes", Model = "neck2", price = 650},
		[8] = {Texture = "neckropeg", Model = "neck2", price = 1000 },
		[9] = {Texture = "neckls", Model = "neck", price = 875 },
		[10] = {Texture = "neckdollar", Model = "neck", price = 875 },
		[11] = {Texture = "neckcross", Model = "neck", price = 875 }
	},		
	[14] = { 		
		[0] = {Texture = "watchpink", Model = "watch", price = 75 },
		[1] = {Texture = "watchyellow", Model = "watch", price = 75 },
		[2] = {Texture = "watchpro", Model = "watch", price = 85 },
		[3] = {Texture = "watchpro2", Model = "watch", price = 85 },
		[4] = {Texture = "watchsub1", Model = "watch", price = 85 },
		[5] = {Texture = "watchsub2", Model = "watch", price = 85 },
		[6] = {Texture = "watchzip1", Model = "watch", price = 200 },
		[7] = {Texture = "watchzip2", Model = "watch", price = 200 },
		[8] = {Texture = "watchgno", Model = "watch", price = 375 },
		[9] = {Texture = "watchgno2", Model = "watch", price = 375 },
		[10] = {Texture = "watchpro", Model = "watch", price = 500 },
		[11] = {Texture = "watchpro2", Model = "watch", price = 500 }
	},		
	[15] = { 		
		[0] = {Texture = "groucho", Model = "grouchos", price = 75 },
		[1] = {Texture = "zorro", Model = "zorromask", price = 75 },
		[2] = {Texture = "eyepatch", Model = "eyepatch", price = 75 },
		[3] = {Texture = "glasses01", Model = "glasses01", price = 100 },
		[4] = {Texture = "glasses04", Model = "glasses04", price = 100 },
		[5] = {Texture = "bandred3", Model = "bandmask", price = 125 },
		[6] = {Texture = "bandblue3", Model = "bandmask", price = 125 },
		[7] = {Texture = "bandgang3", Model = "bandmask", price = 125 },
		[8] = {Texture = "bandblack3", Model = "bandmask", price = 125 },
		[9] = {Texture = "glasses01dark", Model = "glasses01", price = 200 },
		[10] = {Texture = "glasses04dark", Model = "glasses04", price = 200 },
		[11] = {Texture = "glasses03", Model = "glasses03", price = 350 },
		[12] = {Texture = "glasses03red", Model = "glasses03", price = 350 },
		[13] = {Texture = "glasses03blue", Model = "glasses03", price = 350 },
		[14] = {Texture = "glasses03dark", Model = "glasses03", price = 350 },
		[15] = {Texture = "glasses05dark", Model = "glasses03", price = 400 },
		[16] = {Texture = "glasses05", Model = "glasses03", price = 400 }
	},			
	[16] = { 		
		[0] = {Texture = "bandred", Model = "bandana", price = 100 },
		[1] = {Texture = "bandblue", Model = "bandana", price = 100 },
		[2] = {Texture = "bandgang", Model = "bandana", price = 100 },
		[3] = {Texture = "bandblack", Model = "bandana", price = 100 },
		[4] = {Texture = "bandred2", Model = "bandknots", price = 100 },
		[5] = {Texture = "bandblue2", Model = "bandknots", price = 100 },
		[6] = {Texture = "bandblack2", Model = "bandknots", price = 100 },
		[7] = {Texture = "bandgang2", Model = "bandknots", price = 100 },
		[8] = {Texture = "capknitgrn", Model = "capknit", price = 150 },
		[9] = {Texture = "captruck", Model = "captruck", price = 150 },
		[10] = {Texture = "cowboy", Model = "cowboy", price = 150 },
		[11] = {Texture = "hattiger", Model = "cowboy", price = 150 },
		[12] = {Texture = "helmet", Model = "helmet", price = 450 },
		[13] = {Texture = "moto", Model = "moto", price = 450 },
		[14] = {Texture = "boxingcap", Model = "boxingcap", price = 150},
		[15] = {Texture = "hockey", Model = "hockey", price = 150 },
		[16] = {Texture = "capgang", Model = "cap", price = 150 },
		[17] = {Texture = "capgangback", Model = "capblack", price = 150 },
		[18] = {Texture = "capgangside", Model = "capside", price = 150 },
		[19] = {Texture = "capgangover", Model = "capovereye", price = 150 },
		[20] = {Texture = "capgangup", Model = "caprimup", price = 150 },
		[21]= {Texture = "bikerhelmet", Model = "bikerhelmet", price = 150 },
		[22] = {Texture = "capred", Model = "cap", price = 150 },
		[23] = {Texture = "capredback", Model = "capback", price = 150 },
		[24] = {Texture = "capredside", Model = "capside", price = 150 },
		[25] = {Texture = "capredover", Model = "capovereye", price = 150 },
		[26] = {Texture = "capredup", Model = "caprimup", price = 150 },
		[27] = {Texture = "capblue", Model = "cap", price = 150 },
		[28] = {Texture = "capblueback", Model = "capback", price = 150 },
		[29] = {Texture = "capblueside", Model = "capblueover", price = 150 },
		[30] = {Texture = "capblueover", Model = "capovereye", price = 150 },
		[31] = {Texture = "capblueup", Model = "caprimup", price = 150 },
		[32] = {Texture = "skullyblk", Model = "skullycap", price = 300 },
		[33] = {Texture = "skullygrn", Model = "skullycap", price = 300 },
		[34] = {Texture = "hatmancblk", Model = "hatmanc", price = 150 },
		[35] = {Texture = "hatmancplaid", Model = "hatmanc", price = 150 },
		[36] = {Texture = "capzip", Model = "cap", price = 150 },
		[37] = {Texture = "capzipback", Model = "capback", price = 150 },
		[38] = {Texture = "capzipside", Model = "capside", price = 150 },
		[39] = {Texture = "capzipover", Model = "capovereye", price = 150 },
		[40] = {Texture = "capzipup", Model = "caprimup", price = 150 },
		[41] = {Texture = "beretred", Model = "beret", price = 150 },
		[42] = {Texture = "beretblk", Model = "beret", price = 150 },
		[43] = {Texture = "capblk", Model = "cap", price = 150 },
		[44] = {Texture = "capblkback", Model = "capback", price = 150 },
		[45] = {Texture = "capblkside", Model = "capside", price = 150 },
		[46] = {Texture = "capblkover", Model = "capovereye", price = 150 },
		[47] = {Texture = "capblkup", Model = "caprimup", price = 150 },
		[48] = {Texture = "trilbydrk", Model = "trilby", price = 200 },
		[49] = {Texture = "trilbylght", Model = "trilby", price = 200 },
		[50] = {Texture = "bowler", Model = "bowler", price = 200 },
		[51] = {Texture = "bowlerred", Model = "bowler", price = 200 },
		[52] = {Texture = "bowlerblue", Model = "bowler", price = 200 },
		[53] = {Texture = "bowleryellow", Model = "bowler", price = 200 },
		[54] = {Texture = "boater", Model = "boater", price = 200 },
		[55] = {Texture = "bowlergang", Model = "bowler", price = 200 },
		[56] = {Texture = "boaterblk", Model = "boater", price = 200 }
	},	
	[17] = { 		
		[0] = {Texture = "gimpleg", Model = "gimpleg", price = 3000 },
		[1] = {Texture = "valet", Model = "valet", price = 3000 },
		[2] = {Texture = "countrytr", Model = "countrytr", price = 3000 },
		[3] = {Texture = "croupier", Model = "valet", price = 3000 },
		[4] = {Texture = "policetr", Model = "policetr", price = 3000 },
		[5] = {Texture = "balaclava", Model = "balaclava", price = 3000 },
		[6] = {Texture = "pimptr", Model = "pimptr", price = 3000 },
		[7] = {Texture = "garageleg", Model = "garagetr", price = 3000 },
		[8] = {Texture = "medictr", Model = "medictr", price = 3000 }
	}
}

function getIndexSlot(name)
	local index = nil
	local slot = nil
	if index == nil then
		for i=1,#Camisas do
			if Camisas[i][2] == name then
				index = 0
				slot = tonumber(Camisas[i][1])
				break
			end
		end
	end
	if index == nil then
		for i=1,#Cabelos do
			if Cabelos[i][2] == name then
				index = 1
				slot = tonumber(Cabelos[i][1])
				break
			end
		end
	end
	if index == nil then
		for i=1,#Calcas do
			if Calcas[i][2] == name then
				index = 2
				slot = tonumber(Calcas[i][1])
				break
			end
		end
	end
	if index == nil then
		for i=1,#Calcados do
			if Calcados[i][2] == name then
				index = 3
				slot = tonumber(Calcados[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t1 do
			if t1[i][2] == name then
				index = 4
				slot = tonumber(t1[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t2 do
			if t2[i][2] == name then
				index = 5
				slot = tonumber(t2[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t3 do
			if t3[i][2] == name then
				index = 6
				slot = tonumber(t3[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t4 do
			if t4[i][2] == name then
				index = 7
				slot = tonumber(t4[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t5 do
			if t5[i][2] == name then
				index = 8
				slot = tonumber(t5[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t6 do
			if t6[i][2] == name then
				index = 9
				slot = tonumber(t6[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t7 do
			if t7[i][2] == name then
				index = 10
				slot = tonumber(t7[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t8 do
			if t8[i][2] == name then
				index = 11
				slot = tonumber(t8[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#t9 do
			if t9[i][2] == name then
				index = 12
				slot = tonumber(t9[i][1])
				break
			end
		end
	end		
	if index == nil then
		for i=1,#Cordoes do
			if Cordoes[i][2] == name then
				index = 13
				slot = tonumber(Cordoes[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#Relogios do
			if Relogios[i][2] == name then
				index = 14
				slot = tonumber(Relogios[i][1])
				break
			end
		end
	end	
	if index == nil then
		for i=1,#Rosto do
			if Rosto[i][2] == name then
				index = 15
				slot = tonumber(Rosto[i][1])
				break
			end
		end
	end		
	if index == nil then
		for i=1,#Cabeca do
			if Cabeca[i][2] == name then
				index = 16
				slot = tonumber(Cabeca[i][1])
				break
			end
		end
	end	
	return index,slot
end							
	

function getTexAndModel(index,slot)
	return clothes[index][slot].Texture, clothes[index][slot].Model
end

function getPedClothesC(source)
	if isElement(source) then
		if ( getElementModel(source) == 0 ) then
			local texture = {}
			local model = {}
			for i=0, 17, 1 do
				local clothesTexture, clothesModel = getPedClothes(source, i)
				if ( clothesTexture ~= false ) then
					texture[i] = clothesTexture
					model[i] = clothesModel			
				else
					texture[i] = "vazio"
					model[i] = "vazio"
				end
			end
			return texture,model
		else
			outputConsole("Fatal Error", source, 255, 0, 0)
		end
	end	
end

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...