Difference between revisions of "0431"
Jump to navigation
Jump to search
(page updates) |
|||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | 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 | ||
− | | | + | | syntax1 = 0431: car [''car handle''] car_passenger_seat_free [''int''] |
− | | | + | | p1t = [''car handle''] |
− | | | + | | 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 | + | |
− | {| | + | 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. |
− | + | ||
− | ! Four-seat | + | {| class="wikitable center-col-1" |
− | + | ! 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
- 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