Minicopter's spawning with low-grade
I have minicopter population set to 2 in the config so minicopters spawn on roads but I want them to spawn with low-grade in them.
how do I get them to spawn on roads with low-grade in them?
I was told there was a plugin on here but I cant seem to find it.
Thanks

No I dont want to do that, Its a bit to OP for my server to spawn then right next to you.
I am l looking for a plugin that fuels naturally spawning minicopters.
Thanks for the suggestion tho

Google for Vehicle Fuel Manager 0.3.1 and ask if this config option also work for wild spawns. I am not sure but i think so.

"minicopter.entity": {
      "StartingFuel": 0,

 

6NyQazyYAvQZ6be.jpg Lyss

No I dont want to do that, Its a bit to OP for my server to spawn then right next to you.
I am l looking for a plugin that fuels naturally spawning minicopters.
Thanks for the suggestion tho

You could use https://umod.org/plugins/air-fuel   with a simple edit  

 if(vehicle.creatorEntity == null)
{
 return;
}

To

 if(vehicle.creatorEntity != null)
{
 return;
}

Doesnt seem to work for me (This is after server restart and plugin loads without errors)

to verify its working type    spawn minicopter in f1    and see if has fule  any mini that was already spawn will no have fule only new spawned on road ones should.

Merged post

If that dont work edit the cs and replace all with 

using System;

namespace Oxide.Plugins
{
    [Info("Air Fuel", "WhiteDragon", "1.0.0")]
    [Description("Sets the initial amount of fuel for vendor purchased air vehicles.")]
    public class AirFuel : CovalencePlugin
    {
        #region _hooks_
        private void OnEntitySpawned(Minicopter vehicle)
        {
            NextTick(() =>
            {
                if (vehicle.creatorEntity == null)
                {
                    return;
                }

                var fuelsystem = vehicle?.GetFuelSystem();
                if (fuelsystem != null)
                {
                    var fuelAmount = 100;  //edit this to change amount

                    var fuelItem = fuelsystem.GetFuelItem();
                    if (fuelItem != null && fuelItem.amount != fuelAmount)
                    {
                        fuelItem.amount = fuelAmount;
                        fuelItem.MarkDirty();
                    }
                }
            });
        }     
        #endregion _hooks_
    }​


Merged post

Ops make sure ya change
if (vehicle.creatorEntity == null)​

to

if (vehicle.creatorEntity != null)

Hello,

I made these changes but I still seem to be getting an error?
Not sure what it means by line 36, Ive checked for ghost spaces etc cant find anything


looks like ya missing the } at the end of the file my bad

using System;

namespace Oxide.Plugins
{
    [Info("Air Fuel", "WhiteDragon", "1.0.0")]
    [Description("Sets the initial amount of fuel for vendor purchased air vehicles.")]
    public class AirFuel : CovalencePlugin
    {
        #region _hooks_
        private void OnEntitySpawned(Minicopter vehicle)
        {
            NextTick(() =>
            {
                if (vehicle.creatorEntity != null)
                {
                    return;
                }

                var fuelsystem = vehicle?.GetFuelSystem();
                if (fuelsystem != null)
                {
                    var fuelAmount = 100;  //edit this to change amount

                    var fuelItem = fuelsystem.GetFuelItem();
                    if (fuelItem != null && fuelItem.amount != fuelAmount)
                    {
                        fuelItem.amount = fuelAmount;
                        fuelItem.MarkDirty();
                    }
                }
            });
        }
        #endregion _hooks_
    }
}​

Hello,
The plugin seems to reload correctly now but still doesnt put low-grade fuel in minicopters (I was spawning them in via the f1 console not finding already genorated ones). Would this require a server restart for the changes to take effect?
Also I am running https://umod.org/plugins/spawn-mini, https://umod.org/plugins/minicopter-seating and https://umod.org/plugins/mini-copter-options, Would it be possible these plugins are interfeating with this one?



Sorry i tested this now here ya go..

using System;

namespace Oxide.Plugins
{
    [Info("Air Fuel", "WhiteDragon", "1.0.0")]
    [Description("Sets the initial amount of fuel for vendor purchased air vehicles.")]
    public class AirFuel : CovalencePlugin
    {
        #region _hooks_
        private void OnEntitySpawned(Minicopter vehicle)
        {
            NextTick(() =>
            {
                if (vehicle.creatorEntity != null)
                {
                    return;
                }

                var fuelsystem = vehicle?.GetFuelSystem();
                if (fuelsystem != null)
                {
                    fuelsystem.AdminAddFuel();

                    var fuelAmount = 100;  //edit this to change amount

                    var fuelItem = fuelsystem.GetFuelItem();
                    if (fuelItem != null && fuelItem.amount != fuelAmount)
                    {
                        fuelItem.amount = fuelAmount;
                        fuelItem.MarkDirty();
                    }
                }
            });
        }
        #endregion _hooks_
    }
}​

Thank you so much!!!
I was racking my brain over this before I asked here on UMod about this haha
fr like thank you so much <3