Wiki

Clone wiki

EFLC-MP LUA / newColorMsg

Description

Creates a multi colored message

Parameters

Int msgId, String message, Int ARGB
Int msgId: A unique ID you should give the message

String message: Text of the first colored part of the message

Int ARGB: ARGB of the first part of the msg

Extra Params: Repeat params Message and ARGB to add more colors, example below

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