Skip to content

Native "GetVehicleExhaustBone" throws exception #3416

Description

@Hardy535

What happened?

When attempting to use the native function GetVehicleExhaustBone via Citizen.InvokeNative (since this native is not yet available in the FiveM nativeDB by name), FiveM throws an exception (tested on builds b3407, b3095).

Although there is a backport implementation of this native for game builds prior to b3095, it still results in an exception (tested on build b2944).

Error on the newest build:

script error in native e728f090d538cb18: exception at address FiveM_b3407_GTAProcess.exe+F60768

Expected result

Should return the correct native results

Reproduction steps

Citizen.CreateThread(function()
    local ped = PlayerPedId()
    local veh = GetVehiclePedIsIn(ped, false)

    local successful, boneIndex, invAxis = Citizen.InvokeNative(0xE728F090D538CB18, veh, 0, 0, false) -- GetVehicleExhaustBone
end)

Importancy

Unknown

Area(s)

Natives

Specific version(s)

FiveM b3407, b3095, b2944

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions