â„đïļMessageService

Service for sending game messages.

Example usage:

-- Sends an info message to players when they get a kill
Events.EntityDeath(function(event)
    if event.killer and event.killer:getPlayer() then
        MessageService.sendInfo(event.killer:getPlayer(), "You got a kill!")
    end
end)

Functions

broadcast(message: string)

Broadcasts a message to everyone online

sendInfo(player: Player, message: string)

Sends an info message to a specific player

sendError(player: Player, message: string)

Sends an error message to a specific player

Last updated