use setObjectTextureGlobal on a vehicle, will break JIP
clearWeaponCargoGlobal
clearMagazineCargoGlobal
clearItemCargoGlobal
and perhaps other global??
use setObjectTextureGlobal on a vehicle, will break JIP
clearWeaponCargoGlobal
clearMagazineCargoGlobal
clearItemCargoGlobal
and perhaps other global??
_vehicle = "B_MRAP_01_hmg_F"
createvehicle getpos player;
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
// try with or without setObjectTextureGlobal
_vehicle setObjectTextureGlobal[0,"#(argb,8,8,3)color(0.05,0.05,0.05,1)"];
confirmed
execute provided script on client on dedicated server
look in the vehicle's inventory => empty
drop to lobby
back in game
check vehicle's inventory => full
today's dev
This would likely explain the issue we are having with vehicle inventory getting replaced with first aid kits.
After testing it seems that if you set texture before you clear the cargo it works fine.
_vehicle = "B_MRAP_01_hmg_F"
createvehicle getpos player;
_vehicle setObjectTextureGlobal[0,"#(argb,8,8,3)color(0.05,0.05,0.05,1)"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
1.18