Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 00D9

Opcode Database

00D9

DescriptionReturns the current vehicle of the character and adds it to the mission cleanup list.

It removes the last found vehicle from the mission cleanup list, if applicable. However, if the vehicle of the character is not found, the last found vehicle will be returned.

This opcode also works in normal scripts, however a lot of code is based on missions, so it is better to use 03C0 or 0811 depending on the situation.
Parameters (v2)1) Actor handle (Integer) (INT)
2) (Returned) Vehicle handle (Integer) (INT)
Gamessa vc iii
CategoryActor, Common, Mission, Vehicle
Command Name (IV)STORE_CAR_CHAR_IS_IN
San Andreas
sascm.ini00D9=2,store_car_char_is_in %1d% store_to %2d%
Example00D9: store_car_char_is_in $PLAYER_ACTOR store_to 68@
Command NameSTORE_CAR_CHAR_IS_IN
Vice City
sascm.ini00D9=2,store_car_char_is_in %1d% store_to %2d%
Example00D9: store_car_char_is_in 0@ store_to $2816
Command NameSTORE_CAR_CHAR_IS_IN
GTA III
gtascm.ini00D9=2,store_car_char_is_in %1d% store_to %2d%
Example00D9: store_car_char_is_in $CRIMINAL_FOR_VIGILANTE store_to $VIGILANTE_CRIMINALS_CAR
Command NameSTORE_CAR_CHAR_IS_IN

<< 00D8

00DA >>