Difference between revisions of "0431"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0431=2, %1d% %2d% | description = Checks if the passenger seat of the vehicle is free | p1 = Vehicle handle | p2 = Flag | game = GTA3, Vi...)
 
(page updates)
 
(One intermediate revision by the same user not shown)
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]]
 
}}
 
}}
==Flags==
 
The flag is the position of the seat.<br>
 
0 Front right seat<br>
 
1 Rear left seat<br>
 
2 Rear right seat
 
  
==Keywords==
+
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.
 +
 
 +
{| class="wikitable center-col-1"
 +
! 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
 
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