M2O Scripting API - Server API v1.6.1
M2O Scripting API - Server API v1.6.1
Runtime classes
Section titled “Runtime classes”Objects you construct, or receive from the runtime.
- ActionPoint
- Blip
- Blocker
- Color
- Entity
- Fire
- Marker
- Npc
- Player
- Prop
- Quaternion
- Sound
- SpikeStrip
- TextLabel
- Vector2
- Vector3
- Vector4
- Vehicle
- Volume
Data shapes
Section titled “Data shapes”Plain objects passed in and out of API calls.
- BasePlayer
- CarriedWeapon
- DoorInfo
- DoorState
- EntityCollection
- EventBus
- EventMap
- JukeboxState
- NpcDeathInfo
- OutdoorAmbientColor
- PendingConnection
- PhoneBookEntry
- PlayerDamageInfo
- PlayerDeathInfo
- ShopItem
- StateBag
- TextLabelOptions
- Timeout
- WeaponBaseDamage
- WorldTime
Globals
Section titled “Globals”Always available; nothing to construct or import first.
- Chat
- console
- Door
- Events
- ExecutionEnvironment
- Exports
- Imports
- Jukebox
- Messages
- PhoneBook
- Shop
- Team
- VehiclePartType
- VehicleWheelState
- Voice
- Weapon
- World
Global functions
Section titled “Global functions”Called on their own, without a receiving object.
Type aliases
Section titled “Type aliases”Named unions and helpers used by the signatures above.
