Difference between revisions of "0431"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0431=2,  %1d% %2d%
+
| games      = {{Icon|t}}
 +
| command    = IS_CAR_PASSENGER_SEAT_FREE
 
| description = Checks if the passenger seat of the vehicle is free
 
| description = Checks if the passenger seat of the vehicle is free
| p1          = Vehicle handle
+
| syntax1    = 0431:   car [''car handle''] car_passenger_seat_free [''int'']
| p2          = Flag
+
| p1t        = [''car handle'']
| game        = GTA3, Vice City, San Andreas
+
| p1d        = The handle of the vehicle
 +
| p2t        = [''int'']
 +
| p2d        = Seat number
 
| native      = [[IS_CAR_PASSENGER_SEAT_FREE]]
 
| native      = [[IS_CAR_PASSENGER_SEAT_FREE]]
 
}}
 
}}
This opcode returns true if the vehicle's specific seat is free. It returns false if it's not free or if the passenger seat number is invalid.
+
 
{| {{prettytable}}
+
This conditional opcode returns true when the vehicle's passenger seat is free. It returns false when it is not free or when the seat number is invalid.
! Flag
+
 
! Four-seat
+
{| class="wikitable center-col-1"
! Two-seat
+
! Seat || Four-seat || Two-seat
 
|-
 
|-
 
| 0 || front right seat || rear seat
 
| 0 || front right seat || rear seat
Line 20: Line 23:
 
|}
 
|}
  
==Keywords==
+
== Keywords ==
 
check, car, vehicle, passenger, seat, free, empty
 
check, car, vehicle, passenger, seat, free, empty

Latest revision as of 08:28, 16 January 2016

GTA III Vice City San Andreas IS_CAR_PASSENGER_SEAT_FREE


Description
Checks if the passenger seat of the vehicle is free
Syntax
0431:   car [car handle] car_passenger_seat_free [int]
Parameter
[car handle]
The handle of the vehicle
[int]
Seat number
Native analog
IS_CAR_PASSENGER_SEAT_FREE

This conditional opcode returns true when the vehicle's passenger seat is free. It returns false when it is not free or when the seat number is invalid.

Seat Four-seat Two-seat
0 front right seat rear seat
1 rear left seat
2 rear right seat

Keywords

check, car, vehicle, passenger, seat, free, empty