Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/06/20 in all areas

  1. I found the resource that triggers it and it was one I was not expecting. thanks for the help
    1 point
  2. local position = "15,20,18" local x, y, z = unpack(split(position, ","))
    1 point
  3. 1 point
  4. function deluxe ( ) local player = client addEventHandler doesn't work the same as the addCommandHandler. Use the predefined variable `client`, to get the player that did activate the event.
    1 point
  5. function getPlayersByElementData(key) local cache = {} for i, v in pairs(getElementsByType("player")) do local data = getElementData(v, key) if data then cache[#cache + 1] = v end end return cache end Use essa função para obter os jogadores que possuem determinada elementData.
    1 point
  6. Boa noite, comunidade. Esse é o meu primeiro tópico, então caso esteja cometendo alguma infração, por favor, me corrijam. Trago a vocês um convite para participarem de um projeto ainda em fase embrionária, o MTA:SA - Star Wars Project. Como o nome sugere, o servidor será ambientado no universo de Star Wars, próximo dos acontecidos do Episódio 7. O player terá a oportunidade de escolher juntar-se as fileiras da Primeira Ordem ou à Resistência, e, de acordo com seu nível, poderá desbloquear novas classes e habilidades. Por exemplo, um player que escolher iniciar como Trooper, ao conquistar um nível X, poderá escolher entre uma variedade de especialidades, como Scouttrooper, Flametrooper e entre tantas as variantes possíveis. Aos players que escolherem o caminho Sith ou Jedi, com o passar do tempo, será possível aperfeiçoar seu controle sobre A Força (Representada no game pela capacidade de alterar a gravidade de objetos e jogadores ao redor, como a Gravity Gun presente na biblioteca de resources do MTA) Pretendemos também oferecer diversas variações de sabres de luz, blasters, armaduras e naves. Até o momento, nossa equipe de desenvolvimento conta apenas com duas pessoas, e por isso, vim anunciar aos interessados que estamos procurando desenvolvedores para o projeto! Não há muitos requisitos, visto que somos amadores, mas procuramos todo tipo de ajuda: desde mappers, programadores, administradores ou simplesmente com sugestões. É preferível uma certa noção de inglês, visto que temos interesse em expandir o projeto para além da comunidade brasileira. Espero que gostem da ideia, e caso tenham interesse, podem responder aqui ou entrar em contato pelo Discord: Volkov#8171 Grato pela leitura! ?
    1 point
  7. function pairsByKeys (t,neg) local neg = neg or false local a = {} local s = {} for n in pairs(t) do table.insert(a,(neg and string.lower(n) ) or n) if (neg and string.sub(n,1,1) == string.upper(string.sub(n,1,1)) ) then s[string.lower(n)]=n end end table.sort(a) local i = 0 local iter = function () i = i + 1 if a[i] == nil then return nil else if (neg and s[a[i]] ) then return s[a[i]],t[s[a[i]]] else return a[i], t[a[i]] end end end return iter end example: local ta={ ['F']='hi', ['g'] = 'hello', ['a'] = 'yes', ['b'] = 'no', } --usage num 1 for k,v in pairsByKeys (t) do print(k,v) --[[ output F - hi a - yes b - no g - hello ]]-- end --usage num 2 neglecting letter case for k,v in pairsByKeys (t,true) do print(k,v) --[[ output a - yes b - no F - hi g - hello ]]-- end
    1 point
  8. That's the low LOD model as it seems. Please try inserting this into your removeWorldObject line: model="5681" lodModel="5535" Replace the ID's with the ID's of your object. Normally the lodModel ID is around 1 higher or lower than the regular model To find the LOD: 1. Go into map editor 2. Press F 3. Press 'remove world object' button on bottom of screen 4. Hover over the world object you want to remove 5. It displays Model ID and LOD ID. 6. Copy the LOD ID into your removeWorldObject line. @enzoDs
    1 point
×
×
  • Create New...