Don't use command event

This commit is contained in:
Vortrex
2022-04-06 16:37:27 -05:00
parent f21f0445c2
commit 2717db79c1

View File

@@ -38,7 +38,7 @@ function addAllEventHandlers() {
addEventHandler("onPedEnteringVehicle", onPedEnteringVehicle);
addEventHandler("onPedExitingVehicle", onPedExitingVehicle);
addEventHandler("OnPlayerCommand", onPlayerCommand);
//addEventHandler("OnPlayerCommand", onPlayerCommand);
}
// ===========================================================================
@@ -623,7 +623,7 @@ function onPlayerSpawn(client) {
// ===========================================================================
function onPlayerCommand(event, client, command) {
function onPlayerCommand(event, client, command, params) {
if(!doesCommandExist(command)) {
processPlayerCommand(command, params, client);
}