Jump to content

[BUG] Limits privatization error

Pending 1.0.4

Namsaknoi

Posted

If the limits are enabled, you can't privatize horses (ridablehorse2) and every time you mount one this error is spammed in the console instead:
 

Failed to call internal hook 'CanMountEntity' on plugin 'XTransportPrivat v1.0.4' [1731456645] (The given key 'ridablehorse2' was not present in the dictionary.)
   at int System.Collections.Generic.Dictionary<string, int>.get_Item(string key)
   at object Oxide.Plugins.XTransportPrivat.CanMountEntity(BasePlayer player, BaseMountable entity) in /home/container/carbon/plugins/XTransportPrivat.cs:line 471
   at object Oxide.Plugins.XTransportPrivat.InternalCallHook(uint hook, object[] args) in XTransportPrivat.cs/Internal:line 42

For now we noticed this only with horses, the other vehicles we tested (motorbikes, cycles, minicopters, cars, etc.) seems to work fine while limits are enabled. Please fix this.
Also if you set the limit to -1 it says "Limit Reached" instead of allowing unlimited amount of the said vehicle. We set the limits high to 100 but please make this possible with -1 for unlimited limits as well.

Monster

Posted

Replace 'testridablehorse' with 'ridablehorse2' in the code and configuration. And test the horses again.

It is also likely that 'ridablehorse2' is missing from the player data.
I will try to update the plugin within a few days.

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.5k

Files Sold

Total number of files sold.

2.4m

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.