Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Serialization

tbeck edited this page Sep 18, 2023 · 2 revisions

Learn how serialization works


Supported Types

Supported arguments types for MetaData, Script events and are:

  • []byte
  • map
  • bool . int (8-64)
  • uint (16-64)
  • float (32,64)
  • string
  • Player
  • Vehicle
  • Vector3
  • Vector2
  • Blip
  • VoiceChannel
  • ColShape
  • Checkpoint
  • any type listed here as array e.g. int[].

Its recommended to serialize arrays and dicts before sending them to the player
due to degraded MValue encode/decode performance caused by cgo.
Byte arrays are excluded.

Conversion Table

Go type alt:V Type
int, int8, int16, int32, int64 MValueInt
uint, uint8, uint16, uint32, uint64 MValueInt? not sure
bool MValueBool

Clone this wiki locally