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

Conversation

phyziyx
Copy link
Contributor

@phyziyx phyziyx commented Jun 19, 2025

There is a type error; In the Wiki (https://wiki.rage.mp/wiki/Player::allWeapons), it states that allWeapons is a key-value pair.

Found when attempting to loop over earlier today.
player.allWeapons.map is not a function - TypeError: player.allWeapons.map is not a function

@shr0x shr0x merged commit 650db47 into ragempcommunity:main Jun 23, 2025
@phyziyx phyziyx deleted the patch-1 branch June 23, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants