altmp / altv-js-module-v2

alt:V JavaScript v2 module
MIT License
10 stars 9 forks source link

``playerDisconnect`` event is not being called (v1 compat) #214

Closed ToffyMTA closed 6 months ago

ToffyMTA commented 7 months ago

Description

playerDisconnect event is not being called at all

Steps to Reproduce


import alt from 'alt-server';

alt.on("playerConnect", (player) => {
    alt.log(`${player.name} has connected to the server.`);
});

alt.on("playerDisconnect", (player) => {
    alt.log(`${player.name} leaved the server.`);
});
xLuxy commented 6 months ago

Should be fixed in >= dev/0.0.0-dev.38 (Build will be triggered once dev SDK has been updated.