SIGSEGV with RPC natives

  1. Client (production/canary) and FXServer version:
  • Canary, Windows FXServer Build 3894
  1. What you expected to happen
  • To not crash the whole server :stuck_out_tongue:
  1. 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.
  1. Category of bug (eg. client, server, weapons, peds, native)
  • Server/Native
  1. 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)