How to send lua-transfer?, \n break string

function meta:fgeneric(text)
self:SendLua("GAMEMODE:AddNotify(‘Blah Blah in notify’, NOTIFY_GENERIC, 5) surface.PlaySound( ‘/buttons/button24.wav’ ) Msg(‘Blah Blah in console**
**’) ")

ERROR: [ERROR] LuaCmd:1: unfinished string near '‘Blah Blah in console’

  1. unknown - LuaCmd:0

How to send lua-transfer?

You should use .net or usermessages.

SendLua has a limit of 255 bytes, 255 chars.


You need to escape the escape string. Use \

Or you could use MsgN which removes the need for