some good funny cars that they have?
pls
pls
(07-20-2018 - 10:25 AM)Manuelgta5 Wrote: some good funny cars that they have?
pls
bool doWheelbarrow = false;
bool doBumpercar = false;
bool doWheelchair = false;
bool doCouch = false;
bool doToilet = false;
bool doTrolley = false;
bool spawnTrolley()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = 0, a.y = 0, a.z = 0;
Vector3 b; b.x = 0, b.y = 2, b.z = 0;
int hash = GAMEPLAY::GET_HASH_KEY("carbonrs");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_rub_trolley01a");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Trolley~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
bool spawnToilet()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(Handle, 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = 0, a.y = -0.4f, a.z = 0.1f;
Vector3 b; b.x = 0, b.y = 0, b.z = 180;
int hash = GAMEPLAY::GET_HASH_KEY("blazer");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_ld_toilet_01");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Toilet~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
bool spawnCouch()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(Handle, 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = 0, a.y = -0.4f, a.z = 0;
Vector3 b; b.x = 0, b.y = 0, b.z = 180.0f;
int hash = GAMEPLAY::GET_HASH_KEY("dune");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_t_sofa");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Couch~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
bool spawnWheelchair()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(Handle, 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = -0.27, a.y = -0.24, a.z = 0.13f;
Vector3 b; b.x = 0, b.y = 0, b.z = 180;
int hash = GAMEPLAY::GET_HASH_KEY("caddy2");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_wheelchair_01");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Wheelchair~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
bool spawnBumpercar()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(Handle, 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = -0.34, a.y = 0.32, a.z = -0.25;
Vector3 b; b.x = 0, b.y = 0, b.z = 180;
int hash = GAMEPLAY::GET_HASH_KEY("blista");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_bumper_car_01");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Bumper Car~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
bool spawnWheelbarrow()
{
uint Handle = PLAYER::PLAYER_PED_ID();
Vector3 MyCoords = ENTITY::GET_ENTITY_COORDS(Handle, 1);
Vector3 null; null.x = 0, null.y = 0; null.z = 0;
Vector3 a; a.x = 0, a.y = -0.62, a.z = 0.12;
Vector3 b; b.x = 0, b.y = 41.0, b.z = 90.0;
int hash = GAMEPLAY::GET_HASH_KEY("bati");
int hash2 = GAMEPLAY::GET_HASH_KEY("prop_wheelbarrow01a");
STREAMING::REQUEST_MODEL(hash);
STREAMING::REQUEST_MODEL(hash2);
if (STREAMING::HAS_MODEL_LOADED(hash) && STREAMING::HAS_MODEL_LOADED(hash2))
{
int Object = OBJECT::CREATE_OBJECT(hash2, null.x, null.y, null.z, 1, 1, 1);
if (ENTITY::DOES_ENTITY_EXIST(Object))
{
int Vehicle = VEHICLE::CREATE_VEHICLE(hash, MyCoords.x, MyCoords.y, MyCoords.z, ENTITY::GET_ENTITY_HEADING(Handle), 1, 0);
if (ENTITY::DOES_ENTITY_EXIST(Vehicle))
{
PED::SET_PED_INTO_VEHICLE(PLAYER::PLAYER_PED_ID(), Vehicle, -1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_ENTITY_VISIBLE(Vehicle, false);
ENTITY::ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, a.x, a.y, a.z, b.x, b.y, b.z, 0, 1, 0, 0, 2, 1);
drawNotification("Spawned: ~b~Wheelbarrow~HUD_COLOUR_WHITE~!");
ENTITY::SET_ENTITY_VISIBLE(Handle, true);
return true;
}
return false;
}
return false;
}
return false;
}
if (doWheelbarrow)
{
if (spawnWheelbarrow())
{
doWheelbarrow = false;
}
}
if (doBumpercar)
{
if (spawnBumpercar())
{
doBumpercar = false;
}
}
if (doWheelchair)
{
if (spawnWheelchair())
{
doWheelchair = false;
}
}
if (doCouch)
{
if (spawnCouch())
{
doCouch = false;
}
}
if (doToilet)
{
if (spawnToilet())
{
doToilet = false;
}
}
if (doTrolley)
{
if (spawnTrolley())
{
doTrolley = false;
}
}