Jump to content

Santi

Members
  • Posts

    23
  • Joined

  • Last visited

2 Followers

Details

  • Location
    Brazil

Recent Profile Visitors

1,186 profile views

Santi's Achievements

Civilian

Civilian (7/54)

4

Reputation

  1. Existe sim. Tem alguns exemplos de como aplicar isso para funções e eventos. https://wiki.multitheftauto.com/wiki/AddDebugHook
  2. I'm using it but the objects are becoming invisible or coming out of the bone. Edit: The server has more than 200 players. Then the objects leave the bone without explanation.
  3. https://wiki.multitheftauto.com/wiki/IsElementInWater
  4. What's up, Steve! About your interior customizing system. Did any Brazilian server bougth from you? If so, which ones?

    1. </Steve>

      </Steve>

      Please contact me in private message for further informations.

  5. Vai ter que ser algo mais ou menos isso: addEventHandler('onClientResourceStart', resourceRoot, function() local ped = createPed( id, x, y, z ) addEventHandler( 'onClientPedDamage', ped, function( attacker ) cancelEvent() end end Se quiser saber mais sobre, você pode ir na wiki. https://wiki.multitheftauto.com/wiki/OnClientPedDamage
  6. Isso ocorre muito por causa da sua conexão (provedor e etc) e também quando você usa alguma ferramenta de mudanças de rota como exitlag, noping, wtfast e por aí vai.
  7. Sem código, sem ajuda. Você deveria mostrar em qual parte do seu código acontece isso dos veículos e ser mais explícito em relação a sua lógica de raciocínio.
  8. Isso foi respondido há pouco tempo.
  9. Tente passar o fuel para tonumber(fuel) na linha 16
  10. You're posting this in the wrong session. This should be posted on the Portuguese forum. Lugar incorreto de postar, amigo. Você deveria na sessão em Português. https://forum.multitheftauto.com/forum/97-portuguese-português/
  11. O client trabalha para o servidor. Creio eu que a partir do momento que o server-side desliga, o client-side é desligado primeiro que ele porque o client-side só funciona se o server-side estiver ligado. Você bem que poderia salvar essa quilometragem quando o jogador sair do veículo no client. https://wiki.multitheftauto.com/wiki/OnClientPlayerVehicleExit
  12. function hex2rgb (hex) local hex = hex:gsub("#","") if hex:len() == 3 then return (tonumber("0x"..hex:sub(1,1))*17)/255, (tonumber("0x"..hex:sub(2,2))*17)/255, (tonumber("0x"..hex:sub(3,3))*17)/255 else return tonumber("0x"..hex:sub(1,2))/255, tonumber("0x"..hex:sub(3,4))/255, tonumber("0x"..hex:sub(5,6))/255 end end -- exemple usage: (NOT TESTED the command) but the function works fine addEventHandler("onPlayerCommand",root, function(command, player) if (command == "convert") then outputConsole("Result: " .. hex2rgb("#ffffff"),player) end end)
  13. Já existe sim. Se você procurar direitinho em sites como por exemplo o MTA Brasil ou algum outro site.
×
×
  • Create New...