The solution you need is right here. Have a look at the “getItemyWeight(item)” function. From there should be straightforward. I implemented this into my own trunk script which allows the player to deposit/withdraw weapons with ammo.
The solution you need is right here. Have a look at the “getItemyWeight(item)” function. From there should be straightforward. I implemented this into my own trunk script which allows the player to deposit/withdraw weapons with ammo.