diff --git a/scripts/server/client.js b/scripts/server/client.js index 9440a71a..854cd7fb 100644 --- a/scripts/server/client.js +++ b/scripts/server/client.js @@ -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()]); +} + // =========================================================================== \ No newline at end of file