diff --git a/scripts/server/utilities.js b/scripts/server/utilities.js index e23bd23c..9959a901 100644 --- a/scripts/server/utilities.js +++ b/scripts/server/utilities.js @@ -464,4 +464,14 @@ function isClientInitialized(client) { return (typeof getServerData().clients[client.index] != "undefined"); } +// =========================================================================== + +function getPedForNetworkEvent(ped) { + if(getGame() == VRR_GAME_GTA_IV) { + return ped; + } else { + return ped.id; + } +} + // =========================================================================== \ No newline at end of file