π [Bug] PLAYER_EVENT_ON_COMMAND looks doesn't work anymore
oowow-core opened this issue Β· comments
π Bug report
--PLAYER_EVENT_ON_COMMAND = 42 -- (event, player, command) - Can return false
RegisterPlayerEvent(42, CMD.Input)
all command doesn't work now
Expected behavior
Steps to reproduce
- ...
- Profit
Version & Environment
Client Version:
Commit Hash:
OS Client:
OS Server:
Crashlog
- None
Fix the issue: dcf59b6
Use this code to test it.
local function Player_Command(event,player,command)
player:SendBroadcastMessage("Player_Command:player:"..player:GetName().." input: "..command)
end
local isCancel = RegisterPlayerEvent( PLAYER_EVENT_ON_COMMAND, Player_Command )
works, thanks!