notifications?

I seem to get this error when I try to use notification.AddLegacy: attempt to index global ‘notification’ (a nil value)

is there anyway I can call this onto the player somehow else?
Thanks.

notification.AddLegacy is client side only. Where are you calling it from?

I tried making it into a meta function, that way I can use Player:Notify()



function PLAYER:Notify ( Text )
	notification.AddLegacy( Text, NOTIFY_GENERIC, 4.5 )
end


Is there any other way to do this?

[lua]
function Notify( Text )
return notification.AddLegacy( Text, NOTIFY_GENERIC, 4.5 )
end
[/lua]

You can call it by

[lua]
Notify( “Test!” )
[/lua]

Network it?

Didn’t even think of that, thanks :stuck_out_tongue: