Leaderboard
Popular Content
Showing content with the highest reputation on 05/03/19 in all areas
-
So im gunna be honest, i'm not into writing a book for the forums like most of the other RP servers do, so i'm just going to paste our discord advertisement: Kota Islands Roleplay I'm working on an English roleplay server using a completely custom map (deleted the original GTA SA map). The map features: + custom models personally made by our team + a large diversity of land for whatever your RP entitles + an island-based environment and much more.... We've been working for some time now and making sure we don't miss any details in the script, map, or any other area of development that may interrupt your gameplay. We aim to bring back the original members of RP; the ones from the golden era of Owlgaming, Valhalla gaming and other servers. we promise a non-corrupt, non-biased staff team that is there to help as much as we can, as well as a suitable environment for serious RP. unlike most starting RP servers, we aren't going to tolerate trolls or other people that may interrupt the immersion of another player. While we will allow many things to be done that cant be done on say Owl or other RP servers, we will also have a firm rule list that will be strictly enforced. We hope to see you join our all-English community. Discord: https://discord.gg/FYxd4jR Forums: https://forums.kotarp.com/2 points
-
2 points
-
Putz, estão doando scripts por aqui que eu ajudei a desenvolver... que pena. Como se trata de seu primeiro post, você talvez não saiba a formatação correta que se deve utilizar em nosso fórum. Recomendo que veja este post e saiba de tudo: Um abraço e boa sorte.2 points
-
A simple script of dressable characters and deformable faces. You can move every vertex of the head with a simple displacement shader. The script is in test state right now, I'll create a new editor later. Hope you like it.1 point
-
1 point
-
1 point
-
1 point
-
Não é muito lógico ele deixar de existir, dei uma olhada aqui e notei que e o source só se “perde” na função do setTimer: function teste (enteringPlayer, seat, jacked, door) -- source = veículo (function() print (getElementModel(source)) -- ok end)() setTimer (function () print (getElementModel(source)) -- fail end, 100, 1) end addEventHandler ("onVehicleStartEnter", getRootElement(), teste) As variáveis globais do addEventHandler: this, client, eventName, etc, também deixam de existir. Meu palpite é que no código fonte do setTimer existe algum método resetando essas variáveis (talvez aqui). No caso do tópico em que não existe a variável predefinida source de um evento, mas sim uma variável que foi declarada com o mesmo nome no parâmetro, acaba por não influenciar: addCommandHandler("oie", function(source) setTimer (function () print(source) -- ok end, 100, 1) end )1 point
-
You could try to cancel the damage + set the health manually. (Only if the remaining health is not 0) https://wiki.multitheftauto.com/wiki/OnClientPlayerDamage Not sure if it will work, but good luck.1 point
-
Não é necessário usar a verificação isElementWithinMarker quando vc está no evento onMarkerHit. Em vez de usar uma variável que não existe, como objeto. Verifique se o objeto criado é um elemento ou não. O_M = createObject (615, -1668.99609375, -2233.56640625, 34.166400909424 -1) M_O = createMarker (-1639.974609375, -2245.53515625, 31.4765625 -1, "cylinder", 1.5, 20, 70, 230, 95 ) function Inicio (hitElement) -- Não se usa source como parâmetro de função. if isElement(O_M) then -- Se o objeto que está na variável O_M existe, então: destroyElement(O_M) -- Destrói o objeto. O_M = nil -- É necessário anular a variável do objeto após destruí-lo. end end addEventHandler ("onMarkerHit", M_O, Inicio)1 point
-
O_M = createObject(615, -1668.99609375, -2233.56640625, 34.166400909424 -1) M_O = createMarker (-1639.974609375, -2245.53515625, 31.4765625 -1, "cylinder", 1.5, 20, 70, 230, 95 ) function Inicio(source) if isElementWithinMarker(source, M_O) then if O_M and isElement(O_M) then destroyElement(O_M) end end end addEventHandler("onMarkerHit", M_O, Inicio) Tente isto.1 point
-
1 point
-
Da sim mano, não um gif precisamente mas você pode definir uma rotação pra ficar movimentando a imagem.1 point
-
Dai tu vai ter que enviar uma solicitação pro jogador, Que a base é essa dai..1 point
-
While creating elements: -- on top of the script local boneAttachContainer = createElement("boneAttachContainer", "boneAttachContainer") -- while making objects local object = createObject(...) setElementParent(object, boneAttachContainer) -- on top of the script local validBoneAttachModels = {[2763] = true, [1820] = true, [2708] = true, [15036] = true} -- while pressing key local boneAttachContainer = getElementByID("boneAttachContainer") if boneAttachContainer then local objects = getElementsByType("object", boneAttachContainer, true) for i = 1, #objects do local object = objects[i] local model = getElementModel(object) if validBoneAttachModels[model] then setElementAlpha(object, alpha) end end end You might want to consider using a dirty timer or find an event that will occur at that time.1 point
-
1 point
-
Você pode utilizar Essa função, Recomendo adicionar mais coisas, Pois obviamente isso é apenas o básico pra tu entender function Ver_Money (source, cmd, pname) local Player_2 = getPlayerFromPartialName(pname) -- Nick do jogador "Picado" if isElement(Player_2) then -- Verifica se Player2 -E Um elemento. else -- Caso não for um Elemento Então envia a seguinte mensagem. local Money = getPlayerMoney ( Player_2 ) -- Verifica o Dinheiro Apenas do Jogador 2 outputChatBox (Money, source, 255,255,255,true) end -- FIM end -- FIM addCommandHandler("vermoney", Ver_Money) -------------------------------------------------------------------- function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end -------------------------------------------------------------------- Boa sorte1 point
-
1 point
-
1 point
-
This topic covers how could you add auto complete MTA functions and fast access to the function wiki page in notepad++. Auto Complete And Syntax Highlighting: viewtopic.php?f=91&t=76726 Function Wiki Page: It's easy, it's basically, you select the function, run a command, and it opens the wiki page. 1. Run > Run 2. Type in: https://wiki.multitheftauto.com/wiki/$(CURRENT_WORD) 3. Save it to a bind. 4. Double click a function name in your .lua file, then click the bind. 5. The function's wiki page should open in your default browser now. If you have any questions post them.1 point
-
0 points
-
0 points
-
0 points