Fix wrong util used
This commit is contained in:
@@ -605,7 +605,7 @@ function sendPlayerClearPedState(client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function playerDamagedByPlayer(client, damagerEntityName, weaponId, pedPiece, healthLoss) {
|
function playerDamagedByPlayer(client, damagerEntityName, weaponId, pedPiece, healthLoss) {
|
||||||
let damagerEntity = getClientByName(damagerEntityName);
|
let damagerEntity = getClientFromParams(damagerEntityName);
|
||||||
|
|
||||||
if(isNull(damagerEntity)) {
|
if(isNull(damagerEntity)) {
|
||||||
logToConsole(LOG_DEBUG, `[Asshat.Client] ${getPlayerDisplayForConsole(client)}'s damager entity from ID is null`);
|
logToConsole(LOG_DEBUG, `[Asshat.Client] ${getPlayerDisplayForConsole(client)}'s damager entity from ID is null`);
|
||||||
@@ -833,4 +833,10 @@ function sendPlayerChatScrollLines(client, amount) {
|
|||||||
triggerNetworkEvent("ag.chatScrollLines", client, amount);
|
triggerNetworkEvent("ag.chatScrollLines", client, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function sendPlayerAllowedSkins(client) {
|
||||||
|
triggerNetworkEvent("ag.allowedSkins", client, getGameData().allowedSkins[getServerGame()]);
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user