Advertisement
davedumas0

playing with the fake(GTA) internet(updated 10-24-2017

Sep 24th, 2017
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 35.95 KB | None | 0 0
  1. function enableScriptForMP()
  2.   NetworkSetThisScriptIsNetworkScript(32, 0, PlayerId())
  3.    StatSetBool(GetHashKey("mp0_cl_buy_appartment"), 1, 1)
  4.    StatSetBool(GetHashKey("mp0_cl_buy_insurance"), 1, 1)
  5.    StatSetBool(GetHashKey("mp0_cl_buy_garage"), 1, 1)
  6.    StatSetBool(GetHashKey("mp0_cl_buy_garage"), 1, 1)
  7.   end
  8. enableScriptForMP()
  9.  
  10. bvar = 0.0
  11. pageDYN8EX3 = false
  12. function enableMouse()
  13.  PushScaleformMovieFunction(scaleform, "SET_MOUSE_INPUT")
  14.  PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 239))
  15.  PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 240))
  16.  PushScaleformMovieFunctionParameterInt(-1)
  17.  PopScaleformMovieFunctionVoid()
  18.  if HasNamedScaleformMovieLoaded("web_browser") then
  19.    
  20.  end
  21.  --IsControlJustPressed(2, 242)        
  22.   if IsControlJustPressed(2, 242) then
  23.    Citizen.Trace("is control 242 "..tostring(IsControlJustPressed(2, 241)).." bvar: "..tostring(bvar))
  24.    if bvar <= 0.0 then
  25.     bvar = 20.0
  26.    else
  27.     bvar = bvar + 20.0
  28.      if bvar >=100.0 then
  29.       bvar = 100.0
  30.      end
  31.    end
  32.   end
  33.   if IsControlJustPressed(2, 241) then
  34.    Citizen.Trace("is control 241 "..tostring(IsControlJustPressed(2, 241)).." bvar: "..tostring(bvar))
  35.    if bvar > 0.0 then
  36.     bvar = 0.0
  37.    else
  38.     bvar = bvar - 20.0
  39.      if bvar <=100.0 then
  40.       bvar = -100.0
  41.      end
  42.    end
  43.   end  
  44.  
  45.  PushScaleformMovieFunction(scaleform, "SET_ANALOG_STICK_INPUT")
  46.  PushScaleformMovieFunctionParameterFloat(0.0)
  47.  PushScaleformMovieFunctionParameterFloat(0.0)
  48.  PushScaleformMovieFunctionParameterFloat(bvar)
  49.  PushScaleformMovieFunctionParameterBool(false)                
  50.  PopScaleformMovieFunctionVoid()
  51.  
  52. end
  53.  
  54. function enableControlActions()
  55.  
  56. -------input group "INPUTGROUP_LOOK "---------
  57. ----control name "INPUT_MULTIPLAYER_INFO"-----
  58.  
  59.       EnableControlAction(1, 20, 1)
  60.       EnableControlAction(1, 21, 1)  
  61. --------------button/key "z"------------------
  62. --******************************************--
  63. -------input group "INPUTGROUP_LOOK "---------
  64. -------control name "INPUT_PICKUP"------------
  65.  
  66.       EnableControlAction(1, 38, 1)
  67. --------------button/key "e"------------------
  68. --******************************************--
  69. -------input group "INPUTGROUP_LOOK "---------
  70. --------control name "INPUT_COVER"------------   
  71.  
  72.       EnableControlAction(1, 44, 1)
  73. --------------button/key "q"------------------
  74. --******************************************--
  75. -------input group "INPUTGROUP_LOOK "---------
  76. --control name "INPUT_FRONTEND_DOWN "--
  77.  
  78.       EnableControlAction(2, 187, 1)
  79. --------------button/key "down"------------------
  80. --******************************************--
  81. -------input group "INPUTGROUP_LOOK "---------
  82. --control name "INPUT_FRONTEND_UP"--
  83.  
  84.       EnableControlAction(2, 188, 1)
  85. --------------button/key "up"------------------
  86. --******************************************--
  87. -------input group "INPUTGROUP_LOOK "---------
  88. --control name "INPUT_FRONTEND_RIGHT_AXIS_X "--
  89.  
  90.       EnableControlAction(2, 197, 1)
  91. --------------button/key "p"------------------
  92. --******************************************--
  93. -------input group "INPUTGROUP_LOOK "---------
  94. --control name "INPUT_FRONTEND_RIGHT_AXIS_Y"--
  95.  
  96.       EnableControlAction(2, 198, 1)
  97. --------------button/key "p"------------------
  98. --******************************************--
  99. -------input group "INPUTGROUP_LOOK "---------
  100. ------control name "INPUT_FRONTEND_PAUSE"-----
  101.  
  102.       EnableControlAction(2, 199, 1)
  103. --------------button/key "p"------------------
  104. --******************************************--
  105. --******************************************--
  106. -------input group "INPUTGROUP_LOOK "---------
  107. ------control name "INPUT_FRONTEND_LB"--------  
  108.  
  109.       EnableControlAction(2, 201, 1)
  110. ----button/key "left controller button"-------
  111. --******************************************--
  112. -------input group "INPUTGROUP_LOOK "---------
  113. ------control name "INPUT_FRONTEND_RB"--------   
  114.  
  115.       EnableControlAction(2, 202, 1)
  116. -----button/key "right controller button"-----
  117. -------input group "INPUTGROUP_LOOK "---------
  118. ------control name "INPUT_FRONTEND_LB"--------  
  119.  
  120.       EnableControlAction(2, 205, 1)
  121. ----button/key "left controller button"-------
  122. --******************************************--
  123. -------input group "INPUTGROUP_LOOK "---------
  124. ------control name "INPUT_FRONTEND_RB"--------   
  125.  
  126.       EnableControlAction(2, 206, 1)
  127. -----button/key "right controller button"-----
  128. --******************************************--
  129. -------input group "INPUTGROUP_LOOK "---------
  130. ------control name "INPUT_FRONTEND_RB"--------   
  131.  
  132.       EnableControlAction(2, 207, 1)
  133. -----button/key "right controller button"-----
  134. --******************************************--
  135. -------input group "INPUTGROUP_LOOK "---------
  136. ------control name "INPUT_FRONTEND_RB"--------   
  137.  
  138.       EnableControlAction(2, 208, 1)
  139. -----button/key "right controller button"-----
  140. --******************************************--   
  141. -------input group "INPUTGROUP_LOOK "---------
  142. ------control name "INPUT_CURSOR_ACCEPT"------
  143.  
  144.       EnableControlAction(2, 237, 1)
  145. ---------button/key "left mouse button"-------
  146. --******************************************--   
  147. -------input group "INPUTGROUP_LOOK "---------
  148. ------control name "INPUT_CURSOR_CANCEL"------   
  149.  
  150.       EnableControlAction(2, 238, 1)
  151. -----button/key "right mouse button"-----
  152. --******************************************--
  153. -------input group "INPUTGROUP_LOOK "---------
  154. ------control name "INPUT_CURSOR_SCROLL_UP"------    
  155.  
  156.       EnableControlAction(2, 242, 1)
  157. -----button/key "right mouse button"-----
  158. --******************************************-- 
  159. -------input group "INPUTGROUP_LOOK "---------
  160. ------control name "INPUT_CURSOR_SCROLL_DOWN"------  
  161.  
  162.       EnableControlAction(2, 241, 1)
  163. -----button/key "right mouse button"-----
  164. --******************************************--       
  165. end
  166.  
  167.     NetworkRequestCloudBackgroundScripts()
  168.     NetworkRequestCloudTunables()
  169.     EnableMpDlcMaps(1)
  170.  
  171. enableControlActions()
  172. function bawsdaqButtons()
  173.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  174.    PushScaleformMovieFunctionParameterInt(0)
  175.     PushScaleformMovieFunctionParameterString("things")
  176.      PushScaleformMovieFunctionParameterFloat(101.0)
  177.   PopScaleformMovieFunctionVoid()
  178.   PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")  
  179.   PopScaleformMovieFunctionVoid()  
  180.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  181.    PushScaleformMovieFunctionParameterInt(3)   
  182.     PushScaleformMovieFunctionParameterString("things AND stuff")
  183.   PopScaleformMovieFunctionVoid()
  184.   PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")  
  185.   PopScaleformMovieFunctionVoid()  
  186.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  187.    PushScaleformMovieFunctionParameterInt(2)   
  188.     PushScaleformMovieFunctionParameterString("stuff")
  189.   PopScaleformMovieFunctionVoid()
  190.   PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")  
  191.   PopScaleformMovieFunctionVoid()
  192. end
  193. temp = 10
  194. function things(scaleforms)
  195.     if  disable2 == false then      
  196.       scaleform = RequestScaleformMovie(scaleforms)
  197.      if HasScaleformMovieLoaded(scaleform) then      
  198.       Set_2dLayer(4)        
  199.       enableMouse()
  200.       DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
  201.  
  202.       EnableControlAction(2, 237, 1)
  203. --------------------------------------------------------
  204. ---------------------enter button-----------------------
  205. if getcurentwebsitid == -1 and getcurentPage == -1 then
  206.   --refresh = true
  207.   pageDYN8EX0 = false
  208.        PushScaleformMovieFunction(scaleform, "WWW_EYEFIND_INFO")
  209.        PushScaleformMovieFunctionParameterInt(1)
  210.        PopScaleformMovieFunctionVoid()  
  211.  PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  212.  
  213.  PopScaleformMovieFunctionVoid()  
  214.  PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
  215.   BeginTextComponent("STRING")
  216.    AddTextComponentSubstringWebsite("WWW_EYEFIND_INFO")
  217.   EndTextComponent()
  218.   PushScaleformMovieFunctionParameterInt(2)
  219.   PushScaleformMovieFunctionParameterBool(true)    
  220.  PopScaleformMovieFunctionVoid()
  221.  PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  222.  PushScaleformMovieFunctionParameterInt(2)
  223.  PushScaleformMovieFunctionParameterInt(1)
  224.  PopScaleformMovieFunctionVoid()
  225.  
  226. end      
  227. if IsControlJustPressed(1, 237) then
  228.  if HasNamedScaleformMovieLoaded("web_browser") then
  229.   SetPedConfigFlag(PlayerPedId(), 185, true)
  230. PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  231. PushScaleformMovieFunctionParameterInt(0)
  232. PushScaleformMovieFunctionParameterInt(2)
  233. PopScaleformMovieFunctionVoid()
  234.   PushScaleformMovieFunctionParameterFloat(16.0)
  235.   PushScaleformMovieFunction(scaleform, "SET_INPUT_EVENT")
  236.   PushScaleformMovieFunctionParameterFloat(16.0)
  237.   PopScaleformMovieFunctionVoid()  
  238.  else
  239.  
  240.   PopScaleformMovieFunctionVoid()
  241.  end
  242.  
  243.    PushScaleformMovieFunction(scaleform, "GET_PAGE_ID")
  244.    PageID = PopScaleformMovieFunction()
  245.    selectionBool = Citizen.InvokeNative(0x768FF8961BA904D6, getCurrentSelection)
  246.    ScreenIDBool = Citizen.InvokeNative(0x768FF8961BA904D6, siteID)
  247.    PageIDBool = Citizen.InvokeNative(0x768FF8961BA904D6, PageID)
  248.    vVar = Citizen.InvokeNative(0x2DE7EFA66B906036, getCurrentSelection)
  249.    VVar = Citizen.InvokeNative(0x3E42690032C25806, getCurrentSelection)
  250.    nVar = Citizen.InvokeNative(0x2DE7EFA66B906036, siteID)
  251.    wvar = Citizen.InvokeNative(0x3E42690032C25806, siteID)
  252.    Nvar = Citizen.InvokeNative(0x2DE7EFA66B906036, PageID)
  253.    Wvar = Citizen.InvokeNative(0x3E42690032C25806, PageID)
  254.     temp666 = Citizen.InvokeNative(0x480F189CC5FA231A)
  255.     temp667 = Citizen.InvokeNative(0x3F05E113B2E5885C)
  256.    wVar = Round(0.0 + 1000.0 * Timestep())
  257.    Citizen.InvokeNative(0x3F369CD14982FA9D, GetHashKey(wvar), wVar + wvar)
  258.    Citizen.Trace("selectionBool: "..tostring(selectionBool).." ScreenIDBool: "..tostring(ScreenIDBool).." PageIDBool: "..tostring(PageIDBool))
  259.    Citizen.Trace(" get current selection: "..tostring(vVar).." get current websiteID: "..tostring(nVar).." get current page ID "..tostring(Wvar).." temp666 "..tostring(temp666).." temp667 "..tostring(temp667))
  260.    PushScaleformMovieFunction(scaleform, "GET_CURRENT_ROLLOVER")
  261.    getCurrentSelection = PopScaleformMovieFunction()
  262.    PushScaleformMovieFunction(scaleform, "GET_SITE_ID")
  263.    siteID = PopScaleformMovieFunction()    
  264.  
  265.  
  266. if getcurentPage == 1 or getcurentPage == -1 or getcurentwebsitid == 2 then
  267.  
  268.  refresh = true
  269. else
  270.  refresh = false
  271. end
  272.  
  273. if getcurentwebsitid == 4 and getcurentPage == 1 and page1 == false then
  274.    page1 = true
  275.    --refresh = true
  276.   if page1 == true then
  277.   bawsdaqButtons()
  278.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  279.    PushScaleformMovieFunctionParameterInt(1)
  280.    PushScaleformMovieFunctionParameterString("FU")
  281.   PopScaleformMovieFunctionVoid()
  282.    PushScaleformMovieFunctionParameterInt(2)
  283.    PushScaleformMovieFunctionParameterString("FUK")
  284.   PopScaleformMovieFunctionVoid()
  285.   PushScaleformMovieFunction(scaleform, "SET_PRICES")
  286.    PushScaleformMovieFunctionParameterInt(2)
  287.     PushScaleformMovieFunctionParameterInt(100)
  288.   PopScaleformMovieFunctionVoid()    
  289.  page3 = false
  290.  page2 = false
  291.  page1 = true
  292.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  293.    PopScaleformMovieFunctionVoid()  
  294.  end
  295. end
  296.  
  297. if getcurentwebsitid == 2 and getcurentPage == 4 then
  298.    --refresh = true
  299.    --bawsdaqButtons()
  300.   page3 = false
  301.   page1 = false
  302.   page2 = false
  303. else
  304.   page2 = false
  305. end
  306.  
  307. if getcurentwebsitid == 4 and getcurentPage == 3 and page3 == false then
  308.   --refresh = true
  309.    bawsdaqButtons()
  310.   page2 = false
  311.   page1 = false
  312.   page3 = false
  313. else
  314.   page3 = false
  315. end
  316.  
  317. if getcurentwebsitid == 10 and getcurentPage == 1 and pageLG1 == false then
  318.     --refresh = true
  319.     pageLG1 = true
  320.      legendSiteVar = 0
  321.   if pageLG1 == true then
  322.    while legendSiteVar <=66 do    
  323.      PushScaleformMovieFunction(scaleform, "SET_PRICES")
  324.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  325.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  326.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  327.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  328.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  329.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  330.       PushScaleformMovieFunctionParameterInt(-1)
  331.      PushScaleformMovieFunctionParameterInt(legendSiteVar)
  332.      PopScaleformMovieFunctionVoid()    
  333.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  334.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  335.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  336.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  337.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  338.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  339.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  340.       PushScaleformMovieFunctionParameterInt(-1)
  341.      PushScaleformMovieFunctionParameterInt(legendSiteVar)
  342.       --PushScaleformMovieFunctionParameterInt(legendSiteVar)
  343.       --PushScaleformMovieFunctionParameterFloat(ToFloat(legendSiteVar))
  344.      PopScaleformMovieFunctionVoid()
  345.      PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  346.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  347.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  348.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  349.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  350.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  351.       PushScaleformMovieFunctionParameterInt(legendSiteVar)
  352.       PushScaleformMovieFunctionParameterInt(-1)
  353.      PushScaleformMovieFunctionParameterInt(legendSiteVar)
  354.      PopScaleformMovieFunctionVoid()         
  355.       legendSiteVar = legendSiteVar + 1
  356.    end
  357.   pageLG1 = true
  358.     PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  359.     PopScaleformMovieFunctionVoid()  
  360.   end
  361. else
  362.  pageLG1 = false
  363. end
  364.  
  365. if getcurentwebsitid == 11 and getcurentPage == 1 and pagePL1 == false then
  366.     --refresh = true
  367.     pagePL1 = true
  368.      planeSiteVar = 0
  369.  if pagePL1 == true then
  370.    while planeSiteVar <=28 do    
  371.      PushScaleformMovieFunction(scaleform, "SET_PRICES")
  372.      PushScaleformMovieFunctionParameterInt(planeSiteVar)
  373.      PushScaleformMovieFunctionParameterInt(planeSiteVar)
  374.      PopScaleformMovieFunctionVoid()    
  375.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  376.       PushScaleformMovieFunctionParameterInt(planeSiteVar)
  377.       PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
  378.      PopScaleformMovieFunctionVoid()  
  379.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  380.       PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
  381.       PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
  382.      PopScaleformMovieFunctionVoid()    
  383.      PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  384.       PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
  385.        PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
  386.      PopScaleformMovieFunctionVoid()     
  387.       planeSiteVar = planeSiteVar + 1
  388.    end
  389.   pagePL1 = true
  390.     PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  391.     PopScaleformMovieFunctionVoid()
  392.  end
  393.  else
  394.  pagePL1 = false
  395. end
  396.  
  397. if getcurentwebsitid == 12 and getcurentPage == 1 and pageWAR1 == false then
  398.    --refresh = true
  399.    pageWAR1 = true
  400.      WARSTOCKSiteVar = 0
  401.   if pageWAR1 == true then
  402.    while WARSTOCKSiteVar <=45 do    
  403.     PushScaleformMovieFunction(scaleform, "SET_PRICES")
  404.     PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  405.     PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  406.     PopScaleformMovieFunctionVoid()    
  407.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  408.      PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  409.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  410.     PopScaleformMovieFunctionVoid()  
  411.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  412.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  413.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  414.     PopScaleformMovieFunctionVoid()    
  415.     PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  416.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  417.       PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  418.     PopScaleformMovieFunctionVoid()
  419.  
  420.      WARSTOCKSiteVar = WARSTOCKSiteVar + 1
  421.     end
  422.  pageWAR1 = true
  423.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  424.    PopScaleformMovieFunctionVoid()  
  425.  end
  426. else
  427. pageWAR1 = false
  428. end
  429.  
  430. if getcurentwebsitid == 12 and getcurentPage == 1 and pageWAR1 == false then
  431.    --refresh = true
  432.    pageWAR1 = true
  433.      WARSTOCKSiteVar = 0
  434.   if pageWAR1 == true then
  435.    while WARSTOCKSiteVar <=45 do    
  436.     PushScaleformMovieFunction(scaleform, "SET_PRICES")
  437.     PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  438.     PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  439.     PopScaleformMovieFunctionVoid()    
  440.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  441.      PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
  442.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  443.     PopScaleformMovieFunctionVoid()  
  444.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  445.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  446.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  447.     PopScaleformMovieFunctionVoid()    
  448.     PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  449.      PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  450.       PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
  451.     PopScaleformMovieFunctionVoid()
  452.  
  453.      WARSTOCKSiteVar = WARSTOCKSiteVar + 1
  454.     end
  455.  pageWAR1 = true
  456.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  457.    PopScaleformMovieFunctionVoid()  
  458.  end
  459. else
  460. pageWAR1 = false
  461. end
  462.  
  463. if getcurentwebsitid == 13 and getcurentPage == 1 and pageDOCK1 == false then
  464.    --refresh = true
  465.    pageDOCK1 = true
  466.      DOCKSiteVar = 0
  467.   if pageDOCK1 == true then
  468.  
  469.    while DOCKSiteVar <=19 do    
  470.     PushScaleformMovieFunction(scaleform, "SET_PRICES")
  471.     PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
  472.     PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
  473.     PopScaleformMovieFunctionVoid()    
  474.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  475.      PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
  476.      PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
  477.     PopScaleformMovieFunctionVoid()  
  478.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  479.      PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
  480.      PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
  481.     PopScaleformMovieFunctionVoid()    
  482.     PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  483.      PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
  484.       PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
  485.     PopScaleformMovieFunctionVoid()
  486.      DOCKSiteVar = DOCKSiteVar + 1
  487.     end
  488.    
  489.  pageDOCK1 = true
  490.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  491.    PopScaleformMovieFunctionVoid()  
  492.  end  
  493. else  
  494. pageDOCK1 = false
  495. end
  496.  
  497. if getcurentwebsitid == 15 and getcurentPage == 1 and pagePEDAL1 == false then
  498.    --refresh = true
  499.    pagePEDAL1 = true
  500.      PEDALSiteVar = 0
  501.   if pagePEDAL1 == true then
  502.  
  503.    while PEDALSiteVar <=9 do    
  504.     PushScaleformMovieFunction(scaleform, "SET_PRICES")
  505.     PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
  506.     PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
  507.     PopScaleformMovieFunctionVoid()    
  508.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  509.      PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
  510.      PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
  511.     PopScaleformMovieFunctionVoid()  
  512.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  513.      PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
  514.      PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
  515.     PopScaleformMovieFunctionVoid()    
  516.     PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  517.      PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
  518.       PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
  519.     PopScaleformMovieFunctionVoid()  
  520.      PEDALSiteVar = PEDALSiteVar + 1
  521.     end
  522.    
  523.  pagePEDAL1 = true
  524.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  525.    PopScaleformMovieFunctionVoid()
  526.  end  
  527. else  
  528. pagePEDAL1 = false
  529. end
  530.  
  531. if getcurentwebsitid == 16 and getcurentPage == 1 and pageSAA1 == false then
  532.    --refresh = true
  533.    pageSAA1 = true
  534.      SAASiteVar = 0
  535.   if pageSAA1 == true then
  536.  
  537.  
  538.    while SAASiteVar <=500 do    
  539.     PushScaleformMovieFunction(scaleform, "SET_PRICES")
  540.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  541.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  542.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  543.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  544.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  545.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  546.       PushScaleformMovieFunctionParameterInt(-1)
  547.      PushScaleformMovieFunctionParameterInt(-1)
  548.      PopScaleformMovieFunctionVoid()    
  549.     PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  550.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  551.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  552.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  553.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  554.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  555.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  556.       PushScaleformMovieFunctionParameterInt(-1)
  557.      PushScaleformMovieFunctionParameterInt(-1)
  558.       --PushScaleformMovieFunctionParameterInt(SAASiteVar)
  559.      --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
  560.     PopScaleformMovieFunctionVoid()
  561.     PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  562.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  563.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  564.      PushScaleformMovieFunctionParameterInt(SAASiteVar)
  565.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  566.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  567.       PushScaleformMovieFunctionParameterInt(SAASiteVar)
  568.       PushScaleformMovieFunctionParameterInt(-1)
  569.      PushScaleformMovieFunctionParameterInt(-1)
  570.     PopScaleformMovieFunctionVoid()      
  571.     --PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  572.      --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
  573.      --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
  574.     --PopScaleformMovieFunctionVoid()    
  575.     --PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  576.      --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
  577.       --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
  578.     --PopScaleformMovieFunctionVoid()
  579.          PushScaleformMovieFunction(scaleform, "SET_RANKS")
  580.          PushScaleformMovieFunctionParameterInt(SAASiteVar)
  581.          PushScaleformMovieFunctionParameterInt(20)
  582.          PushScaleformMovieFunctionParameterInt(22)
  583.          PopScaleformMovieFunctionVoid()
  584.      SAASiteVar = SAASiteVar + 1
  585.     end
  586.  
  587.          PushScaleformMovieFunction(scaleform, "SET_RANKS")
  588.          PushScaleformMovieFunctionParameterInt(SAASiteVar)
  589.          PushScaleformMovieFunctionParameterInt(20)
  590.          PushScaleformMovieFunctionParameterInt(22)
  591.          PopScaleformMovieFunctionVoid()
  592.    
  593.  pageSAA1 = true
  594.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  595.    PopScaleformMovieFunctionVoid()
  596.  end  
  597. else  
  598. pageSAA1 = false
  599. end
  600.  
  601. if getcurentwebsitid == 18 and pageDYN8EX2 == true then
  602. --refresh = true
  603.  PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  604.   PushScaleformMovieFunctionParameterInt(0)
  605.      PushScaleformMovieFunctionParameterFloat(6.0)
  606.      PushScaleformMovieFunctionParameterInt(2000)
  607.      PushScaleformMovieFunctionParameterInt(1100)
  608.      PushScaleformMovieFunctionParameterInt(5000000)
  609.      PushScaleformMovieFunctionParameterInt(2)
  610.      PushScaleformMovieFunctionParameterInt(54)
  611.      PushScaleformMovieFunctionParameterInt(201525)
  612.      PushScaleformMovieFunctionParameterInt(50)
  613.      PushScaleformMovieFunctionParameterInt(12)
  614.      PushScaleformMovieFunctionParameterFloat(1.0)
  615.      PushScaleformMovieFunctionParameterInt(3)
  616.      PushScaleformMovieFunctionParameterInt(3)
  617.      PushScaleformMovieFunctionParameterInt(3000000)
  618.       PushScaleformMovieFunctionParameterFloat(6.0)
  619.       PushScaleformMovieFunctionParameterFloat(3.0)
  620.       PushScaleformMovieFunctionParameterFloat(14.0)
  621.       PushScaleformMovieFunctionParameterFloat(12.0)
  622.       PushScaleformMovieFunctionParameterFloat(9.0)
  623.       PushScaleformMovieFunctionParameterFloat(5.0)
  624.      PushScaleformMovieFunctionParameterFloat(2.0)
  625.   PopScaleformMovieFunctionVoid()
  626.    PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  627.      PushScaleformMovieFunctionParameterInt(0)
  628.     PopScaleformMovieFunctionVoid()
  629.  PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  630.   PushScaleformMovieFunctionParameterInt(1)
  631.   BeginTextComponent("BS_WB_FAI1")
  632.   EndTextComponent()
  633.  PopScaleformMovieFunctionVoid()
  634.    PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  635.      PushScaleformMovieFunctionParameterInt(1)
  636.    PopScaleformMovieFunctionVoid()  
  637.  PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  638.   PushScaleformMovieFunctionParameterInt(2)
  639.   BeginTextComponent("BS_WB_FAI2")
  640.   EndTextComponent()
  641.  PopScaleformMovieFunctionVoid()
  642.    PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  643.      PushScaleformMovieFunctionParameterInt(2)
  644.    PopScaleformMovieFunctionVoid()
  645.  PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
  646.  PopScaleformMovieFunctionVoid()
  647.     --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  648.     --PopScaleformMovieFunctionVoid()  
  649. end
  650.  
  651. if getcurentwebsitid == 18 and getcurentPage == 1 then      
  652.   --refresh = true
  653.  PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  654.   PushScaleformMovieFunctionParameterInt(10)
  655.  PopScaleformMovieFunctionVoid()
  656.  
  657.  PushScaleformMovieFunctionParameterInt(11)
  658.  PopScaleformMovieFunctionVoid()
  659.  
  660.  --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  661.  --PopScaleformMovieFunctionVoid()   
  662. end
  663.  
  664. if ((getcurentwebsitid == 18 and getcurentPage == 2) and (pageDYN8EX2 == false and refresh == false)) then
  665.    
  666.    pageDYN8EX2 = true
  667.      DYN8EXSiteVar2 = 10
  668.   if pageDYN8EX2 == true then      
  669.  
  670.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  671.      PushScaleformMovieFunctionParameterInt(10)
  672.     PopScaleformMovieFunctionVoid()  
  673.      PushScaleformMovieFunctionParameterInt(11)
  674.     PopScaleformMovieFunctionVoid()
  675.     --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  676.     --PopScaleformMovieFunctionVoid()    
  677.  end  
  678. else  
  679. pageDYN8EX2 = false
  680. end
  681. --[[
  682. if getcurentwebsitid == 18 and getcurentPage == 27 then
  683.    --refresh = false
  684.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT_EMPTY")
  685.   PushScaleformMovieFunctionParameterInt(0)
  686.   PopScaleformMovieFunctionVoid()
  687.    PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  688.      PushScaleformMovieFunctionParameterInt(0)
  689.     PopScaleformMovieFunctionVoid()  
  690.   PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  691.   PushScaleformMovieFunctionParameterInt(0)
  692.      PushScaleformMovieFunctionParameterFloat(6.0)
  693.      PushScaleformMovieFunctionParameterInt(2000)
  694.      PushScaleformMovieFunctionParameterInt(1100)
  695.      PushScaleformMovieFunctionParameterInt(5000000)
  696.      PushScaleformMovieFunctionParameterInt(2)
  697.      PushScaleformMovieFunctionParameterInt(54)
  698.      PushScaleformMovieFunctionParameterInt(201525)
  699.      PushScaleformMovieFunctionParameterInt(50)
  700.      PushScaleformMovieFunctionParameterInt(12)
  701.      PushScaleformMovieFunctionParameterFloat(1.0)
  702.      PushScaleformMovieFunctionParameterInt(3)
  703.      PushScaleformMovieFunctionParameterInt(3)
  704.      PushScaleformMovieFunctionParameterInt(3000000)
  705.       PushScaleformMovieFunctionParameterFloat(6.0)
  706.       PushScaleformMovieFunctionParameterFloat(3.0)
  707.       PushScaleformMovieFunctionParameterFloat(14.0)
  708.       PushScaleformMovieFunctionParameterFloat(12.0)
  709.       PushScaleformMovieFunctionParameterFloat(9.0)
  710.       PushScaleformMovieFunctionParameterFloat(5.0)
  711.      PushScaleformMovieFunctionParameterFloat(2.0)
  712.      CallScaleformMovieMethod(scaleform, "UPDATE_TEXT")
  713.   PopScaleformMovieFunctionVoid()
  714.    PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  715.      PushScaleformMovieFunctionParameterInt(2)
  716.     PopScaleformMovieFunctionVoid()
  717. else
  718.  --refresh = true
  719. end
  720. --]]
  721.  
  722.  
  723.  
  724. if getcurentwebsitid == 18 and getcurentPage == 25 and pageDYN8EX1 == false then
  725.     pageDYN8EX1 = true
  726.     --refresh = false
  727.     pageDYN8EX4 = true
  728.    if pageDYN8EX1 == true then
  729.        PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
  730.        BeginTextComponent("STRING")
  731.        AddTextComponentSubstringWebsite("PURCHASE_D_SUCCESS")
  732.        EndTextComponent()      
  733.        PopScaleformMovieFunctionVoid()
  734.     PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  735.     PopScaleformMovieFunctionVoid()
  736.   end  
  737. else
  738. pageDYN8EX4 = true
  739.  pageDYN8EX1 = false
  740. end
  741.  
  742. --[[
  743. if getcurentwebsitid == 2 and getcurentPage == 4 and pageDYN8EX3 == 18 then
  744.     pageDYN8EX3 = true
  745.    if pageDYN8EX3 == true then
  746.      PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  747.      PopScaleformMovieFunctionVoid()
  748.      pageDYN8EX3 = true
  749.   end  
  750.  else  
  751.  pageDYN8EX3 = false
  752.  end
  753. --]]
  754. else
  755.  vVar = nil
  756.  nvar = nil
  757. end
  758.  
  759. if getcurentwebsitid == 27 and getcurentPage == 1 and getcurentwebsitPage == false then
  760.  
  761.        PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
  762.        BeginTextComponent("STRING")
  763.        AddTextComponentSubstringWebsite("OFFICES")
  764.        EndTextComponent()      
  765.        PopScaleformMovieFunctionVoid()
  766.     PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  767.     PopScaleformMovieFunctionVoid()
  768. end
  769.  
  770. if getcurentwebsitid == 18 and getcurentPage == 25 and pageDYN8EX4 == true then
  771.        
  772.        PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
  773.        BeginTextComponent("STRING")
  774.        AddTextComponentSubstringWebsite("LOS_D_SANTOS")
  775.        EndTextComponent()      
  776.        PopScaleformMovieFunctionVoid()
  777.     PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  778.     PopScaleformMovieFunctionVoid()
  779. end
  780.  
  781.  
  782.           HideHelpTextThisFrame()
  783.           HideHudAndRadarThisFrame()
  784.           HideScriptedHudComponentThisFrame(19)
  785.           HideHudComponentThisFrame(4)
  786.           HideHudComponentThisFrame(5)
  787.           HideHudComponentThisFrame(13)
  788.           HideHudComponentThisFrame(3)
  789.         end
  790.     else
  791.      page2 = false
  792.      page1 = false
  793.      page3 = false
  794.     end
  795.    
  796. end
  797.  
  798. ------------------------------------
  799. --***this is just a placeholder ***--
  800. -----to open/close "web browser"----
  801. ----------------hit "z" ------------
  802. --[[
  803. Global_68484.f_1 = 0
  804. Global_68484.f_2 = 1
  805. "mp0_font_player_office"
  806. --]]
  807.  
  808.  
  809.  
  810. Citizen.CreateThread(function()
  811.  ghd = 0
  812.  Citizen.InvokeNative(0x04655F9D075D0AE5, true)
  813.  test = Citizen.InvokeNative(0xC8C436B7FA3346C5)
  814.  ffdd = 0
  815.  ddff = 0
  816.  
  817.  while true do
  818.    ttyyhh = StatGetBool(GetHashKey("mp0_default_stats_set"))
  819.    dataA = GetRandomFloatInRange(1, 150)
  820.    dataB = GetRandomFloatInRange(0, 10)
  821.    dataC = GetRandomFloatInRange(0, 10)
  822.    dataD = GetRandomFloatInRange(0, 10)
  823.   if HasScaleformMovieLoaded(scaleform) then
  824.    getcurentwebsitid = GetCurrentWebsiteId()
  825.    getcurentwebsitPage = Citizen.InvokeNative(0xE3B05614DCE1D014, getcurentwebsitid)
  826.    getcurentPage = Citizen.InvokeNative(0x01A358D9128B7A86)
  827.   else
  828.    getcurentwebsitid = nil
  829.    getcurentwebsitPage = nil
  830.    getcurentPage = nil
  831.   end
  832.   Citizen.Wait(0)
  833.   if IsControlJustPressed(1, 44) then
  834.  
  835.    StatSetBool(GetHashKey("mp0_default_stats_set"), true, true)
  836.    StatLoad(GetHashKey("mp0_default_stats_set"))
  837.    StatSave(GetHashKey("mp0_default_stats_set"))
  838.  
  839.      PopScaleformMovieFunctionVoid()
  840.    DYN8EXSiteVar = 25
  841.     while DYN8EXSiteVar <=800 do   
  842.   DYN8EXSiteVar = DYN8EXSiteVar + 1
  843.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  844.       PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  845.       PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  846.       BeginTextComponent("")
  847.       EndTextComponent()
  848.       PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  849.       PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar))
  850.       PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar))
  851.       BeginTextComponent("DYN8EXSiteVar")
  852.       EndTextComponent()
  853.       --Citizen.InvokeNative(0xE83A3E3557A56640, "DYN_MP_1")
  854.       BeginTextComponent("DYN8EXSiteVar")
  855.       EndTextComponent()
  856.       BeginTextComponent("MP_CLUBH1ADD")
  857.       EndTextComponent()
  858.       PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  859.       PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  860.      PopScaleformMovieFunctionVoid()
  861.      PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
  862.       PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar + 1))
  863.        PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar + 2))
  864.      PopScaleformMovieFunctionVoid()     
  865.      PushScaleformMovieFunction(scaleform, "SET_PRICES")
  866.      PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  867.      PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
  868.      PopScaleformMovieFunctionVoid()      
  869.      PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
  870.       PushScaleformMovieFunctionParameterFloat(ToFloat(dataA))
  871.       PushScaleformMovieFunctionParameterFloat(ToFloat(dataA))
  872.      PopScaleformMovieFunctionVoid()               
  873.    PushScaleformMovieFunction(scaleform, "APPEND_OFFICE_DATA_SLOT")
  874.     PushScaleformMovieFunctionParameterInt(dataA)
  875.     PushScaleformMovieFunctionParameterInt(dataA)
  876.    PopScaleformMovieFunctionVoid()         
  877.    PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
  878.    PopScaleformMovieFunctionVoid()
  879.   end  
  880.   end
  881.  
  882.   if IsControlJustPressed(1, 20) then
  883.  
  884.    disable2 = not disable2
  885.  
  886.   end
  887.  
  888.  
  889.  
  890.   if disable2 == false then
  891.   --things("WWW_EYEFIND_INFO")  
  892.   things("web_browser")
  893.  
  894.   else
  895.    SetScaleformMovieAsNoLongerNeeded(scaleform)
  896.    page1 = false
  897.    page2 = false
  898.    page3 = false
  899.   end
  900.   if IsControlJustPressed(1, 238) then
  901.    Citizen.Trace("getcurentwebsitid "..tostring(getcurentwebsitid))
  902.    Citizen.Trace("getcurentPage "..tostring(getcurentPage))
  903.    Citizen.Trace("getcurentwebsitPage "..tostring(getcurentwebsitPage))
  904.   end
  905.   if IsControlJustPressed(1, 238) and refresh == true then
  906.    ghd = 0
  907.  
  908.   Citizen.Trace("*before* getcurentwebsitid "..tostring(getcurentwebsitid))
  909.   Citizen.Trace("*before* getcurentPage "..tostring(getcurentPage))
  910.   Citizen.Trace("*before* getcurentwebsitPage "..tostring(getcurentwebsitPage))
  911.   Citizen.Trace("*before* unkown  "..tostring(ttyyhh))
  912.    
  913.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  914.    PopScaleformMovieFunctionVoid()
  915.    
  916.   Citizen.Trace("*after* getcurentwebsitid "..tostring(getcurentwebsitid))
  917.   Citizen.Trace("*after* getcurentPage "..tostring(getcurentPage))
  918.   Citizen.Trace("*after* getcurentwebsitPage "..tostring(getcurentwebsitPage))
  919.   Citizen.Trace("*after* unkown  "..tostring(ttyyhh))
  920.   end
  921.  
  922.  if IsControlJustPressed(1, 38) and IsControlPressed(1, 21) then
  923.    PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
  924.    PopScaleformMovieFunctionVoid()
  925.    EGetCurrentSelection = Citizen.InvokeNative(0xAF42195A42C63BBA)
  926.    FGetCurrentSelection = Citizen.InvokeNative(0x3E42690032C25806, getCurrentSelection)
  927.    getcurentwebsitid1 = GetCurrentWebsiteId()
  928.    getcurentPage1 = Citizen.InvokeNative(0x01A358D9128B7A86)
  929.   Citizen.Trace("getcurentwebsitid "..tostring(getcurentwebsitid1))
  930.   Citizen.Trace("getcurentPage "..tostring(getcurentPage1))
  931.   Citizen.Trace("getcurentwebsitPage "..tostring(getcurentwebsitPage))
  932.   Citizen.Trace("EGetCurrentSelection "..tostring(EGetCurrentSelection))
  933.   Citizen.Trace("FGetCurrentSelection "..tostring(FGetCurrentSelection))
  934.   Citizen.Trace("unkown  "..tostring(test))
  935.   end
  936.   --if IsControlJustPressed(1, 44) then
  937.    --ghd = 0
  938.  
  939.   if IsControlJustPressed(1, 44) then
  940.  
  941.    
  942.   end
  943.  if getcurentwebsitid == 21 then
  944.  
  945.  end
  946.  if getcurentwebsitid == 18 then
  947.  
  948.  end
  949.  
  950. --INSIDE the loop
  951.   if nVar ~= nil then
  952.    page = nVar
  953.   end
  954.   if selectionBool and ScreenIDBool then
  955.    if vVar == 11 then  
  956.    end
  957.   end
  958.  end
  959. --OUTSIDE the loop
  960.  
  961. end)
  962.  
  963.  
  964. Citizen.CreateThread(function()
  965.  while true do
  966.   Citizen.Wait(0)
  967.  
  968.  
  969.  end
  970. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement