M2O Scripting API - Client API v1.6.1
M2O Scripting API - Client API v1.6.1
Runtime classes
Section titled “Runtime classes”Objects you construct, or receive from the runtime.
Data shapes
Section titled “Data shapes”Plain objects passed in and out of API calls.
- BasePlayer
- BoneTransform
- BrowserConsoleMessageEvent
- BrowserCreatedEvent
- BrowserCursorChangeEvent
- BrowserDocumentReadyEvent
- BrowserInputFocusChangeEvent
- BrowserLoadingFailedEvent
- BrowserLoadingStartEvent
- BrowserNavigateEvent
- BrowserOriginChangeEvent
- BrowserPopupEvent
- BrowserResourceBlockedEvent
- BrowserTooltipEvent
- CameraClip
- CameraMatrix
- ChatMessageEvent
- CityPartChangeEvent
- EventBus
- EventMap
- LockpickResultEvent
- PlayerDamageEvent
- QuestionAnswerEvent
- RadioPowerChangeEvent
- RadioStationChangeEvent
- RaycastHit
- RaycastOptions
- Render2DCanvas
- Render2DCanvasOptions
- Render2DContainer
- Render2DNode
- Render2DNodeOptions
- Render2DRect
- Render2DRectangle
- Render2DRectangleOptions
- Render2DText
- Render2DTextOptions
- Render2DTexture
- Render2DTextureOptions
- RenderTargetCommand
- RenderTargetDrawOptions
- RenderTargetOptions
- RenderTargetSurface
- RenderTargetUsage
- ScreenPosition
- ShopOpenEvent
- StateBag
- VolumeContactEvent
Globals
Section titled “Globals”Always available; nothing to construct or import first.
- Bone
- Camera
- Chat
- console
- Controls
- Discord
- Events
- ExecutionEnvironment
- Exports
- Fade
- Hud
- Imports
- Key
- LocalPlayer
- Material
- Messages
- Nametags
- Noclip
- Radio
- Render2D
- RenderTarget
- Shop
- Texture
- Ui
- VehiclePart
- Voice
- Web
- Window
- World
- WorldMap
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.
