GTAG - Modding - Opcode Database - 053E
Opcode Database
053E
| Description | Loops 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) |
| Games | |
| Category | Common, Vehicle |
| San Andreas | |
| sascm.ini | 053E=6,get_random_car_of_type_in_area_no_save %1d% %2d% to %3d% %4d% model %5d% store_to %6d% |
| Example | 053E: get_random_car_of_type_in_area_no_save 120@ 121@ to 122@ 123@ model -1 store_to 38@ |
| Command Name | GET_RANDOM_CAR_OF_TYPE_IN_AREA_NO_SAVE |
| Vice City | |
| sascm.ini | 053E=6,get_random_car_of_type_in_area_no_save %1d% %2d% to %3d% %4d% model %5d% store_to %6d% |
| Example | 053E: get_random_car_of_type_in_area_no_save $2657 $2658 to $445 $446 model -1 store_to $2471 |
| Command Name | GET_RANDOM_CAR_OF_TYPE_IN_AREA_NO_SAVE |

