We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2efa4ca commit 01de45cCopy full SHA for 01de45c
lib/client/player.ts
@@ -51,8 +51,8 @@ class PlayerInterface {
51
if (!this.charId) return;
52
53
if (!(key in this)) {
54
+ this[key] = exports.ox_core.CallPlayer('get', key) ?? null;
55
this.on(key, (data: unknown) => (this[key] = data));
- this[key] = exports.ox_core.CallPlayer('get', key) || null;
56
}
57
58
return this[key];
0 commit comments