01-30-2021, 08:58 AM
Hi, welcome to the forum!
Only functions marked as 'STATIC' can be called directly. For the other functions you have to call it from a cRoot instance which can be easily retrieved using the cRoot:Get() function. So in the end your code would look like this:
Only functions marked as 'STATIC' can be called directly. For the other functions you have to call it from a cRoot instance which can be easily retrieved using the cRoot:Get() function. So in the end your code would look like this:
cRoot:Get():BroadcastChat(cCompositeChat() :AddTextPart(Player:GetName(), "@e") :AddTextPart(": ", "@f") :AddTextPart(Message) :SetMessageType(mtCustom) )