Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void give_ownership()
- {
- if (DOES_ENTITY_EXIST(GET_PLAYER_PED(SelectedClient)))
- {
- if (IS_PED_IN_ANY_VEHICLE(GET_PLAYER_PED(SelectedClient), 1))
- {
- Vehicle veh = GET_VEHICLE_PED_IS_IN(GET_PLAYER_PED(SelectedClient), 1);
- int hash = _0xF8D7AF3B(SelectedClient);
- if (RequestLoop(veh))
- {
- SET_ENTITY_AS_MISSION_ENTITY(veh, 0, 1);
- DECOR_REMOVE(veh, "Player_Vehicle"); //0xE0E2640B = DECOR_REMOVE
- //0xDB718B21 = DECOR_SET_INT
- DECOR_SET_INT(veh, "Player_Vehicle", hash);
- DECOR_SET_INT(veh, "Veh_Modded_By_Player", hash);
- DECOR_SET_INT(veh, "PV_Slot", 2);
- DECOR_SET_INT(veh, "Previous_Owner", hash);
- PrintMessage("Work in progress\nYou can drive this vehicle into your garage now");
- }
- }
- else
- PrintMessage(Format("%s is not in a vehicle", players[SelectedClient].name));
- }
- else
- PrintMessage("Player no longer in game");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement