feat(Util/Vehicle): Added repair function
This commit is contained in:
parent
e1d5d3ee46
commit
b3dd9a6756
@ -29,6 +29,17 @@ namespace big::vehicle
|
||||
return VEHICLE::GET_CLOSEST_VEHICLE(location.x, location.y, location.z, range, 0, flags);
|
||||
}
|
||||
|
||||
inline bool repair(Vehicle veh)
|
||||
{
|
||||
if (!ENTITY::IS_ENTITY_A_VEHICLE(veh)) return false;
|
||||
|
||||
VEHICLE::SET_VEHICLE_FIXED(veh);
|
||||
VEHICLE::SET_VEHICLE_DEFORMATION_FIXED(veh);
|
||||
VEHICLE::SET_VEHICLE_DIRT_LEVEL(veh, 0.f);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
inline int spawn(const char* model, Vector3 location, float heading)
|
||||
{
|
||||
Hash hash = rage::joaat(model);
|
||||
|
Reference in New Issue
Block a user