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...)
 
Line 7: Line 7:
 
| native      = [[IS_CAR_PASSENGER_SEAT_FREE]]
 
| native      = [[IS_CAR_PASSENGER_SEAT_FREE]]
 
}}
 
}}
==Flags==
+
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.
The flag is the position of the seat.<br>
+
{| {{prettytable}}
0 Front right seat<br>
+
! Flag
1 Rear left seat<br>
+
! Four-seat
2 Rear right seat
+
! Two-seat
 +
|-
 +
| 0 || front right seat || rear seat
 +
|-
 +
| 1 || rear left seat ||
 +
|-
 +
| 2 || rear right seat ||
 +
|}
  
 
==Keywords==
 
==Keywords==
 
check, car, vehicle, passenger, seat, free, empty
 
check, car, vehicle, passenger, seat, free, empty

Revision as of 02:33, 1 May 2010

{{{games}}}


Description
Checks if the passenger seat of the vehicle is free
Syntax
{{{syntax1}}}
Parameter
Native analog
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.

Flag 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