Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    que anda mal ?

    man ahora no me aparece ni el marker ni el ped
  2. iFoReX

    que anda mal ?

    en que parte pongo los autos ? addEventHandler ( "onClientVehicleEnter", root, function crearjob() local markerjob = createMarker ( 246.55173, 1434.92371, 23.37029, "cylinder", 1.5, 0, 255, 255, 170 ) blip = createBlipAttachedTo ( markerjob, 51, 1 ) end end
  3. iFoReX

    que anda mal ?

    que esta mal ? es que no entiendo muy bien ... addEventHandler ( "onVehicleEnter", root, function crearjob() local markerjob = createMarker ( 246.55173, 1434.92371, 23.37029, "cylinder", 1.5, 0, 255, 255, 170 ) blip = createBlipAttachedTo ( markerjob, 51, 1 ) end end ...
  4. iFoReX

    que anda mal ?

    Muchas gracias man ahora como puedo aser para que al entrar al vehiculo se cree un marker
  5. iFoReX

    que anda mal ?

    sip man : addEventHandler("onClientGUIDoubleClick", root, function ( ) if ( source == GUIEditor_Grid[1] ) then local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then if ( row == 0 ) then v1 = createVehicle ( 427, x, y, z ) elseif ( row == 1 ) then v2 = createVehicle ( 596, x, y, z ) end guiSetVisible( GUIEditor_Grid[1], false ) end end end ) ... function onMrWhoopeeEnter ( thePlayer ) if ( source == v1 or source == v2 ) then -------aqui estan el v1 y el v2 osea los autos que se crean al aprietar double click arrowMarker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) attachElements ( arrowMarker, source, 0, 0, 2 ) end end addEventHandler ( "onClientVehicleEnter", root, onMrWhoopeeEnter )
  6. iFoReX

    que anda mal ?

    siguen sin aparecer los markers en los autos man
  7. iFoReX

    que anda mal ?

    que esta mal ? No aparece el marker ... function onMrWhoopeeEnter ( thePlayer, seat, jackedPlayer ) local arrowMarker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) attachElements ( arrowMarker, thePlayer, 0, 0, 2 ) end addEventHandler ( "onVehicleEnter", v1, onMrWhoopeeEnter ) addEventHandler ( "onVehicleEnter", v2, onMrWhoopeeEnter )
  8. iFoReX

    que anda mal ?

    como podria agregarle un market corona arriba del auto que se creara ?
  9. GUI_EDITOR, I do GUIs with it and 0 bugg https://community.multitheftauto.com/index.php?p= ... ils&id=141 the link in community
  10. iFoReX

    que anda mal ?

    Listo man ya lo ise pero 1 problem cuando presiono enter en el marker no aparecen los items local x = 1540.95654 local y = -1687.67078 local z = 5.89063 local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiSetVisible( GUIEditor_Grid[1], false ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end local grid1 = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") local grid2 = guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") addEventHandler("onClientDoubleClick", root, function ( ) if ( source == grid1 ) then createVehicle ( 427, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) elseif ( source == grid2 ) then createVehicle ( 596, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) end end ) -- Te falto el parentesis. bindKey ( "enter", "down", function ( ) if ( isElementWithinMarker ( localPlayer, market3 ) ) then guiSetVisible ( GUIEditor_Grid[1], true ) end end ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end
  11. iFoReX

    que anda mal ?

    si man ahora aparece pero aparece el gridlist cuando se inicia el script , no al apretar enter
  12. iFoReX

    que anda mal ?

    solid ise esto : GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end local grid1 = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") local grid2 = guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") addEventHandler("onClientDoubleClick", root, function () if ( source == grid1 ) then createVehicle ( 427, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) elseif ( source == grid2 ) then createVehicle ( 596, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) end end bindKey ( "enter", "down", function ( ) if ( isElementWithinMarker ( localPlayer, market3 ) ) then guiSetVisible ( GUIEditor_Grid[1], true ) end end ) local x = 1540.95654 local y = -1687.67078 local z = 5.89063 local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end Pero ahora no me aparece el marker ni nada del script que anda mal ?
  13. for dont do spam help me with it please GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end local grid1 = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") local grid2 = guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") addEventHandler("onClientDoubleClick", root, function () if ( source == grid1 ) then createVehicle ( 427, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) elseif ( source == grid2 ) then createVehicle ( 596, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) end end local x = 1540.95654 local y = -1687.67078 local z = 5.89063 local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end I can when the player is in marker and Press Enter appear the Grid, But if dont is in the marker dont appear the grid with bindkey
  14. iFoReX

    que anda mal ?

    Como le ago para que el grid aparesca apretando enter pero solo si esta en el marker osea si no esta en el marker y aprieta enter no aparece el gridlist GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end
  15. I dont know how do but I do exports.scoreboard:addScoreboardColumn('EXP') levels = { [0] = {"Level 0", "10"}, [1] = {"Level 1", "20"}, [2] = {"Level 2", "100"}, [3] = {"Level 3", "150"}, [4] = {"Level 4", "200"}, [5] = {"Level 5", "2000000"}, } I dont know if it work
  16. iFoReX

    que anda mal ?

    a mi no :c como vez no me aparece nada :c aqui te dejo el meta por si algo esta mal "ElMota" version="1.0.0" type="script" name="Skins" description="" showInResourceBrowser="true" /> y el script : local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5.89063, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then addEventHandler ( "onClientRender", root, drawText ) setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then addEventHandler ( "onClientRender", root, drawText ) setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market ) then removeEventHandler ( "onClientRender", root, drawText ) elseif ( player == localPlayer and source == market2 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end
  17. iFoReX

    que anda mal ?

    mmm ok :c lo probare nuevamente sigue sin aparecerme man :C
  18. iFoReX

    que anda mal ?

    no me aparece man : ... addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end
  19. @offtopic : yo aprendi en el verano en los arduos dias de aburrimiento xDD
  20. iFoReX

    que anda mal ?

    y como puedo aserle con esto ? es que quiero que al entrar al marker osea que sera invisibisible se aga visible este texto ? -- Direct X Drawing addEventHandler("onClientRender",root, function() dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end ) Se que eso es Client como lo ago para unirlo al server-side ?
  21. iFoReX

    que anda mal ?

    Sigue sin funcionar man :c local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = creteMarker ( 1526.51270, -1677.93237, 5.89063, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer(setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer(setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); end end )
  22. buee estoy asiendo mi primer job recien asiendo la base, pero el ped no me aparece ni el marker de prueba tampoco ;:c porfas ayudenme local x = 685.62610 local y = -2692.39307 local z = 7.5 local x2 = 294.38306 local y2 = -167.90103 local z2 = 1.57813 local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( x2 + 2, y2, z2 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = creteMarker ( 1526.51270, -1677.93237, 5.89063, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) setTimer(giveWeapon,1000,1,ped,31,9999,true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer(setElementPosition, 2000, 1, player, x2, y2, z2 ); elseif ( player == localPlayer and source == market2 ) then setTimer(setElementPosition, 2000, 1, player, x + 2, y + 2, z + 2 ); end end )
  23. iFoReX

    TelePort Error

    what is bad ? local x = 685.62610 local y = -2692.39307 local z = 7.5 local x2 = 294.38306 local y2 = -167.90103 local z2 = 1.57813 local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( x2 + 2, y2, z2 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) local name = getPlayerName(player) if name == "ElMota" then if ( player == localPlayer and source == market ) then setTimer(setElementPosition, 2000, 1, player, x2, y2, z2 ); elseif ( player == localPlayer and source == market2 ) then setTimer(setElementPosition, 2000, 1, player, x + 2, y + 2, z + 2 ); end end )
×
×
  • Create New...