Jump to content

Doesn't seem to work

Closed 0.1.1 0.1.2

RustyB
RustyB

Posted (edited)

Nothing appears...
Fuel display works correctly but not bed status.
Config file has been left by default.

And I can't find any permission to give...

Does it need updating maybe?

 

 

Edited by RustyB
RustyB

Posted

Actually it works when I respawn in a bag/bed but not when I place a new one.

RustyB

Posted

Fixed it by adding this:

void OnEntitySpawned(BaseEntity entity)
        {
			SleepingBag bag = entity as SleepingBag;
            if (bag == null)
            {
                string spn = entity.ShortPrefabName;
                if (spn.Equals("bed_deployed", StringComparison.OrdinalIgnoreCase) || spn.Equals("beachtowel_deployed", StringComparison.OrdinalIgnoreCase))
                    bag = entity.GetComponent<SleepingBag>();
            }
			
			
            if (bag == null) return;
            NextTick(() =>
            {
                BasePlayer player = BasePlayer.FindByID(bag.deployerUserID);
                if (player != null)
                    HandlePlayerRespawn(player);
            });
        }

 

IIIaKa

Posted (edited)

@Death 
He said that he found a solution. I'm currently busy with other plugins, when I switch to this one, I'll answer all questions. If the issues are critical or can be resolved quickly, I respond immediately.

  

On 3/18/2025 at 7:18 PM, RustyB said:

Fixed it by adding this:

 

Edited by IIIaKa
IIIaKa

Posted

@RustyB
Hello, thank you for reaching out. In the next update, a status bar display will be added when placing sleeping bags.

IIIaKa

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

IIIaKa

Posted

If the issue persists, feel free to report it in this thread.

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.1k

Files Sold

Total number of files sold.

2.5m

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.