Jump to content

small conflict with CustomPortals

Fixed 0.1.4 Next Version

Kobani
Kobani

Posted

Is it possible to prevent the UI for placing terminals from being displayed when placing a portal with CustomPortals?

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted (edited)

@Kobani

Hello, unfortunately, I don’t have access to the CustomPortals plugin and as I understand, this plugin uses vending machines to create portals.
Since I don’t have access to this plugin, could you please check it yourself by modifying one method(hook) in the plugin?

You need to open the vDelivery.cs file with any text editor and at line 573 find the method OnEntitySpawned, then completely replace it with the following method:

void OnEntitySpawned(VendingMachine vending)
{
    if (!vending.OwnerID.IsSteamId() || !_storedData.PlayersData.TryGetValue(vending.OwnerID, out var playerData)) return;
    NextTick(() =>
    {
        if (vending == null || !CanModifyVending(vending, playerData)) return;
        if (playerData.AutoModify)
            ModifyVending(vending, playerData, true);
        else if (BasePlayer.FindByID(vending.OwnerID) is BasePlayer player)
            ShowPopup(player, vending.net.ID.Value);
    });
}

 

Edited by IIIaKa
  • Like 1
Kobani

Posted

@IIIaKa
Unfortunately, replacing the method did not prevent it.
Do you need anything specific?

Kobani

Posted

@IIIaKa
I sent them a personal message with a possible solution.

  • Like 1
IIIaKa

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

124.5k

Files Sold

Total number of files sold.

2.6m

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.