mirror of
https://github.com/mangoszero/LuaScripts
synced 2026-08-22 02:29:02 -04:00
9 lines
253 B
Lua
9 lines
253 B
Lua
|
|
local ChatPrefix = "#example"
|
||
|
|
|
||
|
|
local function ChatSystem(event, player, msg, _, lang)
|
||
|
|
if (msg:sub(1, ChatPrefix:len()) == ChatPrefix) then
|
||
|
|
player:SendNotification("Example Chat Command Works")
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
RegisterPlayerEvent(18, ChatSystem)
|