IS_VEHICLE_MODEL
Returns true if vehicle is of model model.
Signature
BOOL IS_VEHICLE_MODEL(Vehicle vehicle, Hash model); // 0x0045A54EC7A22455 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | model | Hash |
Facts
| Name | IS_VEHICLE_MODEL |
|---|---|
| Hash | 0x0045A54EC7A22455 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x0045A54EC7A22455, -- IS_VEHICLE_MODEL
0, -- Vehicle vehicle
GetHashKey("a_c_horse_arabian_white") -- Hash model
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x0045A54EC7A22455", // IS_VEHICLE_MODEL
0, // Vehicle vehicle
GetHashKey("a_c_horse_arabian_white"), // Hash model
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x0045A54EC7A22455, // IS_VEHICLE_MODEL
0, // Vehicle vehicle
(uint)API.GetHashKey("a_c_horse_arabian_white") // Hash model
);Related VEHICLE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.