Ped for net event util
This commit is contained in:
@@ -464,4 +464,14 @@ function isClientInitialized(client) {
|
|||||||
return (typeof getServerData().clients[client.index] != "undefined");
|
return (typeof getServerData().clients[client.index] != "undefined");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function getPedForNetworkEvent(ped) {
|
||||||
|
if(getGame() == VRR_GAME_GTA_IV) {
|
||||||
|
return ped;
|
||||||
|
} else {
|
||||||
|
return ped.id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user