Jump to content

Search the Community

Showing results for tags 'concessionaria'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. function updateVeh(vehicle) local id = getElementData (vehicle, "TS:VehicleID") --element data que ira setar no veiculo ao ser spawnado pela concessionaria if id then local result = dbPoll(dbQuery (db, "SELECT * FROM Inventario WHERE Vehicle = ?", id), -1) --database do porta malas local data = dbPoll(dbQuery (db, "SELECT * FROM Veiculo WHERE Vehicle = ?", id), -1) --database do porta malas if type (result) == "table" and type (data) == "table" then setElementData(vehicle, "TS:VehicleItens", result) --irá setar os itens q tem no porta malas do carro setElementData(vehicle, "TS:VehiclePeso", data) --irá setar o peso q o veiculo tem isso aq tá dando erro ao clicar no end --carro por isso preciso da ajuda de vcs end end createEventHandler("TS:updateVeh", getRootElement(), updateVeh) queria um event q verificasse se o carro foi spawnado no servidor e que no momento q o carro for spawnado executasse a função ai em cima
  2. Quando eu vou verificar se o dinheiro da pessoa, ele retorna que o getPlayerMoney() não pode ter o valor nil, no caso ele não reconhece o player que está fazendo a ação de comprar o carro, isso faz com que o script não funcione. Alguém pode me ajudar a arrumar o script, ficaria bem agradecida function abriPainel0(source) triggerClientEvent(source, "Abrir_painel", source) end addEventHandler("onMarkerHit", mc0, abriPainel0) function comprarcarro0(source) local acc = getAccountPlayer(source) or "ninguém" local money = getPlayerMoney(source) or 0 if money >= c0[2] then if getElementData(source,"Comprou") == false then setElementData(source,"Comprou",true) setTimer(comprar, 10000, 1) takePlayerMoney(source, c0[2]) createVehicle(c0[3], g0[3], g0[4], g0[5]+2) else outputChatBox("Espere 10 segundos",source,255,255,255,true) end else outputChatBox("Você não possui dinheiro você precisa de R$ "..c0[2]-money,source,255,255,255,true) outputChatBox("O Player é o: "..tostring(acc)) end end addEvent("comprarc0", true) addEventHandler("comprarc0", root, comprarcarro0) function comprar() setElementData(source,"Comprou",false) outputChatBox("Você já pode comprar outro veiculo.",source,255,255,255,true) end
  3. Quero criar uma função com que eu resgate o veiculo, preciso de uma função que ao clicar o carro sera teletransportado para um local definido só fiz o local aonde irá clicar: Button_VS_Warp_s = guiCreateStaticImage(381, 98, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_Warp_o = guiCreateStaticImage(381, 98, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_Warp = guiCreateLabel(381, 98, 166, 25, "Resgatar", false, Window_VS) guiSetFont(Button_VS_Warp, "default-bold-small") guiLabelSetColor(Button_VS_Warp, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_Warp, "center") guiLabelSetHorizontalAlign(Button_VS_Warp, "center") aqui o carro trás até mim, porem não quero que irá até o player elseif source == Button_VS_Warp then if not isInColExport () then triggerServerEvent("WarpMyVehicle", localPlayer, ID)
×
×
  • Create New...