Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/12/18 in all areas

  1. É muito mais leve simplesmente setar o alpha dos objetos do que ficar carregando texturas transparentes.
    2 points
  2. Você troca a skin de um objeto qualquer que não é muito utilizado (por exemplo as fichas de cassino) para a skin modificada da arma, usando as funções engineImportTXD, engineLoadDFF, engineLoadTXD e engineReplaceModel. Quando o jogador compra essa arma, você faz a arma original dele ficar invisível com setElementAlpha e anexa o objeto com a skin modificada na arma invisível do jogador. Ele vai continuar usando a arma original normalmente, mas terá a skin nova no lugar.
    2 points
  3. https://wiki.multitheftauto.com/wiki/EngineLoadIFP https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation
    1 point
  4. 1. Indente o código para ficar mais legível e fácil de entender o que cada parte faz, leia esse artigo na wikipedia: Sobre Indentação Então ficaria assim: local veh = {} function showPanellr (thePlayer) local acc = getPlayerAccount (thePlayer) if isObjectInACLGroup ( "user." ..getAccountName(acc), aclGetGroup ("surpresa")) then triggerClientEvent(thePlayer, "painelrota", getRootElement()) end end function onResStartlr () for index, player in ipairs(getElementsByType("player")) do bindKey(player, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStartlr) function onPlayerJoinlr () bindKey(source, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoinlr) function cleanAlllr (player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAlllr) function playTheSound () soundinside = playSound3D("natal.mp3", source, 255, 255, 255,true) setElementInterior(soundinside, 2) setElementDimension(soundinside, 5) setSoundVolume(soundinside, 1) setSoundMinDistance(soundinside, 17) setSoundMaxDistance(soundinside, 100) soundout = playSound3D("natal.mp3", source, 255, 255, 255,true) setSoundVolume(soundout, 1) setSoundMinDistance(soundout, 17) setSoundMaxDistance(soundout, 100) end 2. Crie a ACL 'surpresa' na sua ACL pelo painel P, ou pela ACL mesmo.
    1 point
  5. Nossa. Nunca imaginei usar setElementAlpha para fazer isso. Eu fiz diferente o meu sistema de skins de armas: criei uma textura e um modelo invisível e substituí todas as armas por ela. Sendo assim, depois é só criar o objeto da arma em minha mão e attachar.
    1 point
  6. Brasil Vida Popular (BvP) Brasileiros Vivendo na Profissão (BvP) Grand Theft Auto - Factions (GTA - Factions) [Esse não pode pois é o nome do meu server local, xD] Grande Tráfico de Armas - Brasil (GTA - BR) Clube dos Profissionais (CdP) Brasil Vida Virtual (BvV) Brasil Vida Real (BvR) [Esse nome é famoso e todos querem usar, provavelmente já está em uso agora] Realidade Brasileira (RB) Não sei quais dos nomes acima estão em uso, verifique antes.
    1 point
  7. @Jupiter @justboy @aLRsHide @#,~BLaaaCK @a7zan
    0 points
  8. لا أحـد كلهم أصدقاء الكترونيون لا ينفعون ولا يضرون ( بالنسبة لي ) ا
    0 points
×
×
  • Create New...