Skip to content
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

Feature: Infinite Vehicle Ammo #3003

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Conversation

rkwapisz
Copy link
Contributor

@rkwapisz rkwapisz commented Apr 29, 2024

This PR adds a new "Infinite Vehicle Ammo" checkbox to the vehicle menu.
When enabled, any weapons in the player's vehicle, such as Oppressor Mk2 missiles, will have infinite ammo. This includes countermeasures and bombs.

The main difference between this and previous implementation attempts is that SET_VEHICLE_WEAPON_RESTRICTED_AMMO doesn't use weapon hashes and instead simply accesses the vehicle's weapon index.

This is a better long-term solution than trying to directly access a vehicle's weapon hashes since it does not require checks against potential new weapon hashes with future GTAO content updates.

en_us translation forthcoming.

Closes #1021 and #1637.

@gir489returns
Copy link
Contributor

Don't we already have this?

@lonelybud
Copy link
Contributor

should also close #1637

@rkwapisz
Copy link
Contributor Author

Don't we already have this?

Surprisingly, no. Not for vehicle weapons. WEAPON::SET_PED_INFINITE_AMMO does not apply to vehicle weapons.
#1060 went stale and was never committed.

@Yimura Yimura linked an issue Apr 30, 2024 that may be closed by this pull request
Copy link

Download the artifacts for this pull request:

@Yimura Yimura merged commit 03b65d5 into YimMenu:master Apr 30, 2024
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request]: infinite vehicle rockets [Request]: Infinite Ammo For Vehicles
4 participants