Jump to content

Governador

Members
  • Posts

    4
  • Joined

  • Last visited

Governador's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Blz pessoal? Baixei essa resource aq, q enquanto o player está com uma arma na mão, a outra aparece nas costas, fica uma bagunça grande, pois quanto mais armas, mais armas nas costas ;/. Alguém pode vê o código baixando o arquivo e me ensinar como restringir pra somente a shotgun, sniper, ak47 e deagle ficar colada no player? Abraço! Grato! Aí está o arquivo: https://community.multitheftauto.com/index.php?p= ... includes=1
  2. Então no caso ficaria como, se fosse pra adaptar como falei? E qual a função q se usa para um player próximo? Grato!
  3. vlws lekao! ^^ rs vou testar aq, qualquer coisa aviso. @EDIT function playerUseItem(itemName, itemInfo) if itemInfo == "Beber" then local soundX,soundY,soundZ = getElementPosition(getLocalPlayer()) local som = playSound3D("sounds/bebendo.ogg", soundX, soundY, soundZ) triggerServerEvent("onPlayerRequestChangingStats", getLocalPlayer(), itemName, itemInfo, "thirst") setSoundMaxDistance(som, 15) Aí lek, testei e tals com um parça aq, mais aí só quem ouve é quem executa a ação.
  4. Eaê pessou, joia? Seguindo, eu kria saber adaptar isso aq: local x,y,z = getElementPosition(getLocalPlayer()) local som = playSound3D("caminho", x,y,z) setSoundMaxDistance( som, 30 ) para pôr juntamente com essa função: if itemName == "repairvehicle" then local col = getElementData(getLocalPlayer(), "currentCol") triggerServerEvent("repairVehicle", getLocalPlayer(), getElementData(col, "parent")) playSound("sounds/repair.mp3") disableMenu() return end tipo, seguinte, quem tá próximo, irá escutar a ação q 1 player individualmente executar, entendem? Grato!
×
×
  • Create New...