Jump to content

Meiestrix

Adding a prefilled backpack to a vehicle inventory (config.cpp)

Recommended Posts

Hi,

I need a little help with the config of a retextured vehicle i made for my community.

To clear up the inventory of the vehicle i want to add a backpack filled with all the ace medic materials.

So i made a "new" backpack which is prefilled with all the stuff, like this:

 

  Reveal hidden contents

 

The backpack works fine when you spawn it in the Editor.

It does not work in the Arsenal (it is empty there) but that is another problem.

 

My retextured vehicle also works fine, but i cant add the prefilled backpack into the inventory of the car.

Normally you can add items to the car inventory with the TransportItems class like this:

  Reveal hidden contents

But this does not work for my prefilled backpack. Ammo etc. works fine.

Does someone know how I can add my prefilled backpack to the inventory of a vehicle?

 

Thanks

 

  • Like 1

Share this post


Link to post
Share on other sites

If someone else has this problem, the solution is that you have to use "class TransportBackpacks" in your car, instead off "class TransportItems".

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×