Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/02/21 in Posts

  1. Consegui arrumar aqui, o problema era no outro mod da area verde que eu tinha aqui no servidor. Vlw pela ajuda q tu me deu pra arrumar esse script, sozinho eu n ia conseguir isso nunca kk
    1 point
  2. Para setar armas dentro de alguma área, você pode utilizar createMarker -- para criar a "área" giveWeapon -- para dar a arma onMarkerHit -- para quando o jogador entrar no marker/área executar a função de dar a arma
    1 point
  3. Olá. Seja bem-vindo(a) ao fórum. Os parâmetros de callback da função addCommandHandler estão errados. O primeiro, está correto, é sim o jogador. O segundo parâmetro recebe o comando, no caso ele está recebendo o fr, por isso a mensagem sempre aparece sendo fr. Se você quer pegar a "mensagem", é necessário que você receba todos os parâmetros, usando ..., e, depois, concatenar usando table.concat. function rpMessage(player, cmd, ...) local text = table.concat({...}, " ") end addCommandHandler("fr", rpMessage)
    1 point
  4. The lenghts to which some people go to appear like a perfectly normal, innocent player keeps amazing me. Your story does nothing, because we know you're lying. Things you tried are already detected. You are serving as a tester for the cheat developer from https://forum.multitheftauto.com/topic/129276-banned-trainer/ You came to MTA purely for testing his stuff and therefore with the intention of assisting him to ruin a game with cheats, this makes you no longer welcome on MTA. Ban appeal denied, but nice try @livetorise
    1 point
  5. I always recommend using default MTA variables like root instead of getRootElement() as it’s faster
    1 point
  6. Não precisa responder à essa minha resposta. Você pode continuar postando aqui, sem problema algum. Porém, poste as coisas com mais detalhes para que a quantidade de informação seja usada em respostas futuras. Junte o máximo que conseguir: erros, imagens, vídeos (se possível), arquivos do resource e outros. Organize o seu tópico de uma maneira que seja legível, também. ?
    1 point
  7. Você tem que colocar se o painel está true ou false exemplo: if painel == true then if isMouseInPosition(screenW * 0.3133, screenH * 0.4102, screenW * 0.3969, screenH * 0.4883) then com isso só vai poder clicar quando o painel estiver true. No caso quando estiver aberto.
    1 point
  8. 33 SD. Disallow software of the category 'Net limiter' (ideal for lagswitching or causing structural lag, but may also be used for benign purposes). While working on notifications about non-standard GTA San Andreas. Noticed that I have AC Detect # 33. But I did not install any of the programs listed here (https://updatesa.multitheftauto.com/sa/trouble/?tr=netlimiter). GIGABYTE Aorus motherboard. Maybe there are some other programs that need to be removed or not?
    1 point
  9. This is a simple dxGUI library. With the ability to describe your interface in a table. The library has just begun its development and, I would like you to participate in its development too. The idea behind this is that the library can be easily exported via loadstring and used in your code. Also, have a minimum set of functions and a minimum of code to implement a simple interface. Plans for further changes: 1. Come up with local and global functions as well as rename old functions. (for the entire style sheet or for an object in the interface table). 2. Change synchronization in style sheets, object table and interface table with sorted table. 3. Simplify the code. e.g styles. 4. Add simple animations like fade window and so on. Link: https://github.com/XaskeL/SimpleUI/ #Wiki: 1. return index = baseUI.Construction(index, dx, dy, position, gui) — index: Name of The name of your interface table (must be unique). — dx,dy: Developer screen resolution. (the one who constructs the interface). — position: Position in the table. This type: { x = 0; y = 0; w = 0; h = 0; } — gui: Here you describe your objects. Also in the table with records. { p = LAYER_NUMBER (1..N), type = 'OBJECT TYPE', x = 0, y = 0, w = 0, h = 0, color = tocolor(255, 255, 255, 255) }; Example: background = { p = 1, type = 'image', x = 0, y = 0, w = 740, h = 638, image = 'assets/images/background.png', color = WHITE }; { p = 2, type = 'image', x = 20+(160-82)/2, y = 60+15, w = 82, h = 70, image = 'assets/images/icons/1.png', color = WHITE }; 2. return table = baseUI.GetScale(index); — Returns a size table with a resolution difference. local scale = baseUI.GetScale(UI); 3. baseUI.SetScale(index, scale.x, scale.y); — sets the size of items relative to the screen. 4. baseUI.SetAlign(index, 'center', 'center'); — sets the position of the interface relative to the position on the screen: left, top, bottom, right
    1 point
×
×
  • Create New...