Make scoreboard key re-bindable
This commit is contained in:
@@ -562,9 +562,9 @@ function onPlayerSpawn(client) {
|
||||
if (!doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand(client, "scoreboard")) {
|
||||
let keyId = getPlayerKeyBindForCommand(client, "scoreboard");
|
||||
logToConsole(LOG_DEBUG, `[V.RP.Event] Sending scoreboard key ID (${keyId.key}, ${toUpperCase(getKeyNameFromId(keyId.key))}) to ${getPlayerDisplayForConsole(client)}`);
|
||||
sendPlayerScoreboardKey(client, keyId.key);
|
||||
sendPlayerScoreBoardKey(client, keyId.key);
|
||||
} else {
|
||||
sendPlayerScoreboardKey(client, -1);
|
||||
sendPlayerScoreBoardKey(client, -1);
|
||||
}
|
||||
|
||||
sendPlayerChatBoxTimeStampsState(client, isPlayerAccountSettingEnabled(client, "ChatBoxTimestamps"));
|
||||
|
||||
@@ -1012,4 +1012,11 @@ function getPlayerInPropertyData(client) {
|
||||
getPlayerData(client).inProperty = null;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function scoreBoardCommand(command, params, client) {
|
||||
// Handled client side
|
||||
return false;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
@@ -1010,6 +1010,12 @@ function sendPlayerEnterPropertyKey(client, key) {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function sendPlayerScoreBoardKey(client, key) {
|
||||
sendNetworkEventToPlayer("v.rp.scoreBoardKey", client, key);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function makePedPlayAnimation(ped, animationSlot, positionOffset) {
|
||||
if (getAnimationData(animationSlot).loop == true) {
|
||||
setEntityData(ped, "v.rp.anim", animationSlot, true);
|
||||
|
||||
Reference in New Issue
Block a user