Sign in to follow this  
Taxi

Spawning a Quad bike as bambi

5 posts in this topic

Hey guys,

What i want is: You spawn as a bambi (with ductape/extension cord in your inventory), you open the XM8 app, you click on the button extra's and you can spawn a quadbike. I just can't seem to figure out how to make a bambi able to spawn a quadbike with the XM8 app. Is there anyone who does know how to program this?

Share this post


Link to post
Share on other sites
Advertisement
1 hour ago, Taxi said:

I don't see anything about spawning a Quadbike as a bambi..?

That's because you didn't look hard enough.

https://github.com/Bjanski/ExAd/blob/master/mpmissions/Exile.Altis/config.cpp

 

class ExAd_Quad
	{
		title = "Deploy Quad";
		bambiState = 0;
		vehicleClass = "Exile_Bike_QuadBike_Fia";
		recipe[] = {{"Exile_Item_ExtensionCord",1}};
		packable = 1;
		quickFunction = "['ExAd_Quad'] call ExAd_XM8_DV_fnc_spawnVehicle";
	};

Changing bambiState to a 1 makes it so you can only spawn it if you are a bambi.

Edited by Beowulfv
  • Like 1

Share this post


Link to post
Share on other sites
31 minutes ago, Beowulfv said:

That's because you did look hard enough.

https://github.com/Bjanski/ExAd/blob/master/mpmissions/Exile.Altis/config.cpp

 


class ExAd_Quad
	{
		title = "Deploy Quad";
		bambiState = 0;
		vehicleClass = "Exile_Bike_QuadBike_Fia";
		recipe[] = {{"Exile_Item_ExtensionCord",1}};
		packable = 1;
		quickFunction = "['ExAd_Quad'] call ExAd_XM8_DV_fnc_spawnVehicle";
	};

Changing bambiState to a 1 makes it so you can only spawn it if you are a bambi.

Sorry i did a quick scan, thought i could find something about it in the Readme file. Thank you so much!

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.