Jump to content
"Chat with other server owners and creators on our Discord! Join us at discord.gg/codefling ×

Spamming in console

Closed 0.4.8 0.4.9

Failed to call hook 'OnPlayerInput' on plugin 'MyMiniCopter v0.4.8' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.MyMiniCopter.OnPlayerInput (BasePlayer player, InputState input) [0x00142] in :0 at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001d7] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Share this comment


Link to comment

{
  "Global": {
    "allowWhenBlocked": false,
    "allowRespawnWhenActive": true,
    "useCooldown": false,
    "useNoEscape": false,
    "useFriends": false,
    "useClans": false,
    "useTeams": false,
    "copterDecay": false,
    "allowDamage": true,
    "killOnSleep": true,
    "allowFuelIfUnlimited": false,
    "allowDriverDismountWhileFlying": false,
    "allowPassengerDismountWhileFlying": true,
    "debug": false,
    "StopEngineOnGMini": false,
    "stdFuelConsumption": 0,
    "cooldownmin": 60,
    "mindistance": 0,
    "gminidistance": 0,
    "minDismountHeight": 7,
    "startingFuel": 1,
    "Prefix": "[My MiniCopter]: ",
    "TimedHover": false,
    "DisableHoverOnDismount": true,
    "EnableRotationOnHover": true,
    "PassengerCanToggleHover": false,
    "HoverWithoutEngine": false,
    "UseFuelOnHover": false,
    "HoverDuration": 60,
    "UseKeystrokeForHover": true,
    "HoverKey": 134217728
  },
  "Version": {
    "Major": 0,
    "Minor": 4,
    "Patch": 8
  },
  "VIPSettings": {
    "myminicopter.viplevel1": {
      "unlimited": false,
      "canloot": true,
      "stdFuelConsumption": 0,
      "startingFuel": 1,
      "cooldownmin": 5,
      "mindistance": 0,
      "gminidistance": 0
    }
  }
}

Share this comment


Link to comment

If you can, try adding this around line 279 in the plugin (not config) as follows:

    BaseHelicopterVehicle mini = player.GetMountedVehicle() as BaseHelicopterVehicle;
    if (mini == null) return; // Add this line
    if (storedData.playerminiID.ContainsKey(player.userID) && mini.net.ID == storedData.playerminiID[player.userID])

Otherwise, wait for the next update...

Edited by RFC1920

Share this comment


Link to comment
648.1k

Downloads

Total number of downloads.

3.6k

Customers

Total customers served.

48.2k

Files Sold

Total number of files sold.

866.7k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.