red_ned

Adding poptabs to crates for mission?

3 posts in this topic

Anyone happen to know how I can add tabs into a crate or vehicle as I want to use it in some new missions I am writing.

 

cheers

Share this post


Link to post
Share on other sites

I use this syntax:

_vehicle = createVehicle ["Exile_Container_Storagecrate", [13845.2,21643.4,0.1], [], 0, "CAN_COLLIDE"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
_vehicle setVariable ["ExileMoney", 10,true];

Change the container type from "Exile_Container_Storagecrate" to whatever you want.  Adjust it's position as needed.

Change _vehicle setVariable ["ExileMoney", 10,true];  where 10 is the amount of tabs you want to put in the container.  Be sure not to overfill the container.

1 person likes this

Share this post


Link to post
Share on other sites
16 minutes ago, BlackheartsGaming said:

I use this syntax:

_vehicle = createVehicle ["Exile_Container_Storagecrate", [13845.2,21643.4,0.1], [], 0, "CAN_COLLIDE"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
_vehicle setVariable ["ExileMoney", 10,true];

Change the container type from "Exile_Container_Storagecrate" to whatever you want.  Adjust it's position as needed.

Change _vehicle setVariable ["ExileMoney", 10,true];  where 10 is the amount of tabs you want to put in the container.  Be sure not to overfill the container.

cheers, I was ok at loading items but couldn't find anything about tabs

this helps me a load so thanks

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.