Add vehicle occupants native wrap

This commit is contained in:
Vortrex
2023-02-23 01:16:16 -06:00
parent efea8a015f
commit b632e1d26b

View File

@@ -1471,4 +1471,19 @@ function addAllEventHandlers() {
}
}
// ===========================================================================
function getVehicleOccupants(vehicle) {
let occupants = [];
let clients = getClients();
for (let i in clients) {
if (getPlayerVehicle(clients[i]) == vehicle) {
occupants.push(clients[i]);
}
}
return occupants;
}
// ===========================================================================