Skip to content

Allow Vector and Matrix Data Types in Network Events and RPCs - #5278

Open
MohabCodeX wants to merge 1 commit into
multitheftauto:masterfrom
MohabCodeX:feat/vector-matrix-event-transfer
Open

Allow Vector and Matrix Data Types in Network Events and RPCs#5278
MohabCodeX wants to merge 1 commit into
multitheftauto:masterfrom
MohabCodeX:feat/vector-matrix-event-transfer

Conversation

@MohabCodeX

Copy link
Copy Markdown
Contributor

Enables native transmission of Vector2, Vector3, Vector4, and Matrix data types across network events and latent events (triggerClientEvent, triggerServerEvent), including when nested inside tables.

Closes #374

Testing

  • Validated network serialization roundtrip in unit test suite (SyncMisc_Tests).
  • Verified event roundtrips with automated test test_vector_sync.zip.

…nd rpcs

Support native Vector2, Vector3, Vector4, and Matrix Lua userdata transmission
across triggerClientEvent, triggerServerEvent, and latent events.
- Add network sync type IDs for Vector2/3/4 and Matrix in SLuaTypeSync
- Implement serialization and deserialization in client and server CLuaArgument
- Support nested tables and JSON representation for vector and matrix values
- Add BitStream round-trip unit tests in SyncMisc_Tests
@FileEX FileEX added the bugfix Solution to a bug of any kind label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vectors and matrices cannot be passed via events

2 participants