Announcement

Collapse
No announcement yet.

Server no chat?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Server no chat?

    Running the default server and the chat doesn't work when i type anything in?

    #2
    If nobody is around the chat wont display your message.

    if you're around someone and they are in a car or you're in a car then it wont display your message.

    If you're not using the onsetrp package then add this server side.

    HTML Code:
    AddCommand("g", function(player, ...)
        local args = { ... }
        local message = ""
        for i=1,#args do
            if i > 1 then
                message = message.." "
            end
            message = message..args[i]
        end
        message = '['.._("global")..'] <span>'..GetPlayerName(player)..'('..player..'):</> '..message
        AddPlayerChatAll(message)
    end)
    /g [message]

    will display chat to everyone.

    Comment

    Working...
    X