046C

From GTAMods Wiki
Revision as of 18:19, 27 June 2015 by Seemann (talk | contribs) (Created page with "{{Icon|trilogy}} '''GET_DRIVER_OF_CAR''' <hr /> '''Description''' : Stores the handle of the driver of the car '''Syntax''' : 046C: [''var''] = car [''car handle''] driver ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas GET_DRIVER_OF_CAR


Description

Stores the handle of the driver of the car

Syntax

046C: [var] = car [car handle] driver

Parameter

[var]
Variable to store the handle of the ped driving the vehicle
[car handle]
The handle of the vehicle

Native analog

GET_DRIVER_OF_CAR

This opcode stores the handle of the ped driving the vehicle into the variable. The vehicle handle must be validated before using, or the game will crash. If the vehicle has no driver, the result is -1.

Keywords

car, vehicle, driver, ped, get, store