- Client (production/canary) and FXServer version:
- Canary, Windows FXServer Build 3894
- What you expected to happen
- To not crash the whole server
- What actually happens
- A SIGSEGV occurs whenever the RPC native
SetVehicleNumberPlateText
is called with an nil
parameter(Lua), probably happens with other RPC natives too, although i haven’t checked any beside this one.
- Category of bug (eg. client, server, weapons, peds, native)
- Reproducible steps, preferably with example script(s)
RegisterCommand('sigsegv', function(source, args, raw)
local playerEntity = GetPlayerPed(source)
local entityPos = GetEntityCoords(playerEntity)
local automobile = Citizen.InvokeNative(`CREATE_AUTOMOBILE`, `adder`, entityPos, 0.0)
local plateText = nil
SetVehicleNumberPlateText(automobile, plateText)
end)