Serialization of the ID packet failed.
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
- Register server side command:
RegisterCommand('packet_test',function (source,args)
print(args[1])
end)
- Execute the command with a very long string as an argument. Example repro string: https://pastebin.com/it1gRKCV
Result:
Importancy
Slight inconvenience
Area(s)
FiveM, FXServer
Specific version(s)
Fivem (Beta) b3095, Windows FxServer: 11535 (latest at the moment)
Additional information
No response
Did anything ever come of this?