You either use AVS on it's own or this script with Bones's rearm script. This script allows ammo saving to the database for other vehicle rearm scripts. But, AVS already includes ammo saving to the database. So, you shouldn't use this script with AVS.

As has been said before, for people using extDB3 just remove these lines below from the 2 new blocks that will merge into the exile.ini
Number Of Inputs =
so, it looks like this:
[getVehicleAmmo]
SQL1_1 = SELECT ammo FROM vehicle WHERE id = ?
SQL1_INPUTS = 1
OUTPUT = 1
[setVehicleAmmo]
SQL1_1= UPDATE vehicle SET ammo = ? WHERE id = ?
SQL1_INPUTS = 1,2

Eh? That doesn't make sense... So how did you 'tell it' what mods you added......?
When you add new mods to your server, it can take a little while and a restart of a3launcher before a3launcher reflects the correct mods.
But, that is done automatically by a3launcher.

@Bones51 I've updated your git with one new issue and closed my previous issues. I am only getting one of the rpt errors posted above by @dima054 and I'm also running extDB3. I'm not convinced this final error is extDB3 related as it's telling us it's just an undefined variable.
8:00:48 Error in expression <ject setVehicleAmmoDef 0;
if (typeName _savedMagazines isEqualTo "ARRAY") then
>
8:00:48 Error position: <_savedMagazines isEqualTo "ARRAY") then
>
8:00:48 Error Undefined variable in expression: _savedmagazines
8:00:48 File exile_server\code\ExileServer_object_vehicle_database_load.sqf, line 112
However, the good news is that apart from this final rpt error above and with the proposed change to the init call (the other open issue on the git) this seems to be working as expected. Thanks

About Exile Arma 3 Mod

It is the year 2039. After the resource depleting conflict in Greece, Europe suffers from a new deflation crisis, leading the crime rate to a new peak in history. Members of the North Atlantic Treaty Organization Security Council are forced to react. Being a desperate alternative to overcrowded and prohibitive prisons, offenders are now being sent to EXILE.