Use in vehicle seat var instead of loop
This commit is contained in:
@@ -285,11 +285,13 @@ function setLocalPlayerDrunkEffect(amount, duration) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function getLocalPlayerVehicleSeat() {
|
function getLocalPlayerVehicleSeat() {
|
||||||
for (let i = 0; i <= 4; i++) {
|
return inVehicleSeat;
|
||||||
if (localPlayer.vehicle.getOccupant(i) == localPlayer) {
|
|
||||||
return i;
|
//for (let i = 0; i <= 4; i++) {
|
||||||
}
|
// if (localPlayer.vehicle.getOccupant(i) == localPlayer) {
|
||||||
}
|
// return i;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user