Stream Weapons
This tutorial show, how to add/replace custom weapons for your server.
Suggested tools
Creating the resources
- Open
dlc.rpf
and extract all the.meta
files and models/texture (.ydr
/.ytd
)
Weapons add-on
Ready-to-use example resource based on infinity blade model.
Folder structure
weapon_tutorial/
├─ stream/
│ ├─ models/
│ │ ├─ w_me_katana.ydr
│ │ ├─ w_me_katana.ytd
│ ├─ weaponkatana.meta
│ ├─ weaponarchetypes.meta
│ ├─ weaponanimations.meta
├─ resource.toml
├─ stream.toml
resource.toml
type = 'dlc'
main = 'stream.toml'
client-files = [ 'stream/*' ]
stream.toml
files = [ 'stream/assets/*' ]
[meta]
'stream/weaponkatana.meta' = 'WEAPONINFO_FILE'
'stream/weaponanimations.meta' = 'WEAPON_ANIMATIONS_FILE'
'stream/weaponarchetypes.meta' = 'WEAPON_METADATA_FILE'
Weapons replace
Folder structure
weapon_tutorial/
├─ stream/
│ ├─ assets/
│ ├─ assets/models/
│ │ | ├─ w_pe_pistol.ydr
│ │ | ├─ w_pe_pistol.ytd
├─ resource.toml
├─ stream.toml
resource.toml
type = 'dlc',
main = 'stream.toml',
client-files = [ 'stream/*' ]
stream.toml
files = [ 'stream/*' ]
[meta]
Edit weapons damages
- For this example i will take the SMG weapon already available in gta.
- Search the path of the weapon inside gta files (in this example, it's
mpbiker
dlc). - go to
common/data/ai
and openweaponminismg.meta
. - CTRL+F and search for NetworkPlayerDamageModifier and edit the value.
<InitialRumbleDuration value="0" />
<InitialRumbleIntensity value="0.000000" />
<InitialRumbleIntensityTrigger value="0.000000" />
<RumbleDuration value="0" />
<RumbleIntensity value="0.000000" />
<RumbleIntensityTrigger value="0.000000" />
<RumbleDamageIntensity value="1.000000" />
<NetworkPlayerDamageModifier value="1.000000" />
<NetworkPedDamageModifier value="1.000000" />
<NetworkHeadShotPlayerDamageModifier value="1.000000" />
<LockOnRange value="11.500000" />
<WeaponRange value="30.000000" />
<BulletDirectionOffsetInDegrees value="0.000000" />
<AiSoundRange value="-1.000000" />
<AiPotentialBlastEventRange value="-1.000000" />