Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 053E

Opcode Database

053E

DescriptionLoops through the pool of vehicles to retrieve one that matches the specified model in the specified 2D area. The command returns the vehicles handle and sets a flag in the vehicle to specify it has been owned by the player. Returns -1 on failure.
Parameters (v2)1) X Coord (Float) (FLOAT)
2) Y Coord (Float) (FLOAT)
3) X Coord (Float) (FLOAT)
4) Y Coord (Float) (FLOAT)
5) Model (Integer) (MODEL)
6) (Returned) Vehicle handle (Integer) (INT)
Gamessa vc
CategoryCommon, Vehicle
San Andreas
sascm.ini053E=6,get_random_car_of_type_in_area_no_save %1d% %2d% to %3d% %4d% model %5d% store_to %6d%
Example053E: get_random_car_of_type_in_area_no_save 120@ 121@ to 122@ 123@ model -1 store_to 38@
Command NameGET_RANDOM_CAR_OF_TYPE_IN_AREA_NO_SAVE
Vice City
sascm.ini053E=6,get_random_car_of_type_in_area_no_save %1d% %2d% to %3d% %4d% model %5d% store_to %6d%
Example053E: get_random_car_of_type_in_area_no_save $2657 $2658 to $445 $446 model -1 store_to $2471
Command NameGET_RANDOM_CAR_OF_TYPE_IN_AREA_NO_SAVE

<< 053D

053F >>