Skip to content

getVehicleSirens() returns an empty table for vehicles that have default sirens #4175

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

Open
1 task done
PlatinMTA opened this issue Apr 24, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@PlatinMTA
Copy link
Contributor

Describe the bug

If you use getVehicleSirens or getVehicleSirenParams with a Police vehicle or any other vehicle that has sirens by default, you will get the default tables (getVehicleSirens will return {} and getVehicleSirenParams will return { Flags = { ["360"] = false, DoLOSCheck = false, Silent = false, UseRandomiser = false }, SirenCount = 0, SirenType = 0 }).

They should return the values of the default sirens. My use case is to use this coordinates to create new dynamic lights.

Steps to reproduce

  1. Get inside of a Police car
  2. /start runcode
  3. /run local veh = getPedOccupiedVehicle(me) iprint(getVehicleSirens(veh))
    This will return {}
  4. /run local veh = getPedOccupiedVehicle(me) iprint(getVehicleSirenParams(veh))
    This will return the other long table with default values.

Same clientside with /crun

Version

Client: Multi Theft Auto v1.6-release-23088
Server: MTA:SA Server v1.6-release-22953

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@PlatinMTA PlatinMTA added the bug Something isn't working label Apr 24, 2025
@PlatinMTA PlatinMTA changed the title getVehicleSirens() returns and empty table for vehicles that have default sirens getVehicleSirens() returns an empty table for vehicles that have default sirens Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant