Change dev init log to info, fix divider style
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function initDeveloperScript() {
|
function initDeveloperScript() {
|
||||||
logToConsole(LOG_DEBUG, "[Asshat.Developer]: Initializing developer script ...");
|
logToConsole(LOG_INFO, "[Asshat.Developer]: Initializing developer script ...");
|
||||||
|
|
||||||
// Use GTAC command handlers for these since they need to be available on console
|
// Use GTAC command handlers for these since they need to be available on console
|
||||||
//addCommandHandler("sc", executeServerCodeCommand);
|
//addCommandHandler("sc", executeServerCodeCommand);
|
||||||
@@ -18,7 +18,7 @@ function initDeveloperScript() {
|
|||||||
//addCommandHandler("allcmd", simulateCommandForAllPlayersCommand);
|
//addCommandHandler("allcmd", simulateCommandForAllPlayersCommand);
|
||||||
//addCommandHandler("addloglvl", setServerLogLevelCommand);
|
//addCommandHandler("addloglvl", setServerLogLevelCommand);
|
||||||
|
|
||||||
logToConsole(LOG_DEBUG, "[Asshat.Developer]: Developer script initialized successfully!");
|
logToConsole(LOG_INFO, "[Asshat.Developer]: Developer script initialized successfully!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,62 +28,92 @@ function p(params) {
|
|||||||
return getPlayerFromParams(params);
|
return getPlayerFromParams(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function o(params) {
|
function o(params) {
|
||||||
return getElementsByType(ELEMENT_OBJECT)[params];
|
return getElementsByType(ELEMENT_OBJECT)[params];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function io(params) {
|
function io(params) {
|
||||||
return getItemData(params).object;
|
return getItemData(params).object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function pd(params) {
|
function pd(params) {
|
||||||
return getPlayerData(getPlayerFromParams(params));
|
return getPlayerData(getPlayerFromParams(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function cv(params) {
|
function cv(params) {
|
||||||
return getClosestVehicle(getPlayerPosition(getPlayerFromParams(params)));
|
return getClosestVehicle(getPlayerPosition(getPlayerFromParams(params)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function iv(params) {
|
function iv(params) {
|
||||||
return getPlayerVehicle(getPlayerFromParams(params));
|
return getPlayerVehicle(getPlayerFromParams(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function bd(params) {
|
function bd(params) {
|
||||||
return getBusinessFromParams(params);
|
return getBusinessFromParams(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function hd(params) {
|
function hd(params) {
|
||||||
return getHouseFromParams(params);
|
return getHouseFromParams(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function jd(params) {
|
function jd(params) {
|
||||||
return getJobFromParams(params);
|
return getJobFromParams(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function jld(params, jobLocationIndex) {
|
function jld(params, jobLocationIndex) {
|
||||||
return getJobFromParams(params).locations[jobLocationIndex];
|
return getJobFromParams(params).locations[jobLocationIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function vd(params) {
|
function vd(params) {
|
||||||
return getVehicleData(getVehicleFromParams(params));
|
return getVehicleData(getVehicleFromParams(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function pad(params) {
|
function pad(params) {
|
||||||
return getPlayerData(getPlayerFromParams(params)).accountData;
|
return getPlayerData(getPlayerFromParams(params)).accountData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function pcsd(params) {
|
function pcsd(params) {
|
||||||
return getPlayerCurrentSubAccount(getPlayerFromParams(params));
|
return getPlayerCurrentSubAccount(getPlayerFromParams(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function psd(params, subAccountIndex) {
|
function psd(params, subAccountIndex) {
|
||||||
return getPlayerData(getPlayerFromParams(params)).subAccounts[subAccountIndex];
|
return getPlayerData(getPlayerFromParams(params)).subAccounts[subAccountIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function pv(params) {
|
function pv(params) {
|
||||||
return getPlayerVehicle(getPlayerFromParams(params));
|
return getPlayerVehicle(getPlayerFromParams(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function pvd(params) {
|
function pvd(params) {
|
||||||
return getVehicleData(getPlayerVehicle(getPlayerFromParams(params)));
|
return getVehicleData(getPlayerVehicle(getPlayerFromParams(params)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user