Firearm serial number tracking script

Hi, I I’m looking for a script that tracks firearm serial numbers so if a gun is bought from another player it can be tracked back to them if they bought it, and if someone has a firearms license the gun must be theirs. Hopefully you understand what I mean. and maybe a way to scrape off the number too.
I’ve been trying to create the script recently and ended up scrapping it.
If anyone knows of a similar beta script which needs work or a script closer to what I’m looking for can someone link it please?

Thanks.

1 Like

https://forum.cfx.re/search

I have searched and couldn’t find one, hence why I tried making my own before making a post…

don’t know the possibilities on FiveM yet. The only way I can think of doing this is creating a new table in your database. Ex: playerWeapons and adding a new row in your playerAccounts table ex (Or you can do without one up to you.): playerOwnedWeapons.

for playerWeapons you’d want something like:

ID
weaponType
weaponAmmo
WeaponSerial
weaponMod1
weaponMod2
etc…
and more as needed.

do a leftjoin or an innerjoin with sql depending on how you decide to do the tables. From there you should know what to do.

Looking for same thing

2 Likes