GTAG - Modding - Opcode Database - 0327
Opcode Database
0327
| Description | Gets a random car with the specified model in the specified area. |
|---|---|
| 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 | 0327=6,get_random_car_of_type_in_area %1d% %2d% to %3d% %4d% model %5d% store_to %6d% |
| Example | 0327: get_random_car_of_type_in_area $111 $112 to $114 $115 model -1 store_to $TEMPVAR_ACTOR_CAR |
| Command Name | GET_RANDOM_CAR_OF_TYPE_IN_AREA |
| Vice City | |
| sascm.ini | 0327=6,%6d% = create_random_car_with_actors %5d% in_area %1d% %2d% %3d% %4d% |
| Example | 0327: $4238 = create_random_car_with_actors -1 in_area $4323 $4324 $4326 $4327 |
| Command Name | GET_RANDOM_CAR_OF_TYPE_IN_AREA |
| GTA III | |
| gtascm.ini | 0327=6,%6d% = create_random_car_with_actors %5d% in_area %1d% %2d% %3d% %4d% |
| Example | 0327: $2494 = create_random_car_with_actors -1 in_area 900.4375 -431.8749 905.75 -419.9374 |
| Command Name | GET_RANDOM_CAR_OF_TYPE_IN_AREA |

