Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cops_cheatLoop(){
- set_entity_visible(copsobj, false);(PlayerId());
- }
- ///////////////////////////////////////////////
- if (cheat_cops){
- cops_cheatLoop();
- }
- //////////////////////////////
- if (cheat_cops){
- float h;
- h = get_entity_heading(PlayerPedId());
- printf("Got my heading\n");
- copsobj = create_object(model, Position[0], Position[1], Position[2]);
- set_entity_coords(copsobj, -1938.795410, -995.770630, 14.479980, 1, 0, 0, 1);
- set_entity_rotation(copsobj,180,90,180,2,1);
- freeze_entity_position(copsobj, true);
- ShowMessageOnScreen("~g~ Active");
- cheat_cops = false;
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- int copsobj;
- ////////////////////////
- code for the function
- bool cops_cheatLoop1 = false;
- int CopsCheat(int selectedIndex, vector<int> *selectedMenuIndexes, char *itemText, void *functionParameters) {
- if(!cheat_cops){
- cheat_cops = true;
- model = -1096777189;
- objectspawn = true;
- model = -1096777189;
- set_entity_visible(copsobj, false);
- objectspawn = true;
- cops_cheatLoop1 = true;
- ShowMessageOnScreen("~y~ Cops Cheat: ~g~ON!");
- }
- else if(cheat_cops){
- cheat_cops = false;
- cops_cheatLoop1 = false;
- ShowMessageOnScreen("~y~ Cops Cheat: ~r~OFF!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment