Ped for net event util

This commit is contained in:
Vortrex
2022-03-17 08:05:41 -05:00
parent 9f6c8b1026
commit 406334555d

View File

@@ -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;
}
}
// ===========================================================================