I'll show you an example of how the server and client code should be:
Server:
function DxMsgSr ( message, player, ... )
if ( triggerClientEvent ( player, "DxMsgClient", player, message, arg ) ) then
return true
end
return false
end
Client:
addEvent ( "DxMsgClient", true );
addEventHandler ( "DxMsgClient", root,
function ( message, color )
--color[1] = R;
--color[2] = G;
--color[3] = B;
--the above written is to help you to know how to find the RGB color given by the scripter, that means index '1' in 'color' array is the R color and so on
--here draw your text with the help above ^
--the text will ONLY be drawn to the player you passed to "DxMsgSr" in server
end
)