Fix wrong util used

This commit is contained in:
Vortrex
2021-04-13 01:30:56 -05:00
parent c81944c559
commit 9c32d137dc

View File

@@ -605,7 +605,7 @@ function sendPlayerClearPedState(client) {
// ===========================================================================
function playerDamagedByPlayer(client, damagerEntityName, weaponId, pedPiece, healthLoss) {
let damagerEntity = getClientByName(damagerEntityName);
let damagerEntity = getClientFromParams(damagerEntityName);
if(isNull(damagerEntity)) {
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);
}
// ===========================================================================
function sendPlayerAllowedSkins(client) {
triggerNetworkEvent("ag.allowedSkins", client, getGameData().allowedSkins[getServerGame()]);
}
// ===========================================================================