Jump to content

Search the Community

Showing results for tags 'marke'.

  • 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 2 results

  1. local markers = { {1212.459, -1312.881, 13.556 -1}, {1213.0224609375, -1346.5224609375, 13.572437286377}, {1213.0107421875, -1351.5859375, 13.573674201965}, --preste atenção o ultimo marker não vai virgula no final!!! {1212.9951171875, -1358.228515625, 13.557479858398}, {1212.978515625, -1365.0283203125, 13.524266242981} } -- Coordenadas dos markers addEventHandler ("onResourceStart", resourceRoot, function() for _,pos in ipairs(markers) do local marker = createMarker(pos[1], pos[2], pos[3], 'cylinder', 1.0, 30, 144, 255, 150) --tamanho/cor do marker pode alterar addEventHandler ("onMarkerHit", marker, MarkerHit) local blip = createBlipAttachedTo(marker, 56) --id do blip =56 pode alterar setBlipVisibleDistance(blip, 500) --distancia que é visto o blip no radar, pode alterar end end ) Alguma ideia de como conseguir deixar o marker rente ao chão? o -1 deixa ele no chão mas não abre o painel só abre o painel dos markers que estão "voando"
  2. function ifPlayerEnterOnMarker(markerHit,matchingDimension) if isElement(markerHit) and matchingDimension then if getElementType(markerHit) == "player" and not isPedInVehicle(markerHit) then if isPedInVehicle(source) then if markerHit == ppcikPOSTES[source] then if (matchingDimension) then if isElement(ppcikPOSTES[source]) then local rname = getElementData(source,"rtnamePostes") or nil if rname == nil then return end destroyElement(ppcikPOSTES[source]) triggerClientEvent(source,"AirNew>JOBEletricista>blips<Client",source,false) local vh = getPedOccupiedVehicle(source) outputChatBox ( "#FF0000/reparar", root, 255, 255, 255, true ) toggleAllControls ( source, false ) setControlState ( source, "handbrake", true ) if atualrotnumberPOSTES[source] <= #rotasPOSTES[rname] then exports.Scripts_Dxmessages:outputDx(source, "Reparando... Aguarde 2 Segundos!", "info") setElementData ( source, "AirNewSCR_LiberarXP", "Sim" ) givePlayerMoney ( source, VALOR_POR_POSTES ) setTimer(gerarrota,2500,1,source) setTimer(function(source) exports.Scripts_Dxmessages:outputDx(source, "Jornais Entregues, Siga Para o Proximo Checkpoint!", "success") end,2500,1,source) elseif atualrotnumberPOSTES[source] == #rotasPOSTES[rname]+1 then setElementData(source,"rtnamePostes",rname) atualrotnumberPOSTES[source] = 1 local rec = pay[rname] givePlayerMoney(source,tonumber(rec)) local vh = getPedOccupiedVehicle(source) setTimer(function(source) exports.Scripts_Dxmessages:outputDx(source, "Você Recebeu um Valor de $"..rec.." Por Finalizar as Entregas de Jornais!", "success") end,2500,1,source) setTimer(function(source) toggleAllControls ( source, true ) end, 2500,1, source ) setTimer(function(source) setControlState ( source, "handbrake", false ) end, 2500,1, source ) setElementData(source,"rtnamePostes",nil) end end end end end end addEventHandler("onPlayerMarkerHit",getRootElement(),ifPlayerEnterOnMarker) Meu código está assim porem não está funcionando como deveria, ( na teoria quando o player fosse fazer a entrega se ele estiver dentro do veiculo ele não consegue entregar, ele tem que sair do carro e ir no marker para ai sim funcionar) agradeço dez de já quem puder dar uma moral aqui
×
×
  • Create New...