Difference between revisions of "046C"

From GTAMods Wiki
Jump to navigation Jump to search
(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 ''...")
 
 
Line 6: Line 6:
 
: 046C: [''var''] = car [''car handle''] driver  
 
: 046C: [''var''] = car [''car handle''] driver  
 
'''Parameter'''
 
'''Parameter'''
 +
: [''car handle'']
 +
:: The handle of the vehicle
 
: [''var'']
 
: [''var'']
 
:: Variable to store the handle of the ped driving the vehicle
 
:: Variable to store the handle of the ped driving the vehicle
: [''car handle'']
 
:: The handle of the vehicle
 
 
'''Native analog'''
 
'''Native analog'''
 
: [[GET_DRIVER_OF_CAR]]
 
: [[GET_DRIVER_OF_CAR]]

Latest revision as of 00:39, 20 November 2016

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

[car handle]
The handle of the vehicle
[var]
Variable to store the handle of the ped driving 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