Well I’ve been trying this without success, I hope someone can give me some insight on this.
I’m trying to make all cops use tazers instead of pistols, to do so I have edited the loadouts.meta
data file like this; replaced all WEAPON_PISTOL
for WEAPON_STUNGUN
(just to see if it works). Resulting file: https://hastebin.com/lapujokozu.xml
I placed the loadouts.meta
in a data
directory and have this in my fxmanifest.lua
:
---------------------------------- [ FILES ] ----------------------------------
files {
'data/handling.meta',
'data/popgroups.ymt',
'data/popcycle.dat',
'data/loadouts.meta'
}
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'FIVEM_LOVES_YOU_341B23A2F0E0F131' 'data/popgroups.ymt'
data_file 'POPSCHED_FILE' 'data/popcycle.dat'
data_file 'LOADOUTS_FILE' 'data/loadouts.meta'
-------------------------------------------------------------------------------
As you can see, data/loadouts.meta
is there and should be streamed to the clients.
Well… it’s not, or at least it’s not working at all, gangs, cops and everything that should now use a tazer are still using pistols.
If someone knows how to properly work with loadouts or a way to debug on the client if a file is being streamed or not, please send help.