mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:01:24 +00:00
feat: Added ChatEvent handler to server/events.lua
Merge pull request #613 from qbcore-framework/feat/HideBrokenCommands
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
-- Event Handler
|
||||
|
||||
AddEventHandler('chatMessage', function(source, _, message)
|
||||
if string.sub(message, 1, 1) == '/' then
|
||||
CancelEvent()
|
||||
return
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('playerDropped', function()
|
||||
local src = source
|
||||
if not QBCore.Players[src] then return end
|
||||
|
||||
Reference in New Issue
Block a user