Stuyk / altv-athena

A Roleplay Framework for alt:V by Stuyk
https://athenaframework.com/
229 stars 149 forks source link

Respawn broken. #381

Closed Fanatic191 closed 1 year ago

Fanatic191 commented 1 year ago

At this moment, i found a solution for that, but it can not be last forever.

Try this until Stuyk found other options for that.

src/core/plugins/core-death/client/index.ts

Make it comment for this line:

    /*if (!alt.Player.local.isDead) {   <---THIS
            return;
        }

        if (isAnyMenuOpen(false)) {
            return;
        }*/     <--- to here! CAUTION! Until this line

   Only this IF part. 

For the, atm it is working.
jonesXYZ commented 1 year ago

Can you please provied more Informations? What exactly is broken? Which Athena Version? ...

Fanatic191 commented 1 year ago

Can you please provied more Informations? What exactly is broken? Which Athena Version? ...

If you press the respawn key, the system wont respawn you, only with 'revive' can help. Version the latest. (4.0.2?) Sry this is my first report, i don't know exactly what do i have to do.

BinaryChop commented 1 year ago

Press E to respawn does not work. Broken since 3.9.0. #334

jonesXYZ commented 1 year ago

Can you please provied more Informations? What exactly is broken? Which Athena Version? ...

If you press the respawn key, the system wont respawn you, only with 'revive' can help. Version the latest. (4.0.2?) Sry this is my first report, i don't know exactly what do i have to do.

All good, for the next Time provied as much Information as you can. Then its easier to understand your Issue

Fanatic191 commented 1 year ago

Just a comment. After i respawn to the nearest hospital, every time freefalling, then spawn in front of nearest hospital. I changes the spots a little bit, atm it is okay. This can be fixed in v5? Thank you Stuyk!

Stuyk commented 1 year ago

@Fanatic191 Default respawn behavior is changed in v5. The plugin will be irrelevant for v5; and will have a default system that will automatically spawn a player at the nearest hospital after 5 seconds.

This can be disabled through Athena.systems.default.death.disable(). However, once this default behavior is disabled nothing will allow a player to respawn and a new plugin can override the existing functionality entirely.

A lot of the plugins that currently exist will be non-functioning after v5 is released.