cRoot not working for some reason.
#2
Hi, welcome to the forum! Smile

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)
)
Reply
Thanks given by:


Messages In This Thread
RE: cRoot not working for some reason. - by NiLSPACE - 01-30-2021, 08:58 AM



Users browsing this thread: 1 Guest(s)