Skip to content

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

Open
@PlatinMTA

Description

@PlatinMTA

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 these 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions