diff --git a/RageCoop.Client/Scripting/API.cs b/RageCoop.Client/Scripting/API.cs index 8c7bb4cf..2cf1b914 100644 --- a/RageCoop.Client/Scripting/API.cs +++ b/RageCoop.Client/Scripting/API.cs @@ -334,6 +334,42 @@ public static void RequestSharedFile(string name, Action callback) } }); } + + /// + /// + /// + /// + /// + public static SyncedPed GetPedById(int id) { + return EntityPool.GetPedByID(id); + } + + /// + /// + /// + /// + /// + public static SyncedPed GetPedByHandle(int handle) { + return EntityPool.GetPedByHandle(handle); + } + + /// + /// + /// + /// + /// + public static SyncedVehicle GetVehicleById(int id) { + return EntityPool.GetVehicleByID(id); + } + + /// + /// + /// + /// + /// + public static SyncedVehicle GetVehicleByHandle(int handle) { + return EntityPool.GetVehicleByHandle(handle); + } #endregion } }