Wiki

Clone wiki

EFLC-MP LUA / sendColorMsg

Description

Sends a multi colored message

Parameters

Int msgId, Int playerId
Int msgId: A unique ID you gave your message

Int playerId: The player ID or -1 if sending to all online players

Return values


Example

#!lua
function test()
    if isPlayerOnline(1) then
        newColorMsg(1000, "Red Ping: " .. getPlayerPing(1, true), 0xFFFF0000, ", Blue Name: " .. getPlayerName(1), 0xFF0000FF)
        sendColorMsg(1000, 1)
    end
end
setTimer("test", 500, -1)

Updated