M2O Scripting APIScripting reference
    Preparing search index…
    ModuleServer API

    server-api

    ActionPoint

    Replicated interaction point that emits actionPointHit when a player activates it.

    Blip

    Replicated map icon that can be positioned in the world or attached to an entity.

    Blocker

    Invisible replicated collision volume.

    Marker

    Replicated world marker that can emit markerHit and markerLeave events.

    Player

    A connected M2O player.

    Prop

    Replicated static world object created from a Mafia II model.

    SpikeStrip

    Replicated tyre spike strip that can be enabled or disabled by the server.

    Vehicle

    Replicated M2O vehicle handle.

    JukeboxState

    Current synchronized playback state for a jukebox.

    PhoneBookEntry

    A configured telephone-directory entry.

    ShopItem

    A server-side override for one shop item slot.

    WorldTime

    A 24-hour game clock value.

    Chat

    Configures how server-side chat messages are relayed between connected players.

    Jukebox

    Controls synchronized Mafia II jukebox playback by game jukebox identifier.

    PhoneBook

    Configures telephone-directory entries replicated to connected players.

    Shop

    Overrides availability, visibility, and prices of Mafia II shop items.

    VehicleWheelState

    Vehicle wheel damage states.

    World

    Controls replicated world state and exposes collections of connected players and spawned vehicles.