fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Serialization of the ID packet failed.

Open Heisenberg691 opened this issue 1 year ago • 1 comments

What happened?

Server-side command execution with a very long string as an argument failed with the error: 'Serialization of the -1316139068 packet failed. Please report this error at https://github.com/citizenfx/fivem.'

Use case: I’m using a server-side command with JSON-encoded data as an argument and sending the data to the client. For example, JSON-encoded data for vehicle properties, ped clothing data (drawables, decorations, props, etc.). If the string is too long, the command fails.

Client-side command works as intended.

Expected result

The command should execute successfully with a very long string as an argument.

Reproduction steps

  1. Register server side command:
RegisterCommand('packet_test',function (source,args)
    print(args[1])
end)
  1. Execute the command with a very long string as an argument. Example repro string: https://pastebin.com/it1gRKCV

Result:

report

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

Fivem (Beta) b3095, Windows FxServer: 11535 (latest at the moment)

Additional information

No response

Heisenberg691 avatar Nov 30 '24 13:11 Heisenberg691

Did anything ever come of this?

Bentheborg avatar Oct 20 '25 19:10 Bentheborg