• 0
DY357LX

Is there a list of "safe" / "approved" vehicles? Custom vehicles seem to explode.

Question

Several of our players were requesting HMG Ifrits at the traders.
So I opened config.cpp in the mission file and added the HMG Ifrit under the normal Ifrit, like this:

class Exile_Car_Ifrit 								{ quality = 1; price = 5000; };
class O_MRAP_02_F                                   { quality = 1; price = 9000; };

I then found the items[] array for Class Cars and added the HMT Ifrit classname as the final entry... with no comma. :)

The trader sold the car to the players just fine... but for some reason, after a restart, the Ifrits started exploding. (Didn't try selling it or selling cargo.)

How do I prevent this please?
Thanks.

1 person likes this

Share this post


Link to post
Share on other sites

6 answers to this question

Advertisement
  • 0

We've added custom vehicles to our server, and we haven't had any vehicles exploding. Although we haven't added those specifically 

Share this post


Link to post
Share on other sites
  • 0
On ‎9‎/‎15‎/‎2015 at 7:31 PM, DY357LX said:

Several of our players were requesting HMG Ifrits at the traders.
So I opened config.cpp in the mission file and added the HMG Ifrit under the normal Ifrit, like this:


class Exile_Car_Ifrit 								{ quality = 1; price = 5000; };
class O_MRAP_02_F                                   { quality = 1; price = 9000; };

I then found the items[] array for Class Cars and added the HMT Ifrit classname as the final entry... with no comma. :)

The trader sold the car to the players just fine... but for some reason, after a restart, the Ifrits started exploding. (Didn't try selling it or selling cargo.)

How do I prevent this please?
Thanks.

Infistar

Add the vehicles to Whitelist.

Share this post


Link to post
Share on other sites
  • 0

Heres my code from my exile_server_config/config.cpp

  1.     ///////////////////////////////////////////////////////////////////////
  2.     // VEHICLE SPAWN CONFIGURATION
  3.     ///////////////////////////////////////////////////////////////////////
  4.  
  5.     class VehicleSpawn
  6.     {
  7.         /**
  8.         * Grid Size for vehicle spawning,
  9.         * smaller the number more vehicles,
  10.         * you get the point
  11.         */
  12.         vehiclesGridSize = 2000;
  13.  
  14.         /**
  15.         * Vehicle ammount per grid
  16.         * kinda self explanitory
  17.         */
  18.         vehiclesGridAmount = 3;
  19.  
  20.         /**
  21.         * Creates global markers for vehicle spawn tweeking,
  22.         * after you are satisfied with vehicle ammount and spread set this to 0.
  23.         */
  24.         vehiclesDebugMarkers = 0;
  25.  
  26.         /**
  27.         * The server will apply random damage up to this value when spawning a vehicle.
  28.         */
  29.         damageChance = 20; // 20% chance for a vehicle HITPOINT to be damaged
  30.         maximumDamage = 0.9;
  31.  
  32.         // Stuff to spawn on water
  33.         water[] =
  34.         {
  35.             "Exile_Boat_MotorBoat_Police",
  36.             "Exile_Boat_MotorBoat_Orange",
  37.             "Exile_Boat_MotorBoat_White",
  38.             "Exile_Boat_RubberDuck_CSAT",
  39.             "Exile_Boat_RubberDuck_Digital",
  40.             "Exile_Boat_RubberDuck_Orange",
  41.             "Exile_Boat_RubberDuck_Blue",
  42.             "Exile_Boat_RubberDuck_Black",
  43.             "Exile_Boat_SDV_CSAT",
  44.             "Exile_Boat_SDV_Digital",
  45.             "Exile_Boat_SDV_Grey"
  46.         };
  47.  
  48.         // Stuff to spawn on roads
  49.         ground[] =
  50.         {
  51.             "Exile_Bike_QuadBike_Black",
  52.             "Exile_Bike_QuadBike_Blue",
  53.             "Exile_Bike_QuadBike_Red",
  54.             "Exile_Bike_QuadBike_White",
  55.             "Exile_Bike_QuadBike_Nato",
  56.             "Exile_Bike_QuadBike_Csat",
  57.             "Exile_Bike_QuadBike_Fia",
  58.             "Exile_Bike_QuadBike_Guerilla01",
  59.             "Exile_Bike_QuadBike_Guerilla02",
  60.             "Exile_Car_Volha_Blue",
  61.             "Exile_Car_Volha_White",
  62.             "Exile_Car_Lada_Green",
  63.             "Exile_Car_Lada_Taxi",
  64.             "Exile_Car_Tempest",
  65.             "Exile_Car_Strider",
  66.             "Exile_Car_Offroad_Armed_Guerilla01",
  67.             "Exile_Car_Ifrit",
  68.             "Exile_Car_Hunter",
  69.             "Exile_Chopper_Taru_Transport_CSAT",
  70.             "Exile_Chopper_Taru_CSAT",
  71.             "Exile_Chopper_Taru_Covered_CSAT",
  72.             "Exile_Chopper_Orca_CSAT",
  73.             "Exile_Chopper_Mohawk_FIA",
  74.             "Exile_Chopper_Huron_Green",
  75.             "Exile_Chopper_Hummingbird_Civillian_Wasp"
  76.         };
  77.  
  78.         /**
  79.          * Enables or disables nightvision optics on ALL vehicles
  80.          *
  81.          * 0 = off
  82.          * 1 = on
  83.          */
  84.         nightVision = 1;
  85.  
  86.         /**
  87.          * Enables or disables thermal optics on ALL vehicles
  88.          *
  89.          * 0 = off
  90.          * 1 = on
  91.          */
  92.         thermalVision = 0;
  93.  
  94.         /**
  95.          * Set this to 1 to unlock vehicles on server boot if they are in safe zones
  96.          *
  97.          * 0 = off
  98.          * 1 = on
  99.          */
  100.         unlockInSafeZonesAfterRestart = 1;
  101.     };

 

it works fine for me and all vehicles i've used are already in the traders

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.