Skip to content

Fix getVehicleSirensOn/setVehicleSirensOn for Rhino and Barracks (#4899)#4900

Merged
FileEX merged 1 commit intomultitheftauto:masterfrom
Zephkek:fix/4899-rhino-barracks-sirens
May 7, 2026
Merged

Fix getVehicleSirensOn/setVehicleSirensOn for Rhino and Barracks (#4899)#4900
FileEX merged 1 commit intomultitheftauto:masterfrom
Zephkek:fix/4899-rhino-barracks-sirens

Conversation

@Zephkek
Copy link
Copy Markdown
Contributor

@Zephkek Zephkek commented May 6, 2026

Summary

Add VEHICLE_HAS_SIRENS to Rhino (432) and Barracks (433) in g_ulVehicleAttributes on both client and server, plus the gentable_vehattr generator.

Motivation

Resolves #4899.

Both vehicles have functional sirens in vanilla SA, but HasSirens() rejected them because the bit was missing from the attribute table. As a result, getVehicleSirensOn returned nil and setVehicleSirensOn was a no-op.

Test plan

  1. Spawn a Rhino and a Barracks.
  2. Run setVehicleSirensOn(vehicle, true), then getVehicleSirensOn(vehicle). Expected: true.
  3. Run setVehicleSirensOn(vehicle, false), then getVehicleSirensOn(vehicle). Expected: false.
  4. Confirm existing siren vehicles (e.g. Police 596, Ambulance 416, Enforcer 427) still toggle correctly.

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

…titheftauto#4899)

Rhino (432) and Barracks (433) have functional sirens in vanilla SA, but
HasSirens() rejected them because they were missing VEHICLE_HAS_SIRENS in
g_ulVehicleAttributes, causing the Lua siren API to return nil/false.

Add the bit on both client and server tables and in the gentable generator.
@FileEX FileEX added the bugfix Solution to a bug of any kind label May 7, 2026
@FileEX FileEX added this to the 1.7 (Current) milestone May 7, 2026
@FileEX FileEX merged commit 83ca44a into multitheftauto:master May 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Barracks and Rhino sirens cannot be toggled with getVehicleSirensOn / setVehicleSirensOn

2 participants