For a good bug report you should probably include:
- Client (production/canary) and FXServer version
Canary, artifact 6156, b2802 - What you expected to happen
When executing SetVehicleExtra with a state of 0 to have the extra be on - What actually happens
Game close instantly close without a crash report only few lines in the logs - Category of bug (eg. client, server, weapons, peds, native)
Client native - 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)