Initial MafiaMP stuff

This commit is contained in:
Vortrex
2023-02-18 15:43:03 -06:00
parent a39acd67d0
commit 8b02904515
6 changed files with 3721 additions and 61 deletions

View File

@@ -705,6 +705,10 @@ function loadCommands() {
// ===========================================================================
function addAllCommandHandlers() {
if (!isGameFeatureSupported("commandHandler")) {
return false;
}
let commandCount = 0;
let commands = getCommands();
for (let i in commands) {
@@ -715,8 +719,8 @@ function addAllCommandHandlers() {
}
}
removeCommandHandler("help");
addCommandHandler("help", helpCommand);
//removeCommandHandler("help");
//addCommandHandler("help", helpCommand);
logToConsole(LOG_INFO, `[V.RP.Command] ${commandCount} command handlers added!`);
}