Jump to content

Duplicar Armas


Recommended Posts

1 minute ago, eoL|Shady said:

ahhh, eu pensei que era mod dayz,Eu preciso fazer uma pesquisa para o modo RPG.

Tranquilo, como faria no mod dayz?? Posso conseguir ter uma ideia através, estava dando uma preocurada vi pessoas falando para colocar a dff e a txd em um objeto e attachar no player e setar as propriedades como da arma.

Link to comment

-- Name, Model / False(Not drop), Scale / False, X Rotation / False, Player Model / False(Not skin), {"InventoryArea",Slots}, {"Weapon Name",ID} / False(Not Ammo), {farm,residential,military,industrial,supermarket} / {false,false,false,false,false} (Not loot), loot chance for crate of 100 / false

{"AK-47",355,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"M4",356,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"AK-KA76",355,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"M512",3551,3,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},

Você pode configurá-los fazendo RPG Config

weaponRangeTable = {

    {30,115}, -- AK-47
    {31,115}, -- M4

}

addEventHandler ( "onClientResourceStart", resourceRoot,
    function ()
        txd = engineLoadTXD ("gun.txd")
        engineImportTXD (txd, 26) --GUNID
        dff = engineLoadDFF ("gun.dff")
        engineReplaceModel (dff, 26) --GUNID
    end
)

o que quero dizer é alterar txd e dff e você pode verificá-los apenas com getElementData

Você pode inserir diferentes números de objetos e pronto.

 

  • Like 1
Link to comment
4 minutes ago, eoL|Shady said:

-- Name, Model / False(Not drop), Scale / False, X Rotation / False, Player Model / False(Not skin), {"InventoryArea",Slots}, {"Weapon Name",ID} / False(Not Ammo), {farm,residential,military,industrial,supermarket} / {false,false,false,false,false} (Not loot), loot chance for crate of 100 / false

{"AK-47",355,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"M4",356,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"AK-KA76",355,1,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},
{"M512",3551,3,90,false,{"Primary Weapon",3},false,{false,false,5,false,false},{20,2}},

Você pode configurá-los fazendo RPG Config

weaponRangeTable = {

    {30,115}, -- AK-47
    {31,115}, -- M4

}

Hmm entendi, vou dar uma olhada.. Vlws cria.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...