Jump to content

DNL291

Moderators
  • Posts

    3,875
  • Joined

  • Days Won

    67

Everything posted by DNL291

  1. If you mean teleport the player to an interior use: setElementInterior.
  2. Yes, it's clientside. But the function have some bugs with color codes.
  3. DNL291

    bar exp

    dxDrawText ( "Exp: "..Name..", "..Expreq, x/4.59, y/95, x, y, tocolor ( 0, 222, 10, 255 ), 1, "bankgothic" )
  4. Tente isso: function executeCommandbinKey() if g_Window.window then return end executeCommandHandler("window") end bindKey("F1","up",executeCommandbinKey) Mas não entendi sua explicação muito bem. Tinha esquecido que ele mostrou o código.
  5. Você está usando o event 'onPlayerJoin' que é server-side com funções client-side, use 'onClientPlayerJoin'. No seu meta.xml o script pode estar como server-side, por isso esse erro no debug.
  6. Com a função dxDrawRectangle você terá que fazer uma barra de progresso personalizada, se eu te entendi bem. Progress Bar será mais simples, porem fácil para fazer.
  7. Veja essa função, setCameraTarget. Abaixo tem um exemplo que possa te ajudar com a função spectate.
  8. Não precisa ter pressa para explicar, pode explicar o problema especifico ou mostrar o código onde possa estar o erro ? Será que você quer dizer que tem um problema com a função bindKey, para mostrar/ocultar a janela quando o botão for pressionado ? mostre o código por favor.
  9. Use YouTube video ID string tag.
  10. Again: https://community.multitheftauto.com/ind ... ls&id=6423 https://community.multitheftauto.com/ind ... ls&id=6424 Skins mods: https://community.multitheftauto.com/ind ... ls&id=6428 https://community.multitheftauto.com/ind ... ls&id=6427 DONE
  11. Agora está na área certa porque foi movido por um moderador.
  12. Try this: setTimer( function() for _,vehicle in ipairs(getElementsByType("vehicle")) do if isElementInWater(vehicle) and getElementHealth(vehicle) == 0 then destroyElement(vehicle) end end end, 1300, 0 )
  13. Skin mods: https://community.multitheftauto.com/ind ... ls&id=6415 https://community.multitheftauto.com/ind ... ls&id=6416 DONE
  14. function Police ( text, type ) local team = getPlayerTeam ( source ) if ( team and getTeamName ( team ) == "Police" ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Console" ) ) then outputChatBox ( "#0000FF* [Police] x ".. getPlayerName ( source ) .." :#ffFFff " .. text, root, 255, 0, 0, true) cancelEvent ( ) end end end addEventHandler ( "onPlayerChat", getRootElement(), Police )
  15. To output with color codes, you must put the arguments: red, green, blue, before "true".
  16. outputChatBox("#0000FF* [Police] x "..getPlayerName ( source ).." :#ffFFff " .. text, getRootElement(), r, g, b, true ) Is correct.
  17. Again: https://community.multitheftauto.com/ind ... ls&id=6405 And, upload fail: https://community.multitheftauto.com/ind ... ls&id=6402 DONE
  18. Do you want the player teleport to the marker or player who typed the command "event"?
  19. Try this function consoleCreateMarker ( thePlayer, commandName ) if hasObjectPermissionTo ( thePlayer, "command.mute" ) then px, py, pz = getElementPosition ( thePlayer ) if ( theMarker ) then if isElement(theMarker) then destroyElement(theMarker) theMarker = nil end if isElement(blip) then destroyElement(blip) blip = nil end outputChatBox ( "event disabled", thePlayer ) else theMarker = createMarker ( px + 2, py + 2, pz - 1, "cylinder", 1.5, 255, 255, 0, 170 ) blip = createBlipAttachedTo ( theMarker, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior(thePlayer) setElementDimension ( theMarker, dim ) setElementInterior ( theMarker, int) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) addCommandHandler( "eventwarp", function(playerSource) if isElement(theMarker) then setElementPosition(playerSource, pz, py, py) end end ) end end end addCommandHandler ( "evento", consoleCreateMarker )
  20. Resource modified without my permission: https://community.multitheftauto.com/ind ... ls&id=6393 [Original: https://community.multitheftauto.com/ind ... ls&id=4035] DONE
  21. This also happens to me, it's really annoying.
  22. function healthin( thePlayer ) local vehiclee = getPedOccupiedVehicle( thePlayer ) if vehiclee then local health = getElementHealth( vehiclee ) if (health<=500) then outputChatBox("Time For a repair!", thePlayer) else outputChatBox("Your car is fine!", thePlayer) end else outputChatBox("You're not in a vehicle!", thePlayer) end end addCommandHandler("carh", healthin)
  23. Speak in english, nobody will understand you. Use the Portuguese forum: https://forum.multitheftauto.com/viewfor ... b77be81978
×
×
  • Create New...