Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. mtasa.com, is offline in Brazil other sites mtasa.com forum.multitheftauto.com community.multitheftauto.com wiki.multitheftauto.com bugs.mtasa.com all sites with mtasa.com
  2. #RooTs

    Map blips

    URL signature expired
  3. stolen: https://community.multitheftauto.com/ind ... s&id=12421 DONE
  4. #RooTs

    Gui

    server.lua local Positions = { { -1891.5, 2148.7001953125, 1.7999999523163 }, -- { 664.65936, -1755.74182, 13.45477 }, -- more positions } local pickups = { pickup = { } } function onHit ( ) for _, v in ipairs ( Positions ) do local x, y, z = unpack ( v ) pickups.pickup[v] = createPickup ( x, y, z, 3, 1239, 3000) addEventHandler ( "onPickupHit", pickups.pickup[v], function ( player ) usePickup ( pickups.pickup[v], player ) triggerClientEvent(player, "PokazPanelInfo", player) end) end end addEventHandler ( "onResourceStart", resourceRoot, onHit ) Client.lua addEventHandler("onClientResourceStart", resourceRoot, function() okno = guiCreateWindow(619, 354, 454, 260, "Praca Nurka", false) guiWindowSetSizable(okno, false) memo = guiCreateMemo(16, 32, 419, 208, "...", false, okno) guiSetVisible(okno, false) end ) function ShowGui(element) if element ~= getLocalPlayer() then return end guiSetVisible(okno, true) else guiSetVisible(okno, false) end addEvent("PokazPanelInfo", true) addEventHandler("PokazPanelInfo", root, ShowGui)
  5. #RooTs

    Animation timer

    maybe try this if getPedAnimation(getLocalPlayer()) then setTimer(function() setPedAnimation(localPlayer) end, 2000, 0) end
  6. #RooTs

    Animation timer

    a Okay paste all code
  7. #RooTs

    Gui

    You add in triggerEvent triggerClientEvent(source, "PokazPanelInfo", source) or triggerClientEvent(player, "PokazPanelInfo", player)
  8. #RooTs

    Gui

    I edited my post try again
  9. #RooTs

    Animation timer

    will stay a lifetime in need of help? have to study a little too ...
  10. #RooTs

    Gui

    try this local Positions = { { -1891.5, 2148.7001953125, 1.7999999523163 }, -- { 664.65936, -1755.74182, 13.45477 }, -- more positions } local pickups = { pickup = { } } function onHit ( ) for _, v in ipairs ( Positions ) do local x, y, z = unpack ( v ) pickups.pickup[v] = createPickup ( x, y, z, 3, 1239, 3000) addEventHandler ( "onPickupHit", pickups.pickup[v], function ( player ) usePickup ( pickups.pickup[v], player ) triggerClientEvent(player, "PokazPanelInfo", player) end) end end addEventHandler ( "onResourceStart", resourceRoot, onHit ) EDIT:
  11. #RooTs

    Animation timer

    setPedAnimation(localPlayer, "ANIMATIONBLOCK", "animation1") -- start animation setPedAnimation(localPlayer) -- stop animation
  12. #RooTs

    Animation timer

    maybe look in WIKI https://wiki.multitheftauto.com/wiki/EngineUnloadIFP
  13. #RooTs

    Gui

    my table of example local Positions = { { -2408.83667, -600.25464, 132.64844 }, { -2408.72217, -590.46851, 132.64844 }, --{ -2408.72217, -590.46851, 132.64844 }, -- more positions } addEventHandler ( "onResourceStart", resourceRoot, function() for _, v in ipairs ( Positions ) do local tx, ty, tz = unpack ( v ) pickups.pickup[v] = createPickup(tx, ty, tz-2.0, 3, 1239, 3000) end end )
  14. #RooTs

    Gui

    my example of panel simple S: local praia = createMarker (338, -1776, 4.1, "cylinder", 2, 0, 255, 255, 255) function open (source) triggerClientEvent (source, "open", root) end addEventHandler ("onMarkerHit", praia, open) C:  painel = false function dx () dxDrawRectangle(239, 182, 548, 385, tocolor(0, 0, 0, 180), false) dxDrawRectangle(239, 530, 548, 37, tocolor(0, 247, 255, 209), false) dxDrawRectangle(434, 182, 138, 17, tocolor(0, 247, 255, 209), false) dxDrawText("SEU SERVER", 242, 530, 451, 547, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("AVISO ' REGRAS", 455, 182, 664, 199, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Fechar", 685, 537, 719, 563, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("REGRAS SERVIDOR.", 252, 270, 434, 302, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("E Proibido Matar em cima de moto : Ban 5 Horas.", 252, 302, 434, 334, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Uso de handeling em areas Proibidas : Ban 24 Horas.", 252, 344, 434, 376, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Desrespeitos A Membros Da Staff ou a Players Tera Punição : Ban 24 Horas.", 252, 386, 434, 418, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Em Caso de Duvidas Favor Recorrer a um staff , Denunciar : Skype:", 252, 424, 434, 456, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("-----------------------------------------------------------------------------------------------------------------------------------------", 239, 233, 779, 242, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText("-----------------------------------------------------------------------------------------------------------------------------------------", 239, 481, 779, 490, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end function abrirpainel () if painel == false then addEventHandler ("onClientRender", root, dx) 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 (685, 537, 719, 563) then removeEventHandler ("onClientRender", root, dx) showCursor (false) painel = false end end end end addEventHandler ("onClientClick", root, fecharpainel) local x,y = guiGetScreenSize() 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
  15. #RooTs

    Gui

    maybe you may create a table in all pickups?
  16. #RooTs

    help

    Try this local hudTable = { "radar", "ammo", "weapon", "area_name", "wanted", "money", "health", "clock", "vehicle_name" } addEventHandler("onClientResourceStart", resourceRoot, function() for id, hudComponents in ipairs(hudTable) do showPlayerHudComponent(hudComponents, false) end end ) addEventHandler("onClientResourceStop", resourceRoot, function() for id, hudComponents in ipairs(hudTable) do showPlayerHudComponent(hudComponents, true) end end )
  17. try this addEventHandler("onPickupHit", chainsaw, function(plr) for _, v in ipairs (getElementsByType ("player")) do if (plr and plr ~= v) then giveWeapon(v, 9, 1) setPedWeaponSlot(v, 1) end end end)
  18. na verdade o terceiro parâmetro é 1000 ao invés de 999.. já trabalhei muito com esta função setPedStat aonde já coloquei 999 e não ficava nas 2 mãos resolvi colocar 1000 e deu certo setPedStat(Player_Aqui, 69, 999) -- parâmetro do AndreiSR setPedStat(thePlayer, 69, 1000) -- meu
  19. maybe this function maintance () for _,v in pairs(getElementsByType("player")) do banPlayer(v, false, false, true, getRootElement(), "banned for maintaince") end end addCommandHandler("maintainceban", maintance) -- edit here
  20. try this chainsaw = createPickup(-503.60,-77.34,60.5, 9, 3000) addEventHandler("onPickupHit", chainsaw, function() for _,v in pairs(getElementsByType("player")) do giveWeapon(v, 9, 1) setPedWeaponSlot(v, 1) end end)
  21. solved, thanks Mr.Pres[T]ege and MrTasty
×
×
  • Create New...