Persistence = 1
gametype = Unknown
Version = 1.11.114344
clearItemCargoGlobal works for the first player to join the server. If player goes to the lobby and back it causes inventory to have 6 x FirstAidKits in it again.
Persistence = 1
gametype = Unknown
Version = 1.11.114344
clearItemCargoGlobal works for the first player to join the server. If player goes to the lobby and back it causes inventory to have 6 x FirstAidKits in it again.
version = 1.11.114344
persistence = 1
gamemode = Unknown
Either situation causes it:
Local EXEC:
_vehicle = createVehicle ["C_Offroad_01_F", position player, [], 0, "NONE"];
clearItemCargoGlobal _vehicle;
Server EXEC:
_vehicle = createVehicle ["C_Offroad_01_F", [14939.6,16491,0.00143814], [], 0, "NONE"]; clearItemCargoGlobal _vehicle;
After vehicle spawn check it's inventory and it will be empty then log to lobby and back again and the vehicle will have 6 x FirstAidKits in it.
Client shows the items:
INV = getItemCargo cursortarget;
INV RESULT: [["FirstAidKit"],[6]]
Server shows the inventory is empty:
Local EXEC (while looking at vehicle with free FirstAidKits as mentioned above):
VEH1 = cursortarget; publicVariableServer "VEH1"
Server EXEC
INV = getItemCargo VEH1; publicVariable "INV"
INV RESULT: [[],[]]