dockfries / infernus

Node.js library for scripting Open Multiplayer.
https://dockfries.github.io/infernus/
MIT License
21 stars 2 forks source link

samp-node returning empty strings on player events #40

Closed Frank441 closed 4 months ago

Frank441 commented 4 months ago

use my samp-node fork instead of iAmir's.

Originally posted by @dockfries in https://github.com/dockfries/infernus/issues/39#issuecomment-2185679848

Example code:

import { PlayerEvent } from "@infernus/core";

PlayerEvent.onDisconnect(({ player, reason, next }) => {
  console.log(player.getName());
});

Could it be somehow related to this commit?

dockfries commented 4 months ago

try update latest core version