Skip to content

player.allWeapons is a key-value pair, not an array of numbers #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ declare class PlayerMp extends EntityMp {
/**
* Property used for getting the player's weapon hash and ammo.
*/
public readonly allWeapons: number[];
public readonly allWeapons: Record<number, number>;

/**
* Property used for getting the player's ip address.
Expand Down