mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-19 07:28:04 +08:00
feat(Util/Vehicle): Added repair function
This commit is contained in:
parent
1290f2a366
commit
dc6f9f2ed6
@ -29,6 +29,17 @@ namespace big::vehicle
|
|||||||
return VEHICLE::GET_CLOSEST_VEHICLE(location.x, location.y, location.z, range, 0, flags);
|
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)
|
inline int spawn(const char* model, Vector3 location, float heading)
|
||||||
{
|
{
|
||||||
Hash hash = rage::joaat(model);
|
Hash hash = rage::joaat(model);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user