Skip to main content

Module types

Module types 

Source
Expand description

Primitive types for the Open Multiplayer ABI: UID, SemanticVersion, StringView, Colour, Vector{2,3,4}, ComponentType.

All use #[repr(C)] to guarantee binary layout identical to the C++ SDK’s types.hpp header — do not reorder fields.

Structs§

Colour
RGBA color.
SemanticVersion
Semantic version major.minor.patch with pre-release support.
StringView
Non-owning string — (pointer, length) pair, no \0 terminator.
Vector2
2D vector.
Vector3
3D vector — used for world positions in SA-MP/Open Multiplayer.
Vector4
4D vector.

Enums§

ComponentType
Component type.

Type Aliases§

UID
64-bit unique identifier of an Open Multiplayer component.