[help] how to make add on tanks gun work

hi there community i used a tank add on from gta 5 mods but i cant figure out how to make the gun work i can drive it and all the other things but it wont let me use the gun

the mod i used : T-55A / T-55AM-1 [Add-On | Tuning] - GTA5-Mods.com

Hope some of you know how to fix this problem

this is my __resource.lua if you need it to see what i did wrong

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

files {
‘vehicles.meta’,
‘carvariations.meta’,
‘carcols.meta’,
‘handling.meta’,
‘vehiclelayouts.meta’,
‘vehicleweapons_t55a.meta’,
‘explosion.meta’,
‘weaponarchetypes.meta’
}

data_file ‘HANDLING_FILE’ ‘handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘vehicles.meta’
data_file ‘CARCOLS_FILE’ ‘carcols.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘carvariations.meta’
data_file ‘VEHICLE_LAYOUTS_FILE’ ‘vehiclelayouts.meta’
data_file ‘WEAPON_FILE’ ‘vehicleweapons_t55a.meta’
data_file ‘EXPLOSION_FILE’ ‘explosion.meta’
data_file ‘WEAPONARCH_FILE’ ‘weaponarchetypes.meta’

any luck on this?

I think I see the problem. Check this out

data_file ‘HANDLING_FILE’ ‘handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘vehicles.meta’
data_file ‘CARCOLS_FILE’ ‘carcols.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘carvariations.meta’
data_file ‘VEHICLE_LAYOUTS_FILE’ ‘vehiclelayouts.meta’
data_file ‘WEAPON_FILE’ ‘vehicleweapons_t55a.meta’
data_file ‘EXPLOSION_FILE’ ‘explosion.meta’
data_file ‘WEAPONARCH_FILE’ ‘weaponarchetypes.meta’

This may be due to the last 3 lines in your resource.lua / fxmanifest.lua

FROM MY SEARCH (aka a disclaimer saying I MAY BE WRONG BUT…)

‘WEAPON_FILE’, 
‘EXPLOSION_FILE’, and 
‘WEAPONARCH_FILE’

Don’t seem like legitimate rockstar datafiles. They may work in the singleplayer mod world, but they won’t work in the fiveM universe…Not too sure why…hmmm :thinking:

Anyways, the filetypes for each file is as follows:

'WEAPONINFO_FILE' --I THINK! This may also either be 'WEAPONCOMPONENTSINFO_FILE'
'EXPLOSION_INFO_FILE'
and
'WEAPON_METADATA_FILE'

Now where did I get this information?

You know how you’re browsing in OpenIV and happen upon a couple of content.xml files? Well believe it or not, these files (content.xml) have the data you’re looking for (usually) → It varies by where you find it. For example, the beach dlc may have different data files than the lowriders dlc.
Source:
Thanks @nta!

Finding this data the easy way

You may wanna bookmark this page for future reference as it has all of the data types available for you to reference in your resources:

https://docs.■■■■.mp/gta/articles/references/data-files.html

(Remember - Streaming / map files aren’t necessary to specify here and probably wont work!)

Remember, each file here serves a specific purpose in ‘telling the vehicle how to act’ - Some files aren’t necessary for every modded vehicle resource, yet some are. My advice is always to play with the files, remove stuff, add stuff and just watch what happens!

Hope this helps! If not, you still learned something! :supervillain:

life saver this works!!!

Great to know buddy! Learning about the structure of the files, and the data within them can not only help you, but you can help others as well! Glad I was able to help for a change! :smiley: