Skip to content

resetVehicleAudioSettings on v1.6-release-23952 #4725

@Balazs159

Description

@Balazs159

Describe the bug

If I have a vehicle that has a modelId set to one requested using engineRequestModel, and use resetVehicleAudioSettings() on it with "onClientElementStreamIn" event, the vehicle will have no sounds at all when it streams in.

Steps to reproduce

Heres a client-sided script to reproduce:

local veh = createVehicle(445, 15.080532073975, 22.650451660156, 3.1171875)
setVehicleEngineState(veh, true)
local mod = engineRequestModel("vehicle", 604)
setElementModel(veh, mod)

addEventHandler("onClientElementStreamIn", getRootElement(), function()
if source == veh then
resetVehicleAudioSettings(veh)
iprint("reset")
end

Version

Client: v1.6-release-23952 (Windows 11, 64-bit)
Server: v1.6-release-23312 (Debian 12)

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