eluna-scripts/Example Scripts/example_player_chat_command.lua

9 lines
236 B
Lua
Raw Permalink Normal View History

local ChatPrefix = "#example"
local function ChatSystem(event, player, msg, _, lang)
if (msg:find(ChatPrefix) == 1) then
player:SendNotification("Example Chat Command Works")
end
end
RegisterPlayerEvent(18, ChatSystem)