Build 2802 Game crash with SetVehicleExtra

For a good bug report you should probably include:

  1. Client (production/canary) and FXServer version
    Canary, artifact 6156, b2802
  2. What you expected to happen
    When executing SetVehicleExtra with a state of 0 to have the extra be on
  3. What actually happens
    Game close instantly close without a crash report only few lines in the logs
  4. Category of bug (eg. client, server, weapons, peds, native)
    Client native
  5. Reproducible steps, preferably with example script(s)
RegisterCommand("extra", function(source, args)
    local playerPed = PlayerPedId()
    local coords = GetEntityCoords(playerPed)
    
    RequestModel(`mamba`)
    while not HasModelLoaded(`mamba`) do Wait(0) end
    local vehicle = CreateVehicle(`mamba`, coords.x, coords.y, coords.z, GetEntityHeading(playerPed), true, false)

    SetVehicleModKit(vehicle, 0)
    SetVehicleExtra(vehicle, 1, 0)
end)

Execute command extra and see that your game instantly closes.

Logs: (executed with runcode)

[    286828] [b2802_GTAProce]             MainThrd/ __Lua_InvokeNative: execution failed: Error executing native 0x7ee3a3c5e4a40cc9 at address FiveM_b2802_GTAProcess.exe+1639B6A.
[    286828] [b2802_GTAProce]             MainThrd/ ^1SCRIPT ERROR: Execution of native 7ee3a3c5e4a40cc9 in script host failed: Error executing native 0x7ee3a3c5e4a40cc9 at address FiveM_b2802_GTAProcess.exe+1639B6A.^7
[    286828] [b2802_GTAProce]             MainThrd/ ^3> SetVehicleExtra^7 (^5SetVehicleExtra.lua^7:12)
[    286828] [b2802_GTAProce]             MainThrd/ ^3> ref^7 (^5runcode^7:6)
[    286828] [b2802_GTAProce]             MainThrd/ ^3> ExecuteCommand^7 (^5ExecuteCommand.lua^7:3)
[    286828] [b2802_GTAProce]             MainThrd/ ^3> callback^7 (^5@chat/cl_chat.lua^7:141)

Going to be fixed soon.

2 Likes

has anyone found a fix to this? this is very often and frequent in my server!

Hey Switch, i cannot find the discord server nor the link can you please help me a friend of mine was telling me about this server that you have for FiveM