Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Wheelchair()
- {
- Vector3 MyCoords = GET_ENTITY_COORDS(PLAYER_PED_ID(), true);
- Hash Caddy_Hash = GET_HASH_KEY("caddy2");
- REQUEST_MODEL(Caddy_Hash);
- if (HAS_MODEL_LOADED(Caddy_Hash))
- {
- int Vehicle = CREATE_VEHICLE(Caddy_Hash, MyCoords.x, MyCoords.y, MyCoords.z, GET_ENTITY_HEADING(Handle), 1, 0);
- if (Vehicle != 0)
- {
- int Object = CREATE_OBJECT(GET_HASH_KEY("prop_wheelchair_01"), 0, 0, 0, true, true, false);
- if (DOES_ENTITY_EXIST(Object))
- {
- SET_PED_INTO_VEHICLE(PLAYER_PED_ID(), Vehicle, -1);
- if (IS_PED_IN_ANY_VEHICLE(Handle, 0))
- {
- SET_ENTITY_VISIBLE(Vehicle, false);
- ATTACH_ENTITY_TO_ENTITY(Object, Vehicle, 0, -0.27, -0.24, 0.13, 0, 0, 180, 0, 1, 0, 0, 2, 1);
- set_status_text("~g~Spawned: ~HUD_COLOUR_WHITE~Wheelchair!");
- SET_ENTITY_VISIBLE(Handle, true);
- }
- }
- SET_MODEL_AS_NO_LONGER_NEEDED(Caddy_Hash);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement