SHARE
TWEET

Untitled

a guest May 12th, 2018 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   Game.SetControlNormal(2, GTA.Control.Phone, 1.0f);
  2.  
  3.             //get the handle from the current players phone taken from from https://github.com/CamxxCore/iFruitAddon/blob/master/CustomiFruit.cs
  4.             int Handle;
  5.  
  6.             var model = (uint)Game.Player.Character.Model.Hash;
  7.  
  8.             switch (model)
  9.             {
  10.                 case (uint)PedHash.Michael:
  11.                     Handle = Function.Call<int>(Hash.REQUEST_SCALEFORM_MOVIE, "cellphone_ifruit");
  12.                     break;
  13.                 case (uint)PedHash.Franklin:
  14.                     Handle = Function.Call<int>(Hash.REQUEST_SCALEFORM_MOVIE, "cellphone_badger");
  15.                     break;
  16.                 case (uint)PedHash.Trevor:
  17.                     Handle = Function.Call<int>(Hash.REQUEST_SCALEFORM_MOVIE, "cellphone_facade");
  18.                     break;
  19.                 default:
  20.                     Handle = Function.Call<int>(Hash.REQUEST_SCALEFORM_MOVIE, "cellphone_ifruit");
  21.                     break;
  22.             }
  23.  
  24.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "SET_DATA_SLOT");
  25.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  26.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 0);
  27.  
  28.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 100);
  29.  
  30.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 90);// rotation
  31.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 150);// distance if to high will crash
  32.  
  33.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 1);
  34.  
  35.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_BOOL, 1);
  36.  
  37.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_FLOAT, 1.0f);
  38.  
  39.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  40.  
  41.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "DISPLAY_VIEW");
  42.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  43.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 1);
  44.  
  45.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  46.  
  47.             Wait(1000);
  48.  
  49.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "SET_DATA_SLOT");
  50.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  51.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 0);
  52.  
  53.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 90);// rotation
  54.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 150);// distance if to high will crash
  55.  
  56.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 100);
  57.  
  58.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_BOOL, 0);
  59.  
  60.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_FLOAT, 10.0f);
  61.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 10);
  62.  
  63.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  64.  
  65.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "DISPLAY_VIEW");
  66.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  67.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 1);
  68.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  69.  
  70.             Wait(1000);
  71.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "SET_DATA_SLOT");
  72.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  73.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 0);
  74.  
  75.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 0);// rotation
  76.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 150);// distance if to high will crash
  77.  
  78.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 100);
  79.  
  80.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  81.  
  82.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "DISPLAY_VIEW");
  83.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  84.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 1);
  85.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  86.  
  87.             Wait(5000);
  88.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "SET_DATA_SLOT");
  89.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  90.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 0);
  91.  
  92.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 90);// rotation
  93.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 150);// distance if to high will crash
  94.  
  95.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 100);
  96.  
  97.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
  98.  
  99.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION, Handle, "DISPLAY_VIEW");
  100.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 23);
  101.             Function.Call(Hash._PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT, 1);
  102.             Function.Call(Hash._POP_SCALEFORM_MOVIE_FUNCTION_VOID);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top