Search the Community

Showing results for tags 'marker'.



More search options

  • 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
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • 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
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Gang


Location


Occupation


Interests

Found 27 results

  1. joaolamar

    MARKER PARA VEICULO

    Falae rapaziada blz? então mano eu estou com um probleminha em um marker, tem o marker1 e o marker2 nas linhas, o marker2 que estou tendo um pouco de problema queria deixar pra qualquer um que pegasse o veiculo no marker1 pudesse excluir até pq somente quem pega o veiculo no marker1 que pode excluir queria deixar pra todos se alguem puder ajudar tmj! local marker1 = createMarker ( 2185.5439453125,-1811.8256835938,13.546875 -1, "cylinder", 1.2, 0 , 255, 0, 155 ) local marker2 = createMarker ( 2157.5869140625,-1808.6865234375,13.387050628662 -1, "cylinder", 3, 255 , 0, 0, 155) veh = {} function vehicle ( marker, md ) if md then if marker == marker1 then if not isPedInVehicle ( source ) then if isElement ( veh[source] ) then destroyElement(veh[source]) end local x,y,z = getElementPosition(source) veh[source] = createVehicle ( 490, 2185.0043945313,-1805.0360107422,13.370622634888, -0, 0, 5.1420917510986 ) warpPedIntoVehicle ( source, veh[source] ) end elseif marker == marker2 then if veh[source] and isElement ( veh[source] ) then destroyElement(veh[source]) end end end end addEventHandler ( "onPlayerMarkerHit", getRootElement ( ), vehicle )
  2. local screenW,screenH = guiGetScreenSize() local resW, resH = 1365,767 local x, y = (screenW/resW), (screenH/resH) painel = false function convertTime(ms) local min = math.floor ( ms/60000 ) local sec = math.floor( (ms/1000)%60 ) return min, sec end function dx () dxDrawRectangle((screenW - 323) / 2, (screenH - 465) / 2, 323, 465, tocolor(0, 0, 0, 185), false) dxDrawText("Ak 47", 657, 302, 710, 331, tocolor(255, 255, 255, 255), 2.00, "sans", "left", "center", false, false, false, false, false) dxDrawRectangle(519, 299, 323, 3, tocolor(67, 219, 0, 255), false) dxDrawImage(471, 321, 320, 110, "Img/30.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(519, 403, 323, 3, tocolor(67, 219, 0, 255), false) dxDrawRectangle(519, 181, 323, 3, tocolor(67, 219, 0, 255), false) dxDrawRectangle(519, 507, 323, 3, tocolor(67, 219, 0, 255), false) dxDrawText("Deagle", 644, 406, 697, 435, tocolor(255, 255, 255, 255), 2.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("Uzi", 667, 184, 720, 213, tocolor(255, 255, 255, 255), 2.00, "sans", "left", "center", false, false, false, false, false) dxDrawImage(513, 221, 240, 110, "Img/28.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(509, 425, 256, 128, "Img/24.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Trafico De Armas", 548, 151, 824, 181, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Fechar", 650, 564, 86, 31, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) end function painel_tempo () local timer = interpolateBetween(120000, 0, 0, 0, 0, 0, (getTickCount()-tick)/60000, "Linear") local minutes, seconds = convertTime(timer) dxDrawRectangle(17, 251, 116, 44, tocolor(0, 0, 0, 211), false) dxDrawRectangle(17, 242, 115, 19, tocolor(255, 255, 255, 255), false) dxDrawText("Tempo", 21, 245, 123, 261, tocolor(0, 0, 0, 254), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(""..minutes..":"..seconds, 33, 266, 122, 290, tocolor(255, 255, 255, 255), 2.00, "default", "center", "top", false, false, false, false, false) end function abrirpainel () if painel == false then addEventHandler ("onClientRender", root, dx) tick = getTickCount() showCursor (true) painel = true end end addEvent ("open", true) addEventHandler ("open", root, abrirpainel) function fecharpainel (_,state) if painel == true then if state == "down" then if isCursorOnElement (640, 564, 86, 31) then removeEventHandler ("onClientRender", root, dx) showCursor (false) painel = false end end end end addEventHandler ("onClientClick", root, fecharpainel) function click (_,state) if painel == true then if state == "down" then if isCursorOnElement(471, 321, 320, 110) then triggerServerEvent("anim4", localPlayer) addEventHandler ("onClientRender", root, painel_tempo) removeEventHandler ("onClientRender", root, dx) setTimer(function() removeEventHandler("onClientRender", root, painel_tempo) showCursor (false) painel = false end, 120000, 1) elseif isCursorOnElement(513, 221, 240, 110) then triggerServerEvent("animuzi", localPlayer) addEventHandler ("onClientRender", root, painel_tempo) removeEventHandler ("onClientRender", root, dx) setTimer(function() removeEventHandler("onClientRender", root, painel_tempo) showCursor (false) painel = false end, 120000, 1) elseif isCursorOnElement(509, 425, 256, 128) then triggerServerEvent("animdesert", localPlayer) addEventHandler ("onClientRender", root, painel_tempo) removeEventHandler ("onClientRender", root, dx) setTimer(function() removeEventHandler("onClientRender", root, painel_tempo) showCursor (false) painel = false end, 120000, 1) end end end end addEventHandler("onClientClick", root, click) function isCursorOnElement(x,y,w,h) local mx,my = getCursorPosition () local fullx,fully = guiGetScreenSize() cursorx,cursory = mx*fullx,my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end
  3. falconthunder

    Need Marker Timer Script

    Hello, I need a marker timer script which starts a timer on screen for that player who hit marker X and stopped when that player hit marker Y. And when that player hits marker X again without hitting marker Y, it restarts/reset timer again. Help me pls.
  4. Trafico = createMarker(2349.53174, -651.42633, 128.19687 -1, "cylinder", 1.1, 0, 255, 0, 55) Blip_Emprego = createBlipAttachedTo( Trafico, 6 ) function OpenPainelMed(source) if isElementWithinMarker(source, Trafico) then
  5. Ola,eu estava tentando fazer um maker para criar um carro eu queria saber como que faz um marker para destruir o carro local criar = createMarker(1604.15, -1612.056, 13.881, 'corona', 1.0, 0, 255, 255, 0 ) function vehicleSpawner(hitElement,matchingDimension) if getElementType(hitElement) == "player" then if getPedOccupiedVehicle(hitElement) == false then local 1604.15, -1612.056, 13.881 = getElementPosition(hitElement) local veh = createVehicle(599, 1604.15, -1612.056, 13.881) warpPedIntoVehicle(hitElement,veh) end end end addEventHandler("onMarkerHit",criar,vehicleSpawner)
  6. Olá estou tentando fazer para quando o jogador encostar do marker vai desabilita todos os acesso para ele não conseguir se movimenta ai tudo bem, so que depois de colocou um setTimer para que pode voltar os controle do jogador mas está dando esse erro http://prntscr.com/lx94uf e não tenho a menor ideia de como arruma-lo server-side function Start_Bus(marker, md) if isPedInVehicle( source ) then if md then if marker == Rota1_Vermelha then setElementVisibleTo( Rota1_Vermelha, source, false ) setElementVisibleTo( Rota1_Blip, source, false ) setElementVisibleTo( Rota2_Vermelha, source, true ) setElementVisibleTo( Rota2_Blip, source, true ) toggleAllControls ( source, false ) setControlState ( source, "handbrake", true ) setTimer(function() toggleAllControls ( source, true ) setControlState ( source, "handbrake", false ) end, 5000, 1) end end end end addEventHandler("onPlayerMarkerHit", root, Start_Bus)
  7. #Horus

    Ajuda?

    local Minicio4 = createMarker (1038.02332, -1337.93970, 13.72656 -1, "cylinder", 1, 16 ,102 ,231, 100) Quando coloco -1 após as coordenadas, junto com o marker de tamanho 1 após o "cylinder" o script nao funciona!!! Todos os markers de trab do meu servidor são do tamanho "1" queria deixar esse tmb oque é glr ? Obs: eu sublinei e grifei o -1 e o tamanho do marker q é "1" após o "cylinder" para facilitar
  8. Здравствуйте, дорогое комьюнити! Столкнулся с проблемой в функции nachalo. Должно быть так, чтобы маркер появлялся в 3 интерьере и в 14343 измерении. Но почему-то не работает. Скину вам полностью скрипт, проблема в функции nachalo. Помогите пожалуйста! marker = createMarker( -1285, -135, 15, "cylinder", 1.5, 255, 255, 0, 170) function MarkerHit( hitElement, matchingDimension ) if ( getElementDimension ( hitElement ) == 0 ) then -- if the player is in dimension 0 setElementDimension ( hitElement, 1 ) -- set his dimension to 1 local elementType = getElementType( hitElement ) -- get the hit element's type setElementInterior ( hitElement, 3, 390, 174, 1009 ) end end addEventHandler( "onMarkerHit", marker, MarkerHit ) -- attach onMarkerHit event to MarkerHit function marker1 = createMarker( 364, 174, 1009, "cylinder", 1.5, 255, 255, 0, 170) function nachalo ( hitElement, matchingDimension ) setElementInterior( marker1, 3 ) setElementDimension( marker1, 1 ) local elementType = getElementType( hitElement ) setElementModel ( hitElement, 1 ) end addEventHandler( "onMarkerHit", marker1, MarkerHit ) -- attach onMarkerHit event to MarkerHit function жду ответов!)
  9. #DaNiLiN

    Territorio marker

    Qual seria a forma correta de fazer contador do marker contar por player dentro. Ex: a cada player que entra dentro de certo marker começa a contar 1 segundo a mais.
  10. #DaNiLiN

    PrivACL Marker

    Gente Gostaria de saber como adiciono priv acl por marker Ex: O player entra no marker mais não conseguir abrir o painel que está no marker
  11. misterk99

    Understanding On Marker Hit

    Hey Guys, For the last couple of hours I have been trying to get OnMarkerHit to trigger, I watched multiple youtube videos and tried using the search function here but none of them helped. The script is a server sided script, This is the code I am using: marker = createMarker(1514.5, -1678.2, 13, 'cylinder', 1.0, 19, 132, 38, 150) function markerHit(hitElement) setElementPosition(hitElement,0, 0, 0) outputChatBox("Hitting marker") end addEventHandler("onMarkerHit", marker , markerHit) But nothing happens, and I just don't know why. The object hitting the marker is a player. Hope someone can help me out. Greetings. misterk99
  12. I created "RepairMarkers" and when player hits any of them, their car's health must to increase. But I don't know, how to check every marker here: if isElementWithinMarker( getLocalPlayer(), RepairMarker[1] ) then Instead of "RepairMarker[1]" I want to check every marker Source: function CreateMarkers( thePlayer, seat ) if thePlayer == getLocalPlayer() and seat == 0 then BaysideRM = createMarker( -2259.027, 2386.142, 3.897, "cylinder", 3, 233, 96, 21, 100 ) Area69SkyRM = createMarker( 307.876, 2051.747, 16.587, "cylinder", 5, 233, 96, 21, 100 ) RepairMarker = { BaysideRM, Area69SkyRM } end end function RepairVehicle( hitPlayer, matchingDimension ) if hitPlayer == getLocalPlayer() and matchingDimension == true then local theVehicle = getPedOccupiedVehicle( getLocalPlayer() ) local VehicleHealth = getElementHealth( theVehicle ) local RepairHealth = math.floor( VehicleHealth ) function Repair() if isElementWithinMarker( getLocalPlayer(), RepairMarker[1] ) then if RepairHealth < 1000 then RepairHealth = RepairHealth + 1 setElementHealth( theVehicle, RepairHealth ) else fixVehicle( theVehicle ) playSFX( "script", 11, 1, false ) end else killTimer( RepairTimer ) end end if VehicleHealth < 1000 then RepairTimer = setTimer( Repair, 100, 1001 - math.floor( VehicleHealth ) ) end end end function DestroyMarkers( thePlayer, seat ) if thePlayer == getLocalPlayer() and seat == 0 then for i, v in ipairs( RepairMarker ) do destroyElement( RepairMarker[i] ) end end end addEventHandler( "onClientMarkerHit", getRootElement(), RepairVehicle ) addEventHandler( "onClientVehicleEnter", getRootElement(), CreateMarkers ) addEventHandler( "onClientVehicleExit", getRootElement(), DestroyMarkers )
  13. This is the code: When i type twice " /asd " the marker position does not change.. How to fix this?
  14. Tudo bem com vocês? Bem vou direto ao assunto gostaria de sabe como faço para adiciona o Player do tal TIME q criei. Exemplo quando eu aperta do button vai adicionar ele do Time lenhador ai quando ele desloga vai tira ele do Time. Bom obrigado a quem me ajuda function Lenhador () LenhadorTeam = createTeam ( "Lenhador", 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot, Lenhador)
  15. I want create a script, which create a marker with random position, from a table. How to make this?
  16. Tudo bem? Bom não sei se to fazendo algo de errado desse script e tbm não sei se isso funciona. Eu estou tentando pegar o marker de um script.lua e levar para outro .lua exemplo crio o Marker do exemplo.lua e queria leva ele para o exemplo2.lua so que nao sei . Aqui esta o meu script de como estou fazendo Pegar o marker desse script. addEvent("opengui",true) function opengui_func() AgenciaT = guiCreateWindow(412, 90, 546, 486, "Agencia de Empregos", false) Aceitar = guiCreateButton(78, 436, 130, 27, "Aceitar", false, AgenciaT) Cancelar = guiCreateButton(348, 436, 130, 27, "Cancelar", false, AgenciaT) Lista = guiCreateGridList(53, 170, 451, 253, false, AgenciaT) guiGridListAddColumn(Lista, "Empregos", 0.3) guiGridListAddColumn(Lista, "Salários", 0.3) guiGridListAddColumn(Lista, "Cidades", 0.3) for i = 1, 2 do guiGridListAddRow(Lista) end guiGridListSetItemText(Lista, 0, 1, "Piloto", false, false) guiGridListSetItemText(Lista, 0, 2, "1500", false, false) guiGridListSetItemText(Lista, 0, 3, "Los Santos", false, false) guiGridListSetItemText(Lista, 1, 1, "Fazendeiro", false, false) guiGridListSetItemText(Lista, 1, 2, "1000", false, false) guiGridListSetItemText(Lista, 1, 3, "Los Santos", false, false) Messager = guiCreateMemo(48, 38, 451, 124, "Seja Bem Vindo a Prefeitura do Servidor, BRASIL TOP RPG para você começar a trabalhar precisa selecionar o emprego que você deseja trabalhar e apertar em Aceitar. Boa Sorte com seu novo emprego", false, AgenciaT) guiMemoSetReadOnly ( Messager, true) showCursor(true) addEventHandler("onClientGUIClick", Cancelar, function() destroyElement(AgenciaT) showCursor(false) end, false) function onGridListClick(source) local itemrow,itemcolumn = guiGridListGetSelectedItem(Lista) if itemrow ~= -1 then if guiGridListGetItemText( Lista, itemrow, 1 ) == "Piloto" then blip = createBlip ( 2003.5859375, -2401.1025390625, 13.546875, 42) outputDebugString("Blip visible distance: "..getBlipVisibleDistance(blip)) setBlipVisibleDistance(blip, 10000) -- Distancia Aeroporto LS outputChatBox("Local marcador vá até o [T]", source) destroyElement(AgenciaT) showCursor(false) else if itemrow ~= -1 then if guiGridListGetItemText( Lista, itemrow, 1 ) == "Fazendeiro" then Carro = createMarker (1482.3427734375, -1729.4150390625, 13.3828125 -1, "cylinder", 2, 255 ,0 ,0, 255) --Quero levar esse marker para outro .lua para pode spawna o veiculo triggerServerEvent(source, "trabalho", source, true) -- e aqui é quando leva para o script servidor bom nao se se é aqui o erro outputChatBox("Local marcador vá até o [T]", source) destroyElement(AgenciaT) showCursor(false) end end end end end addEventHandler("onMarkerHit",Carro,onGridListClick) -- o evento addEventHandler("onClientGUIClick", Aceitar, onGridListClick) end addEventHandler("opengui", root, opengui_func) E levar para esse script. local marker = createMarker(362.8115234375, 173.8154296875, 1008.3828125 -1, "cylinder", 1.5, 255, 0, 0) setElementInterior(marker, 3) function guioeffnen(player) triggerClientEvent(player, "opengui", player, true) end addEventHandler("onMarkerHit",marker,guioeffnen) function pegar (source) -- quero usar o marker de la para fazer essa função if isElementWithinMarker(source, Carro) then if veh[source] and isElement( veh[source] ) then destroyElement ( veh[source] ) veh[source] = nil end x,y,z = getElementPosition(source) Islamico = true veh[source] = createVehicle(422,1481.083984375, -1730.6201171875, 13.3828125, 0, 0, 109.58242797852) warpPedIntoVehicle( source, veh[source] ) end addEvent("trabalho",true) end addEventHandler( "onMarkerHit",Carro, pegar )
  17. function ccv (thePlayer) local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then setTimer(function() ve1 = createVehicle ( 535, -2220.98706, -129.69173, 35.32031 ) ma1 = createMarker ( -2221.09668, -129.61031, 33.88103, "cylinder", 7.5, 255, 255, 0, 5 ) end, 1000, 1) end end addCommandHandler("ccvp", ccv) function marker1() destroyElement(ve1) destroyElement(ma1) end addEventHandler( "onMarkerHit", ma1, marker1) when i walk into the marker, nothing happens
  18. Marcus15

    Marker hit by object

    How can i make marker that can only be hit by object (not player on foot, and not vehicle!)
  19. Domingos MTA

    [HELP] Marker

    Does anyone know how to make a marker like this? http://prntscr.com/h1iyg4
  20. +LuiZ

    Ajuda Script

    Gostaria de uma ajuda, eu criei um marker em um interior, interior 3 pra ser mais preciso, e eu gostaria q esse maker abrisse um painel gui q eu fiz, como faria isso funfar? assim quando o player passasse pelo marker abriria o painel gui, aguardo resposta...grato
  21. Turbo777

    Why not working onMarkerHit?

    function rablasletrehozasa() rablashelye = createMarker ( 252.3,-54.6,0.9, "cylinder", 1, 255, 255, 255, 170 ) outputChatBox("A kisboltot újra kitudjátok rabolni", root, r,g,b,true) end addEventHandler("onResourceStart",resourceRoot,rablasletrehozasa) function animaciovege(tp) setPedAnimation(tp,false) end function apenz(tp) local penz = math.random(100000,600000) givePlayerMoney( tp, penz ) outputChatBox("Gratulálok! Kiraboltad a boltot. Kaptál érte: "..penz.." Forintot!",tp,r,g,b,true) setTimer(apenz,7000,1,thePlayer) end function beleallas(thePlayer) if isElementWithinMarker(thePlayer, rablashelye) then outputChatBox("Írd be a rabláshoz, hogy /kirabol!",thePlayer,r,g,b,true) end end addEventHandler( "onMarkerHit", rablashelye, beleallas ) function kirabol(thePlayer) if isElementWithinMarker(thePlayer, rablashelye) then setPedAnimation ( thePlayer, "INT_HOUSE", "wash_up") setTimer(animaciovege,7000,1,thePlayer) setTimer(apenz,7000,1,thePlayer) destroyElement(rablashelye) else outputChatBox("Ez a parancs csak a kisboltban található markerben használható.") end end addCommandHandler("kirabol", kirabol)
  22. Amine#TN

    help

    i made that script as a base door i want to upgrade it ------------------------------------------------------------------------- local Marker1 = createMarker (1638.0502929688, -1152.9975585938, 22.5, "cylinder", 4, 255, 0, 0, 100) function Entre ( hitPlayer, matchingDimension ) setElementPosition ( hitPlayer, 1637.2869873047, -1132.6866455078, 23.90625 ) outputChatBox ( "Welcome to Los Santos Boss Area!",hitPlayer ) end addEventHandler( "onMarkerHit", Marker1, Entre) -------------------------------------------------------------------------- i want to make it only players on foot can enter also zombies and other peds cant enter to this base
  23. How to destroy a marker? I did not find any function to do this. i use destroyElement(markerName)
  24. Miika

    Making markers bouncing?

    Hello there, I could never figure out myself proper way to make markers bouncing like in vanilla gta sa. I have tried moveObject in clientside but doesn't seem to work well. Anyone having ideas, what functions I should use in order to create bouncing arrow marker?
  25. --[[ -- Resource Name: Information. -- Author: Om (RipeMangoes69) -- Date: 4/12/2016 -- File: client.lua ]]-- -- GUI GUIEditor = { window = {}, label = {}, memo = {} } function createInfoObjects() local markers = { {area = "Los Santos Airport", x = 1582.45, y = -2286.32, z = 12}, {area = "Las Vegas Airport", x = 1674.30859375, y = 1444.9501953125, z = 9.2} } for _, m in ipairs(markers) do local marker = createMarker(m.x, m.y, m.z, "cylinder", 1, 255, 255, 255, 100) GUIEditor.window[1] = guiCreateWindow(645, 250, 266, 378, "Information: " .. m.area, false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(5, 353, 190, 15, "* Click anywhere on GUI Window to close it.", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-small") GUIEditor.memo[1] = guiCreateMemo(9, 24, 247, 324, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) end end addEventHandler("onClientResourceStart", getRootElement(), createInfoObjects) function openGUI( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" then if isPedInVehicle(hitElement) then outputChatBox("You cannot access GUI from vehicle!", 255, 0, 0) guiSetVisible(GUIEditor.window[1], false) showCursor(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end end addEventHandler("onClientMarkerHit", resourceRoot, openGUI) function closeGUI() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end addEventHandler("onClientGUIClick", resourceRoot, closeGUI) How am i suppose to "change" the GUI Title ? (area in the table). thanks.