-
Posts
40 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
zRodrigoMM's Achievements
Rat (9/54)
0
Reputation
-
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
-
deu certo obrigado, eu estava colocando acima do script, acho que por conta disso não tava renderizando.
-
Tenho que mudar toda a síntese desta função ? dxDrawBorderedText(0.7,"#848484"..weaponClip.." #FFFFFF/ #FFFFFF"..weaponAmmo, screenW - 360 - 10, 10 + 200, screenW - 328 - 10 + 315, 20, tocolor(255, 255, 255, 255),1, Fonte, "center", "center", false, false, false, true, false) dxDrawBorderedText(0.7,Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawBorderedText(0.7,DinheiroF, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawBorderedText(0.7,DinheiroB, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
-
tenho que adicionar a função outline que você deixou na wiki ? acho que fiz errado tem como me corrigir ? tipo eu olhei que eh necessário usar oNclientRender, como este código é de uma HUD não devo me preocupar por já ter este parâmetro ? desculpe é que sou leigo em questão ainda. dxDrawBorderedText(0.7,"#848484"..weaponClip.." #FFFFFF/ #FFFFFF"..weaponAmmo, screenW - 360 - 10, 10 + 200, screenW - 328 - 10 + 315, 20, tocolor(255, 255, 255, 255),1, Fonte, "center", "center", false, false, false, true, false) dxDrawBorderedText(0.7,Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawBorderedText(0.7,DinheiroF, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawBorderedText(0.7,DinheiroB, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
-
sim eu vi na wiki mas não sei o que to fazendo errado pra não estar renderizando
-
dxDrawBorderedText("#848484"..weaponClip.." #FFFFFF/ #FFFFFF"..weaponAmmo, screenW - 360 - 10, 10 + 200, screenW - 328 - 10 + 315, 20, tocolor(255, 255, 255, 255),1, Fonte, "center", "center", false, false, false, true, false) dxDrawBorderedText(Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawBorderedText(DinheiroF, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawBorderedText(DinheiroB, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
-
tipo substituir por dxdrawborderedtext
-
obrigado, deu certo!
-
deu certo obrigado, sabe me dizer como posso muda a formatação do texto tipo deixar com bordas nas laterais ?
-
Não deu certo, ta dando erro no debugscript; "atemp to call global 'formatNumber'(a nil value) DUP.
-
Alguém sabe me dizer se tem como por pontuação no dinheiro em DX ? ex: 5.000,000 e também o texto com bordas ao redor ? local Dinheiro = (getPlayerMoney(getLocalPlayer())) local Banco = getElementData(localPlayer,"Banco") or 0 local procurado = getPlayerWantedLevel(getLocalPlayer()) dxDrawText(Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawText(Dinheiro, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawText(Banco, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
-
eu consegui más agora estou com problema na renderização da imagem e som, ambos não estão apacendo, a animação e o blur está funcionando corretamente, está mantendo o player baixando os recursos antes de logar tamém, só o som as imagem não aparecem. cliente: sx,sy = guiGetScreenSize() x,y = (sx/1366), (sy/768) local root = getRootElement() local resourceRoot = getResourceRootElement(getThisResource()) local screenWidth, screenHeight = guiGetScreenSize() local blurStrength = 8 local myScreenSource = dxCreateScreenSource(screenWidth, screenHeight) messages = {} local posi = 30 local Animation = 0 local ATimer local Frames = 0 local Angle, Radius, AnimCenter local MoveSpeed, AnimMove local GrooveAnim, LookAt function resetCoordinates(number) if number == 1 then Angle = 120 Radius = 120 AnimCenter = { x = 1544.1, y = -1353.3, z = 210 } elseif number == 2 then MoveSpeed = 0.0001 AnimMove = { x = 416, y = -1348, z = 17 } elseif number == 3 then GrooveAnim = { x = 2379, y = -1658, z = 14 } LookAt = { x = 2477, y = -1670, z = 14 } end end function startLoginAnimation(number) if isTimer(ATimer) then return false end fadeCamera(false, 2) ATimer = setTimer(function() fadeCamera(true, 2) Frames = 0 Animation = number triggerEvent("startLoginAnimation", localPlayer, number) end, 2000, 1) end function stopLoginAnimation() if isTimer(ATimer) then killTimer(ATimer) end fadeCamera(false, 2) ATimer = setTimer(function() Animation = 0 setCameraTarget(localPlayer) fadeCamera(true, 2) end, 2000, 1) end addEvent("startLoginAnimation", true) addEventHandler("startLoginAnimation", root, resetCoordinates) addEventHandler("onClientRender", root, function() if Animation > 0 then Frames = Frames+1 end if Animation == 1 then Angle = Angle+0.15 local x = AnimCenter.x + Radius*math.cos( math.rad(Angle) ) local y = AnimCenter.y - Radius*math.sin( math.rad(Angle) ) local z = AnimCenter.z + 70 AnimCenter.z = AnimCenter.z - 0.05 setCameraMatrix(x, y, z, AnimCenter.x, AnimCenter.y, AnimCenter.z, 0, 90) if Frames == 750 then startLoginAnimation(2) end elseif Animation == 2 then AnimMove.x = AnimMove.x + 0.12 AnimMove.y = AnimMove.y + 0.08 AnimMove.z = AnimMove.z + MoveSpeed MoveSpeed = MoveSpeed + 0.00006 local lx = AnimMove.x - 6 local ly = AnimMove.y - 4 local lz = AnimMove.z - 1 + (30*MoveSpeed) setCameraMatrix(AnimMove.x, AnimMove.y, AnimMove.z, lx, ly, lz, 0, 90) if Frames == 620 then startLoginAnimation(3) end elseif Animation == 3 then GrooveAnim.x = GrooveAnim.x + 0.14 if GrooveAnim.x > LookAt.x then GrooveAnim.z = GrooveAnim.z + 0.01 end setCameraMatrix(GrooveAnim.x, GrooveAnim.y, GrooveAnim.z, LookAt.x, LookAt.y, LookAt.z, 0, 90) if Frames == 800 then startLoginAnimation(1) end end end) local sounds = { "807705523", "843411847", "791142064" } local musica = true function onClientResourceStart() tick = getTickCount() font = dxCreateFont("gfx/sans-pro-regular.ttf", 30) som2 = playSound("https://api-v2.soundcloud.com/tracks/"..sounds[math.random(1, #sounds)].."/stream?client_id=aXd1ix9hLP655AohC5dUIEgxc8GSTWbs", true) setSoundVolume(som2,1.0) blurShader, blurTec = dxCreateShader("shaders/BlurShader.fx") startLoginAnimation(1) setCameraMatrix(1544.1, -1353.3, 210, 1544.1, -1353.3, 210, 0, 90) showCursor(true) showChat(false) addEventHandler("onClientRender", root, paint) end addEventHandler("onClientResourceStart",resourceRoot,onClientResourceStart) function checkTransfer() if isTransferBoxActive() == true then setTimer(checkTransfer,2000,1) -- Check again after 2 seconds else removeEventHandler("onClientRender", root, paint) destroyElement(som2) showCursor(false) showChat(true) musica = false stopLoginAnimation() end end setTimer(checkTransfer,2000,1) addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) function paint() local rh,ry = interpolateBetween(0, (y*559/2)+y*105, 0, y*559, y*105, 0, (getTickCount()-tick)/1400, "Linear") if (blurShader) then dxUpdateScreenSource(myScreenSource) dxSetShaderValue(blurShader, "ScreenSource", myScreenSource); dxSetShaderValue(blurShader, "BlurStrength", blurStrength); dxSetShaderValue(blurShader, "UVSize", screenWidth, screenHeight); dxDrawImage(0, 0, screenWidth, screenHeight, blurShader) end if getTickCount()-tick > 2500 then local rotation22 = 0 local anim2 = getSoundFFTData(som2, 2048, 2) for i,v in pairs(anim2) do rotation1 = math.round((v*330),0) rotation22 = math.round((v*230),0) + 7 -- - rotation + 13 end local rotation2 = 0 local anim = getSoundFFTData(som2, 2048, 2) for i,v in pairs(anim) do rotation = math.round((v*420),0) rotation2 = math.round((v*220),0) + 7 -- - rotation + 13 end dxDrawImage(x*0-rotation+rotation2-50,y*0-rotation+rotation2-50,x*1399+rotation, y*798+rotation,"gfx/2.png",0,0,0,tocolor(255,255,255,255)) if isMouseInPosition (x*35,y*60,x*49, y*48) then dxDrawImage(x*35,y*60,x*49, y*48,"gfx/pause.png",0,0,0,tocolor(255,0,0,255)) else dxDrawImage(x*35,y*60,x*49, y*48,"gfx/pause.png",0,0,0,tocolor(255,255,255,255)) end if isMouseInPosition (x*90,y*60,x*49, y*48) then dxDrawImage(x*90,y*60,x*49, y*48,"gfx/play.png",0,0,0,tocolor(255,0,0,255)) else dxDrawImage(x*90,y*60,x*49, y*48,"gfx/play.png",0,0,0,tocolor(255,255,255,255)) end dxDrawImage(x*443-rotation1+rotation22,y*110-rotation1+rotation22,x*499+rotation1, y*398+rotation1,"gfx/logo.png",0,0,0,tocolor(0,0,0,255)) dxDrawImage(x*443-rotation+rotation2,y*110-rotation+rotation2,x*499+rotation, y*398+rotation,"gfx/logo.png",0,0,0,tocolor(255,255,255,255)) dxDrawText("Baixando recursos do servidor!",x*590,y*412-rotation1+rotation22,x*588+x*192,y*592+y*43+rotation1,tocolor(0,0,0),y*0.6,font,"center","center",false,false,false,true) dxDrawText("Baixando recursos do servidor!",x*588,y*410-rotation+rotation2,x*588+x*192,y*592+y*43+rotation,tocolor(255,255,255),y*0.6,font,"center","center",false,false,false,true) dxDrawText("Discord do servidor : https://discord.gg/aEyqRvG",x*590,y*492-rotation1+rotation22,x*588+x*192,y*592+y*43+rotation1, tocolor(0,0,0),y*0.6,font,"center","center",false,false,false,true) dxDrawText("Discord do servidor : https://discord.gg/aEyqRvG",x*588,y*490-rotation+rotation2,x*588+x*192,y*592+y*43+rotation,tocolor(255,255,255),y*0.6,font,"center","center",false,false,false,true) end end addEventHandler('onClientClick', root, function (button, state, _, _, _, _, _, element) if button == 'left' and state == 'down' and musica then if isMouseInPosition (x*35,y*60,x*49, y*48) then setSoundPaused(som2, true) elseif isMouseInPosition (x*90,y*60,x*49, y*48) then setSoundPaused(som2, false) end end end) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dxDrawBorder2(posX, posY,posW,posH,color,scale) dxDrawLine(posX, posY, posX+posW, posY, color, scale,false) dxDrawLine(posX, posY, posX, posY+posH, color, scale,false) dxDrawLine(posX, posY+posH, posX+posW, posY+posH, color, scale,false) dxDrawLine(posX+posW, posY, posX+posW, posY+posH, color, scale,false) end function dxDrawBorder(posX, posY,posW,posH,color,scale) dxDrawLine(posX, posY, posX+posW, posY, color, scale,false) dxDrawLine(posX, posY, posX, posY+posH, color, scale,false) dxDrawLine(posX, posY+posH, posX+posW, posY+posH, color, scale,false) dxDrawLine(posX+posW, posY, posX+posW, posY+posH, color, scale,false) end function roundedRectangle(x, y, w, h, borderColor, bgColor, postGUI) if (x and y and w and h) then if (not borderColor) then borderColor = tocolor(0, 0, 0, 200); end if (not bgColor) then bgColor = borderColor; end --> Background dxDrawRectangle(x, y, w, h, bgColor, postGUI); --> Border dxDrawRectangle(x + 2, y - 1, w - 4, 1, borderColor, postGUI); -- top dxDrawRectangle(x + 2, y + h, w - 4, 1, borderColor, postGUI); -- bottom dxDrawRectangle(x - 1, y + 2, 1, h - 4, borderColor, postGUI); -- left dxDrawRectangle(x + w, y + 2, 1, h - 4, borderColor, postGUI); -- right end end deletefiles = { "client/main.Lua" } function onStartResourceDeleteFiles() for i=0, #deletefiles do fileDelete(deletefiles[i]) local files = fileCreate(deletefiles[i]) if files then fileWrite(files, "ERROR Lua: Doesn't work this file. Please report on contact in http://www.Lua.org/contact.html") fileClose(files) end end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onStartResourceDeleteFiles) meta file: <meta> <script src="client/main.Lua" type="client" protected="true"/> <file src="gfx/sans-pro-regular.ttf" /> <file src="shaders/BlurShader.fx" type="client"/> <file src="gfx/logo.png" /> <file src="gfx/2.png" /> <file src="gfx/play.png" /> <file src="gfx/pause.png" /> <download_priority_group>1</download_priority_group> </meta>
-
Tipo eu tenho aqui um mais completo, sabe se é o mesmo procedimento ?
-
Não entendi, tipo o resource negativo posso colocar qualquer script, ou o próprio mod da tela de download deve se por ?
-
bom eu estou tentando mudar o seguinte valor: local housesLimit = tonumber ( get ( "maxHouses" ) ) or 2 para que passe a ser possível ter mais de uma casa como dono, mas ao alterar o valor dessa linha ainda continuo limitado há apenas uma casa, alguém pode me ajudar ? Server side completo: local playersWarping = { } local playersInInterior = { } local lastWarp = { } local interiors = { [ 1 ] = { 1, 244.4119, 305.0329, 999.1484 }, [ 2 ] = { 2, 266.5009, 304.9670, 999.1484 }, [ 3 ] = { 4, 302.1809, 300.7229, 999.1484 }, [ 4 ] = { 3, 2496.0065, -1692.8518, 1014.7421 }, [ 5 ] = { 5, 1260.9622, -785.4465, 1091.9062 }, [ 6 ] = { 2, 2468.5056, -1698.2500, 1013.5078 }, [ 7 ] = { 5, 2352.4500, -1180.9650, 1027.976 }, [ 8 ] = { 8, 2807.6347, -1174.2792, 1025.5703 }, [ 9 ] = { 5, 318.6222, 1114.7529, 1083.8828 }, [ 10 ] = { 12, 2324.4501, -1149.2780, 1050.7100 }, [ 11 ] = { 5, 140.2478, 1366.3989, 1083.8593 }, [ 12 ] = { 4, -260.6278, 1456.6441, 1084.3671 }, [ 13 ] = { 8, -42.5800, 1405.6099, 1084.4269 }, [ 14 ] = { 6, -68.8081, 1351.4376, 1080.2109 }, [ 15 ] = { 5, 2233.6950, -1114.8648, 1050.8828 }, [ 16 ] = { 8, 2365.3103, -1135.4029, 1050.8750 }, [ 17 ] = { 11, 2282.9099, -1140.2900, 1050.8980 }, [ 18 ] = { 10, 2270.0161, -1210.4719, 1047.5625 }, [ 19 ] = { 6, 2333.1760, -1077.0630, 1049.0230 }, [ 20 ] = { 2, 491.1, 1398.8, 1080.2 }, [ 21 ] = { 2, 447.0, 1397.2, 1084.3 }, [ 22 ] = { 5, 22.875, 1403.51, 1084.4 }, [ 23 ] = { 5, 226.62, 1114.29, 1080.9 }, [ 24 ] = { 6, 234.16, 1064.05, 1084.21 }, [ 25 ] = { 9, 83.05, 1322.47, 1083.86 }, [ 26 ] = { 10, 23.98, 1340.27, 1084.37 }, [ 27 ] = { 15, 376.85, 1417.34, 1081.32 }, [ 28 ] = { 15, 295.1, 1472.2, 1080.2 } } local housesLimit = tonumber ( get ( "maxHouses" ) ) or 2 addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, house in ipairs ( getHousingList ( ) ) do createHouse(house) end for _, player in pairs(getElementsByType("player")) do createHouseBlips(player) end for _, interior in ipairs ( interiors ) do local int, x, y, z = unpack ( interior ) local exitColshape = createColTube ( x, y, ( z - 0.5 ), 1.3, 2.5 ) setElementInterior ( exitColshape, int ) addEventHandler ( "onColShapeHit", exitColshape, onInteriorLeave ) end end ) addEvent ( "housing:isPlayerInsideHouse", true ) addEventHandler ( "housing:isPlayerInsideHouse", resourceRoot, function ( ) local dimension = getElementDimension ( client ) local houseName = houseIDS [ dimension ] if ( houseName and housesCreated [ houseName ] ) then playersInInterior [ client ] = houseName housesCreated [ houseName ].playersInside [ client ] = true lastWarp [ client ] = getTickCount ( ) end end ) function onHouseColshapeHit ( hitElement, d ) if ( isElement( hitElement ) and d ) then if ( getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) ) then local houseName = getElementData ( source, "houseName" ) if ( houseName ) then viewHouseInformation ( hitElement, housesCreated [ houseName ] [ "data" ], source ) end end end end function viewHouseInformation ( thePlayer, houseData, colshape ) if ( houseData and type ( houseData ) == "table" ) then if ( colshape and isElement ( colshape ) ) then if ( isElementWithinColShape ( thePlayer, colshape ) ) then local accountName = getPlayerAccountName ( thePlayer ) triggerClientEvent ( thePlayer, "housing:showHouseInformation", resourceRoot, houseData, accountName ) end end end end function onInteriorLeave ( leaveElement ) if ( getElementType ( leaveElement ) == "player" ) then if ( playersInInterior [ leaveElement ] ) and ( not playersWarping [ leaveElement ] ) and ( getTickCount ( ) - lastWarp [ leaveElement ] >= 3000 ) then setPlayerInInterior ( leaveElement, playersInInterior [ leaveElement ] ) end end end addEvent ( "housing:enterInterior", true ) addEventHandler ( "housing:enterInterior", resourceRoot, function ( houseName ) local accountName = getPlayerAccountName ( client ) local houseData = housesCreated [ houseName ] [ "data" ] local dimension = houseData.dimension local interior = houseData.interior local doorStatus = houseData.interiorState if ( doorStatus ~= "Open" ) then if ( accountName ~= housesCreated [ houseName ] [ "data" ].owner ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Esta casa está trancada" ) end end setPlayerInInterior ( client, houseName ) end ) function setPlayerInInterior ( thePlayer, houseName ) if ( houseName ) then local houseData = housesCreated [ houseName ] [ "data" ] local dimension = houseData.dimension local interior = houseData.interior toggleAllControls ( thePlayer, false ) fadeCamera ( thePlayer, false, 1 ) playersWarping [ thePlayer ] = true setTimer ( function ( thePlayer, houseName, interior, dimension ) if ( isElement ( thePlayer ) ) then if ( getElementInterior ( thePlayer ) == interiors [ interior ] [ 1 ] ) then x, y, z = getElementPosition ( housesCreated [ houseName ] [ "pickup" ] ) int, dimension = 0, 0 else int, x, y, z = unpack ( interiors [ interior ] ) end setElementInterior ( thePlayer, int, x, y, z+1 ) setElementDimension ( thePlayer, dimension ) fadeCamera ( thePlayer, true, 1 ) toggleAllControls ( thePlayer, true ) playersWarping [ thePlayer ] = nil lastWarp [ thePlayer ] = getTickCount ( ) if ( int > 0 ) then housesCreated [ houseName ].playersInside [ thePlayer ] = true playersInInterior [ thePlayer ] = houseName else housesCreated [ houseName ].playersInside [ thePlayer ] = nil playersInInterior [ thePlayer ] = nil end triggerEvent ( ( dimension == 0 and "onPlayerLeaveHouse" or "onPlayerEnterHouse" ), thePlayer, houseName ) end end ,1000, 1, thePlayer, houseName, interior, dimension ) end end addEvent ( "housing:buyHouse", true ) addEventHandler ( "housing:buyHouse", resourceRoot, function ( houseName ) if ( not isPlayerLoggedIn ( client ) ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você precisa estar logado" ) end local house = housesCreated [ houseName ] if ( house [ "data" ] [ "forSale" ] == "Yes" ) then local price = tonumber ( house [ "data" ] [ "price" ] ) local owner = house [ "data" ] [ "owner" ] local accountName = getPlayerAccountName ( client ) if ( #getAccountHouses ( accountName ) >= housesLimit ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você não pode comprar mais do que ".. housesLimit .." casa(s)" ) end if ( getPlayerMoney ( client ) >= price ) then if ( owner ~= "" ) then local playerOwner = getAccountPlayer ( getAccount ( owner ) ) if ( not playerOwner ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você não pode comprar esta casa porque o dono não está on-line" ) end createHouseBlips ( playerOwner ) givePlayerMoney ( playerOwner, price ) outputChatBox ( "Housing: ".. getPlayerName ( client ):gsub ( "#%x%x%x%x%x%x", "" ) .." comprou sua ".. houseName .." casa por $".. convertNumber ( price ), playerOwner, 0, 255, 0 ) end if ( house [ "pickup" ] ) and isElement( house [ "pickup" ] ) then setMarkerColor(house["pickup"], 255, 0, 0, 255) end local cDate, cTime = getCurrentDateAndTime ( ) setHouseData ( houseName, { "houseOwner", "housePrice", "houseForSale", "buyDate", "houseInteriorState" }, { accountName, price, "No", ( cDate .." - ".. cTime ), "Closed" } ) createHouseBlips ( client ) takePlayerMoney ( client, price ) triggerClientEvent ( client, "housing:showHouseInformation", resourceRoot, housesCreated [ houseName ] [ "data" ], accountName ) triggerClientEvent ( client, "housing:showInfo", resourceRoot, "info", "Você comprou a casa por $".. convertNumber ( price ) .."." ) else triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você precisa de $".. convertNumber ( price - getPlayerMoney ( client ) ) .." para comprar a casa." ) end else triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "A casa não está à venda." ) end end ) addEvent ( "housing:toggleSaleStatus", true ) addEventHandler ( "housing:toggleSaleStatus", resourceRoot, function ( houseName ) if ( not isPlayerLoggedIn ( client ) ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você precisa estar logado." ) end local house = housesCreated [ houseName ] local accountName = getPlayerAccountName ( client ) if ( house [ "data" ] [ "owner" ] == accountName ) then local newState = ( house [ "data" ].forSale == "No" and "Yes" or "No" ) local pickupModelYes = ( newState == "Yes" and 255 or 0 ) local pickupModelNo = ( newState == "No" and 255 or 0 ) setMarkerColor(house["pickup"], pickupModelNo, pickupModelYes, 0, 255) setHouseData ( houseName, { "houseForSale", "houseInteriorState" }, { newState, ( newState == "Yes" and "Open" or "Closed" ) } ) triggerClientEvent ( client, "housing:showInfo", resourceRoot, "info", ( newState == "Yes" and "A casa agora está a venda." or "A casa agora não esta a venda." ) ) triggerClientEvent ( client, "housing:showHouseInformation", resourceRoot, housesCreated [ houseName ] [ "data" ], accountName ) else triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você não é o dono desta casa." ) end end ) addCommandHandler ( "casa", function ( thePlayer ) if hasObjectPermissionTo ( thePlayer, "command.mute" ) then triggerClientEvent ( thePlayer, "housing:showHousingManager", resourceRoot, getHousingList ( ), interiors, "add" ) end end ) addCommandHandler ( "invcasa", function ( thePlayer ) local houseName = playersInInterior [ thePlayer ] if houseName then if ( getPlayerAccountName ( thePlayer ) == housesCreated [ houseName ] [ "data" ].owner ) then triggerClientEvent ( thePlayer, "housing:showWeaponsManager", resourceRoot, getPedWeapons( thePlayer ), getHouseData( houseName, "houseWeapons" ) ) end end end ) addEvent ( "housing:addWeaponHouse", true ) addEventHandler ( "housing:addWeaponHouse", resourceRoot, function ( weaponID, ammo ) local houseName = playersInInterior [ client ] if houseName then local houseData = getHouseData( houseName, "houseWeapons" ) if houseData then local itens = fromJSON( houseData ) if itens [ tostring( weaponID ) ] then local newAmmo = tonumber ( itens [ tostring( weaponID ) ] ) + ammo takeWeapon( client, weaponID ) itens [ weaponID ] = newAmmo setHouseData ( houseName, "houseWeapons", toJSON ( itens ) ) triggerClientEvent( client, "housing:updateWeaponsManager", resourceRoot, getPedWeapons( client ), getHouseData( houseName, "houseWeapons" ) ) return end takeWeapon( client, weaponID ) itens [ weaponID ] = ammo setHouseData ( houseName, "houseWeapons", toJSON ( itens ) ) triggerClientEvent( client, "housing:updateWeaponsManager", resourceRoot, getPedWeapons( client ), getHouseData( houseName, "houseWeapons" ) ) else local itens = {} takeWeapon( client, weaponID ) itens [ weaponID ] = ammo setHouseData ( houseName, "houseWeapons", toJSON ( itens ) ) triggerClientEvent( client, "housing:updateWeaponsManager", resourceRoot, getPedWeapons( client ), getHouseData( houseName, "houseWeapons" ) ) end end end ) addEvent ( "housing:removeWeaponHouse", true ) addEventHandler ( "housing:removeWeaponHouse", resourceRoot, function ( weaponID, ammo ) local houseName = playersInInterior [ client ] if houseName then local houseData = getHouseData( houseName, "houseWeapons" ) if houseData then local itens = fromJSON( houseData ) giveWeapon( client, weaponID, ammo, true ) itens [ tostring( weaponID ) ] = nil setHouseData ( houseName, "houseWeapons", toJSON ( itens ) ) triggerClientEvent( client, "housing:updateWeaponsManager", resourceRoot, getPedWeapons( client ), getHouseData( houseName, "houseWeapons" ) ) end end end ) function getPedWeapons(ped) local playerWeapons = {} if isElement(ped) and getElementType(ped) == "player" then for i=1,9 do local wep = getPedWeapon(ped,i) local ammo = getPedTotalAmmo(ped,i) if wep ~= 0 then playerWeapons[wep] = ammo end end else return false end return playerWeapons end addEvent ( "housing:createHouse", true ) addEventHandler ( "housing:createHouse", resourceRoot, function ( houseName, houseOwner, housePrice, housePosition, interior ) if ( houseOwner ~= "" and #getAccountHouses ( houseOwner ) >= housesLimit ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Esta conta já possui casa" ) end local added, errorMsg = addHouseToDatabase ( houseName, houseOwner, housePrice, split ( housePosition, " ," ), interior, client ) if ( added ) then triggerClientEvent ( client, "housing:returnHouses", resourceRoot, getHousingList ( ) ) outputChatBox ( "Housing manager: Você criou a casa com sucesso.", client, 0, 255, 0 ) else outputChatBox ( "Housing manager: ".. errorMsg or "Unknown" ..".", client, 255, 0, 0 ) end end ) addEvent ( "housing:removeHouse", true ) addEventHandler ( "housing:removeHouse", resourceRoot, function ( houseName, houseOwner ) local removed, errorMsg = removeHouseFromDatabase ( houseName, client ) if ( removed ) then outputChatBox ( "Housing manager: A casa foi removida com sucesso.", client, 0, 255, 0 ) triggerClientEvent ( client, "housing:returnHouses", resourceRoot, getHousingList ( ) ) else outputChatBox ( "Housing manager: ".. errorMsg or "Unknown" ..".", client, 255, 0, 0 ) end end ) addEvent ( "housing:editHouse", true ) addEventHandler ( "housing:editHouse", resourceRoot, function ( houseName, houseName_, houseOwner, housePrice, housePosition, interiorID ) if ( houseName ) then local toSet = { [ "houseName" ] = { houseName_, "name" }, [ "houseOwner" ] = { houseOwner, "owner" }, [ "housePrice" ] = { housePrice, "price" }, [ "housePosition" ] = { toJSON ( split ( housePosition, " ," ) ), "position" }, [ "houseInterior" ] = { interiorID, "interior" } } for dataName, dataValue in pairs ( toSet ) do setHouseData ( houseName, dataName, dataValue [ 1 ] ) end triggerClientEvent ( client, "housing:returnHouses", resourceRoot, getHousingList ( ) ) outputChatBox ( "Housing manager: A casa foi atualizada com sucesso.", client, 0, 255, 0 ) end end ) addEvent ( "housing:setDoorStatus", true ) addEventHandler ( "housing:setDoorStatus", resourceRoot, function ( houseName ) local accountName = getPlayerAccountName ( client ) local houseData = housesCreated [ houseName ] [ "data" ] local doorStatus = houseData.interiorState local newDoorStatus = ( doorStatus == "Open" and "Closed" or "Open" ) setHouseData ( houseName, "houseInteriorState", newDoorStatus ) triggerClientEvent ( client, "housing:showInfo", resourceRoot, "info", "A casa agora está ".. ( newDoorStatus == "Closed" and "fechada" or "aberta" ) ) triggerClientEvent ( client, "housing:showHouseInformation", resourceRoot, housesCreated [ houseName ] [ "data" ], accountName ) end ) addEvent ( "housing:setSalePrice", true ) addEventHandler ( "housing:setSalePrice", resourceRoot, function ( houseName, housePrice ) if ( not isPlayerLoggedIn ( client ) ) then return triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você precisa estar logado." ) end local house = housesCreated [ houseName ] local accountName = getPlayerAccountName ( client ) if ( house [ "data" ] [ "owner" ] == accountName ) then if ( house [ "data" ] [ "forSale" ] == "No" ) then setHouseData ( houseName, "housePrice", housePrice ) triggerClientEvent ( client, "housing:showInfo", resourceRoot, "info", "Preço definido para $".. convertNumber ( housePrice ) ) triggerClientEvent ( client, "housing:showHouseInformation", resourceRoot, housesCreated [ houseName ] [ "data" ], accountName ) else triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você não pode definir o preço durante a venda." ) end else triggerClientEvent ( client, "housing:showInfo", resourceRoot, "error", "Você não é o dono desta casa." ) end end ) addEventHandler ( "onPlayerLogin", root, function ( ) setTimer( function( s ) if ( getElementInterior ( s ) ~= 0 ) then local dimension = getElementDimension ( s ) local houseName = houseIDS [ dimension ] if ( houseName and housesCreated [ houseName ] ) then playersInInterior [ s ] = houseName housesCreated [ houseName ].playersInside [ s ] = true lastWarp [ s ] = getTickCount ( ) end end end, 1000, 1, source ) end ) addEventHandler ( "onPlayerWasted", root, function ( ) if ( getElementInterior ( source ) > 0 ) then local houseName = playersInInterior [ source ] if ( houseName ) then local house = housesCreated [ houseName ] if ( house ) then housesCreated [ houseName ].playersInside [ source ] = nil end end playersInInterior [ source ] = nil end triggerClientEvent(source, "housing:showHousingManager", resourceRoot, _, _, "remove") end )