Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enableScriptForMP()
- NetworkSetThisScriptIsNetworkScript(32, 0, PlayerId())
- StatSetBool(GetHashKey("mp0_cl_buy_appartment"), 1, 1)
- StatSetBool(GetHashKey("mp0_cl_buy_insurance"), 1, 1)
- StatSetBool(GetHashKey("mp0_cl_buy_garage"), 1, 1)
- StatSetBool(GetHashKey("mp0_cl_buy_garage"), 1, 1)
- end
- enableScriptForMP()
- bvar = 0.0
- pageDYN8EX3 = false
- function enableMouse()
- PushScaleformMovieFunction(scaleform, "SET_MOUSE_INPUT")
- PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 239))
- PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 240))
- PushScaleformMovieFunctionParameterInt(-1)
- PopScaleformMovieFunctionVoid()
- if HasNamedScaleformMovieLoaded("web_browser") then
- end
- --IsControlJustPressed(2, 242)
- if IsControlJustPressed(2, 242) then
- Citizen.Trace("is control 242 "..tostring(IsControlJustPressed(2, 241)).." bvar: "..tostring(bvar))
- if bvar <= 0.0 then
- bvar = 20.0
- else
- bvar = bvar + 20.0
- if bvar >=100.0 then
- bvar = 100.0
- end
- end
- end
- if IsControlJustPressed(2, 241) then
- Citizen.Trace("is control 241 "..tostring(IsControlJustPressed(2, 241)).." bvar: "..tostring(bvar))
- if bvar > 0.0 then
- bvar = 0.0
- else
- bvar = bvar - 20.0
- if bvar <=100.0 then
- bvar = -100.0
- end
- end
- end
- PushScaleformMovieFunction(scaleform, "SET_ANALOG_STICK_INPUT")
- PushScaleformMovieFunctionParameterFloat(0.0)
- PushScaleformMovieFunctionParameterFloat(0.0)
- PushScaleformMovieFunctionParameterFloat(bvar)
- PushScaleformMovieFunctionParameterBool(false)
- PopScaleformMovieFunctionVoid()
- end
- function enableControlActions()
- -------input group "INPUTGROUP_LOOK "---------
- ----control name "INPUT_MULTIPLAYER_INFO"-----
- EnableControlAction(1, 20, 1)
- EnableControlAction(1, 21, 1)
- --------------button/key "z"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- -------control name "INPUT_PICKUP"------------
- EnableControlAction(1, 38, 1)
- --------------button/key "e"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- --------control name "INPUT_COVER"------------
- EnableControlAction(1, 44, 1)
- --------------button/key "q"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- --control name "INPUT_FRONTEND_DOWN "--
- EnableControlAction(2, 187, 1)
- --------------button/key "down"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- --control name "INPUT_FRONTEND_UP"--
- EnableControlAction(2, 188, 1)
- --------------button/key "up"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- --control name "INPUT_FRONTEND_RIGHT_AXIS_X "--
- EnableControlAction(2, 197, 1)
- --------------button/key "p"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- --control name "INPUT_FRONTEND_RIGHT_AXIS_Y"--
- EnableControlAction(2, 198, 1)
- --------------button/key "p"------------------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_PAUSE"-----
- EnableControlAction(2, 199, 1)
- --------------button/key "p"------------------
- --******************************************--
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_LB"--------
- EnableControlAction(2, 201, 1)
- ----button/key "left controller button"-------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_RB"--------
- EnableControlAction(2, 202, 1)
- -----button/key "right controller button"-----
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_LB"--------
- EnableControlAction(2, 205, 1)
- ----button/key "left controller button"-------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_RB"--------
- EnableControlAction(2, 206, 1)
- -----button/key "right controller button"-----
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_RB"--------
- EnableControlAction(2, 207, 1)
- -----button/key "right controller button"-----
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_FRONTEND_RB"--------
- EnableControlAction(2, 208, 1)
- -----button/key "right controller button"-----
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_CURSOR_ACCEPT"------
- EnableControlAction(2, 237, 1)
- ---------button/key "left mouse button"-------
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_CURSOR_CANCEL"------
- EnableControlAction(2, 238, 1)
- -----button/key "right mouse button"-----
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_CURSOR_SCROLL_UP"------
- EnableControlAction(2, 242, 1)
- -----button/key "right mouse button"-----
- --******************************************--
- -------input group "INPUTGROUP_LOOK "---------
- ------control name "INPUT_CURSOR_SCROLL_DOWN"------
- EnableControlAction(2, 241, 1)
- -----button/key "right mouse button"-----
- --******************************************--
- end
- NetworkRequestCloudBackgroundScripts()
- NetworkRequestCloudTunables()
- EnableMpDlcMaps(1)
- enableControlActions()
- function bawsdaqButtons()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PushScaleformMovieFunctionParameterString("things")
- PushScaleformMovieFunctionParameterFloat(101.0)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(3)
- PushScaleformMovieFunctionParameterString("things AND stuff")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterString("stuff")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- end
- temp = 10
- function things(scaleforms)
- if disable2 == false then
- scaleform = RequestScaleformMovie(scaleforms)
- if HasScaleformMovieLoaded(scaleform) then
- Set_2dLayer(4)
- enableMouse()
- DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
- EnableControlAction(2, 237, 1)
- --------------------------------------------------------
- ---------------------enter button-----------------------
- if getcurentwebsitid == -1 and getcurentPage == -1 then
- --refresh = true
- pageDYN8EX0 = false
- PushScaleformMovieFunction(scaleform, "WWW_EYEFIND_INFO")
- PushScaleformMovieFunctionParameterInt(1)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
- BeginTextComponent("STRING")
- AddTextComponentSubstringWebsite("WWW_EYEFIND_INFO")
- EndTextComponent()
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterBool(true)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterInt(1)
- PopScaleformMovieFunctionVoid()
- end
- if IsControlJustPressed(1, 237) then
- if HasNamedScaleformMovieLoaded("web_browser") then
- SetPedConfigFlag(PlayerPedId(), 185, true)
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PushScaleformMovieFunctionParameterInt(2)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunctionParameterFloat(16.0)
- PushScaleformMovieFunction(scaleform, "SET_INPUT_EVENT")
- PushScaleformMovieFunctionParameterFloat(16.0)
- PopScaleformMovieFunctionVoid()
- else
- PopScaleformMovieFunctionVoid()
- end
- PushScaleformMovieFunction(scaleform, "GET_PAGE_ID")
- PageID = PopScaleformMovieFunction()
- selectionBool = Citizen.InvokeNative(0x768FF8961BA904D6, getCurrentSelection)
- ScreenIDBool = Citizen.InvokeNative(0x768FF8961BA904D6, siteID)
- PageIDBool = Citizen.InvokeNative(0x768FF8961BA904D6, PageID)
- vVar = Citizen.InvokeNative(0x2DE7EFA66B906036, getCurrentSelection)
- VVar = Citizen.InvokeNative(0x3E42690032C25806, getCurrentSelection)
- nVar = Citizen.InvokeNative(0x2DE7EFA66B906036, siteID)
- wvar = Citizen.InvokeNative(0x3E42690032C25806, siteID)
- Nvar = Citizen.InvokeNative(0x2DE7EFA66B906036, PageID)
- Wvar = Citizen.InvokeNative(0x3E42690032C25806, PageID)
- temp666 = Citizen.InvokeNative(0x480F189CC5FA231A)
- temp667 = Citizen.InvokeNative(0x3F05E113B2E5885C)
- wVar = Round(0.0 + 1000.0 * Timestep())
- Citizen.InvokeNative(0x3F369CD14982FA9D, GetHashKey(wvar), wVar + wvar)
- Citizen.Trace("selectionBool: "..tostring(selectionBool).." ScreenIDBool: "..tostring(ScreenIDBool).." PageIDBool: "..tostring(PageIDBool))
- Citizen.Trace(" get current selection: "..tostring(vVar).." get current websiteID: "..tostring(nVar).." get current page ID "..tostring(Wvar).." temp666 "..tostring(temp666).." temp667 "..tostring(temp667))
- PushScaleformMovieFunction(scaleform, "GET_CURRENT_ROLLOVER")
- getCurrentSelection = PopScaleformMovieFunction()
- PushScaleformMovieFunction(scaleform, "GET_SITE_ID")
- siteID = PopScaleformMovieFunction()
- if getcurentPage == 1 or getcurentPage == -1 or getcurentwebsitid == 2 then
- refresh = true
- else
- refresh = false
- end
- if getcurentwebsitid == 4 and getcurentPage == 1 and page1 == false then
- page1 = true
- --refresh = true
- if page1 == true then
- bawsdaqButtons()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(1)
- PushScaleformMovieFunctionParameterString("FU")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterString("FUK")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterInt(100)
- PopScaleformMovieFunctionVoid()
- page3 = false
- page2 = false
- page1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- end
- if getcurentwebsitid == 2 and getcurentPage == 4 then
- --refresh = true
- --bawsdaqButtons()
- page3 = false
- page1 = false
- page2 = false
- else
- page2 = false
- end
- if getcurentwebsitid == 4 and getcurentPage == 3 and page3 == false then
- --refresh = true
- bawsdaqButtons()
- page2 = false
- page1 = false
- page3 = false
- else
- page3 = false
- end
- if getcurentwebsitid == 10 and getcurentPage == 1 and pageLG1 == false then
- --refresh = true
- pageLG1 = true
- legendSiteVar = 0
- if pageLG1 == true then
- while legendSiteVar <=66 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- --PushScaleformMovieFunctionParameterInt(legendSiteVar)
- --PushScaleformMovieFunctionParameterFloat(ToFloat(legendSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(legendSiteVar)
- PopScaleformMovieFunctionVoid()
- legendSiteVar = legendSiteVar + 1
- end
- pageLG1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageLG1 = false
- end
- if getcurentwebsitid == 11 and getcurentPage == 1 and pagePL1 == false then
- --refresh = true
- pagePL1 = true
- planeSiteVar = 0
- if pagePL1 == true then
- while planeSiteVar <=28 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(planeSiteVar)
- PushScaleformMovieFunctionParameterInt(planeSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(planeSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(planeSiteVar))
- PopScaleformMovieFunctionVoid()
- planeSiteVar = planeSiteVar + 1
- end
- pagePL1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pagePL1 = false
- end
- if getcurentwebsitid == 12 and getcurentPage == 1 and pageWAR1 == false then
- --refresh = true
- pageWAR1 = true
- WARSTOCKSiteVar = 0
- if pageWAR1 == true then
- while WARSTOCKSiteVar <=45 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- WARSTOCKSiteVar = WARSTOCKSiteVar + 1
- end
- pageWAR1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageWAR1 = false
- end
- if getcurentwebsitid == 12 and getcurentPage == 1 and pageWAR1 == false then
- --refresh = true
- pageWAR1 = true
- WARSTOCKSiteVar = 0
- if pageWAR1 == true then
- while WARSTOCKSiteVar <=45 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(WARSTOCKSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(WARSTOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- WARSTOCKSiteVar = WARSTOCKSiteVar + 1
- end
- pageWAR1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageWAR1 = false
- end
- if getcurentwebsitid == 13 and getcurentPage == 1 and pageDOCK1 == false then
- --refresh = true
- pageDOCK1 = true
- DOCKSiteVar = 0
- if pageDOCK1 == true then
- while DOCKSiteVar <=19 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
- PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(DOCKSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(DOCKSiteVar))
- PopScaleformMovieFunctionVoid()
- DOCKSiteVar = DOCKSiteVar + 1
- end
- pageDOCK1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageDOCK1 = false
- end
- if getcurentwebsitid == 15 and getcurentPage == 1 and pagePEDAL1 == false then
- --refresh = true
- pagePEDAL1 = true
- PEDALSiteVar = 0
- if pagePEDAL1 == true then
- while PEDALSiteVar <=9 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
- PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(PEDALSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(PEDALSiteVar))
- PopScaleformMovieFunctionVoid()
- PEDALSiteVar = PEDALSiteVar + 1
- end
- pagePEDAL1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pagePEDAL1 = false
- end
- if getcurentwebsitid == 16 and getcurentPage == 1 and pageSAA1 == false then
- --refresh = true
- pageSAA1 = true
- SAASiteVar = 0
- if pageSAA1 == true then
- while SAASiteVar <=500 do
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(-1)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(-1)
- --PushScaleformMovieFunctionParameterInt(SAASiteVar)
- --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(-1)
- PushScaleformMovieFunctionParameterInt(-1)
- PopScaleformMovieFunctionVoid()
- --PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
- --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
- --PopScaleformMovieFunctionVoid()
- --PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
- --PushScaleformMovieFunctionParameterFloat(ToFloat(SAASiteVar))
- --PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_RANKS")
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(20)
- PushScaleformMovieFunctionParameterInt(22)
- PopScaleformMovieFunctionVoid()
- SAASiteVar = SAASiteVar + 1
- end
- PushScaleformMovieFunction(scaleform, "SET_RANKS")
- PushScaleformMovieFunctionParameterInt(SAASiteVar)
- PushScaleformMovieFunctionParameterInt(20)
- PushScaleformMovieFunctionParameterInt(22)
- PopScaleformMovieFunctionVoid()
- pageSAA1 = true
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageSAA1 = false
- end
- if getcurentwebsitid == 18 and pageDYN8EX2 == true then
- --refresh = true
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PushScaleformMovieFunctionParameterFloat(6.0)
- PushScaleformMovieFunctionParameterInt(2000)
- PushScaleformMovieFunctionParameterInt(1100)
- PushScaleformMovieFunctionParameterInt(5000000)
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterInt(54)
- PushScaleformMovieFunctionParameterInt(201525)
- PushScaleformMovieFunctionParameterInt(50)
- PushScaleformMovieFunctionParameterInt(12)
- PushScaleformMovieFunctionParameterFloat(1.0)
- PushScaleformMovieFunctionParameterInt(3)
- PushScaleformMovieFunctionParameterInt(3)
- PushScaleformMovieFunctionParameterInt(3000000)
- PushScaleformMovieFunctionParameterFloat(6.0)
- PushScaleformMovieFunctionParameterFloat(3.0)
- PushScaleformMovieFunctionParameterFloat(14.0)
- PushScaleformMovieFunctionParameterFloat(12.0)
- PushScaleformMovieFunctionParameterFloat(9.0)
- PushScaleformMovieFunctionParameterFloat(5.0)
- PushScaleformMovieFunctionParameterFloat(2.0)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(1)
- BeginTextComponent("BS_WB_FAI1")
- EndTextComponent()
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(1)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(2)
- BeginTextComponent("BS_WB_FAI2")
- EndTextComponent()
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(2)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- --PopScaleformMovieFunctionVoid()
- end
- if getcurentwebsitid == 18 and getcurentPage == 1 then
- --refresh = true
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(10)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunctionParameterInt(11)
- PopScaleformMovieFunctionVoid()
- --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- --PopScaleformMovieFunctionVoid()
- end
- if ((getcurentwebsitid == 18 and getcurentPage == 2) and (pageDYN8EX2 == false and refresh == false)) then
- pageDYN8EX2 = true
- DYN8EXSiteVar2 = 10
- if pageDYN8EX2 == true then
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(10)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunctionParameterInt(11)
- PopScaleformMovieFunctionVoid()
- --PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- --PopScaleformMovieFunctionVoid()
- end
- else
- pageDYN8EX2 = false
- end
- --[[
- if getcurentwebsitid == 18 and getcurentPage == 27 then
- --refresh = false
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT_EMPTY")
- PushScaleformMovieFunctionParameterInt(0)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(0)
- PushScaleformMovieFunctionParameterFloat(6.0)
- PushScaleformMovieFunctionParameterInt(2000)
- PushScaleformMovieFunctionParameterInt(1100)
- PushScaleformMovieFunctionParameterInt(5000000)
- PushScaleformMovieFunctionParameterInt(2)
- PushScaleformMovieFunctionParameterInt(54)
- PushScaleformMovieFunctionParameterInt(201525)
- PushScaleformMovieFunctionParameterInt(50)
- PushScaleformMovieFunctionParameterInt(12)
- PushScaleformMovieFunctionParameterFloat(1.0)
- PushScaleformMovieFunctionParameterInt(3)
- PushScaleformMovieFunctionParameterInt(3)
- PushScaleformMovieFunctionParameterInt(3000000)
- PushScaleformMovieFunctionParameterFloat(6.0)
- PushScaleformMovieFunctionParameterFloat(3.0)
- PushScaleformMovieFunctionParameterFloat(14.0)
- PushScaleformMovieFunctionParameterFloat(12.0)
- PushScaleformMovieFunctionParameterFloat(9.0)
- PushScaleformMovieFunctionParameterFloat(5.0)
- PushScaleformMovieFunctionParameterFloat(2.0)
- CallScaleformMovieMethod(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(2)
- PopScaleformMovieFunctionVoid()
- else
- --refresh = true
- end
- --]]
- if getcurentwebsitid == 18 and getcurentPage == 25 and pageDYN8EX1 == false then
- pageDYN8EX1 = true
- --refresh = false
- pageDYN8EX4 = true
- if pageDYN8EX1 == true then
- PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
- BeginTextComponent("STRING")
- AddTextComponentSubstringWebsite("PURCHASE_D_SUCCESS")
- EndTextComponent()
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- else
- pageDYN8EX4 = true
- pageDYN8EX1 = false
- end
- --[[
- if getcurentwebsitid == 2 and getcurentPage == 4 and pageDYN8EX3 == 18 then
- pageDYN8EX3 = true
- if pageDYN8EX3 == true then
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- pageDYN8EX3 = true
- end
- else
- pageDYN8EX3 = false
- end
- --]]
- else
- vVar = nil
- nvar = nil
- end
- if getcurentwebsitid == 27 and getcurentPage == 1 and getcurentwebsitPage == false then
- PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
- BeginTextComponent("STRING")
- AddTextComponentSubstringWebsite("OFFICES")
- EndTextComponent()
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- if getcurentwebsitid == 18 and getcurentPage == 25 and pageDYN8EX4 == true then
- PushScaleformMovieFunction(scaleform, "GO_TO_WEBPAGE")
- BeginTextComponent("STRING")
- AddTextComponentSubstringWebsite("LOS_D_SANTOS")
- EndTextComponent()
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- end
- HideHelpTextThisFrame()
- HideHudAndRadarThisFrame()
- HideScriptedHudComponentThisFrame(19)
- HideHudComponentThisFrame(4)
- HideHudComponentThisFrame(5)
- HideHudComponentThisFrame(13)
- HideHudComponentThisFrame(3)
- end
- else
- page2 = false
- page1 = false
- page3 = false
- end
- end
- ------------------------------------
- --***this is just a placeholder ***--
- -----to open/close "web browser"----
- ----------------hit "z" ------------
- --[[
- Global_68484.f_1 = 0
- Global_68484.f_2 = 1
- "mp0_font_player_office"
- --]]
- Citizen.CreateThread(function()
- ghd = 0
- Citizen.InvokeNative(0x04655F9D075D0AE5, true)
- test = Citizen.InvokeNative(0xC8C436B7FA3346C5)
- ffdd = 0
- ddff = 0
- while true do
- ttyyhh = StatGetBool(GetHashKey("mp0_default_stats_set"))
- dataA = GetRandomFloatInRange(1, 150)
- dataB = GetRandomFloatInRange(0, 10)
- dataC = GetRandomFloatInRange(0, 10)
- dataD = GetRandomFloatInRange(0, 10)
- if HasScaleformMovieLoaded(scaleform) then
- getcurentwebsitid = GetCurrentWebsiteId()
- getcurentwebsitPage = Citizen.InvokeNative(0xE3B05614DCE1D014, getcurentwebsitid)
- getcurentPage = Citizen.InvokeNative(0x01A358D9128B7A86)
- else
- getcurentwebsitid = nil
- getcurentwebsitPage = nil
- getcurentPage = nil
- end
- Citizen.Wait(0)
- if IsControlJustPressed(1, 44) then
- StatSetBool(GetHashKey("mp0_default_stats_set"), true, true)
- StatLoad(GetHashKey("mp0_default_stats_set"))
- StatSave(GetHashKey("mp0_default_stats_set"))
- PopScaleformMovieFunctionVoid()
- DYN8EXSiteVar = 25
- while DYN8EXSiteVar <=800 do
- DYN8EXSiteVar = DYN8EXSiteVar + 1
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- BeginTextComponent("")
- EndTextComponent()
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar))
- PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar))
- BeginTextComponent("DYN8EXSiteVar")
- EndTextComponent()
- --Citizen.InvokeNative(0xE83A3E3557A56640, "DYN_MP_1")
- BeginTextComponent("DYN8EXSiteVar")
- EndTextComponent()
- BeginTextComponent("MP_CLUBH1ADD")
- EndTextComponent()
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar + 1))
- PushScaleformMovieFunctionParameterFloat(ToFloat(DYN8EXSiteVar + 2))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_PRICES")
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PushScaleformMovieFunctionParameterInt(DYN8EXSiteVar)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
- PushScaleformMovieFunctionParameterFloat(ToFloat(dataA))
- PushScaleformMovieFunctionParameterFloat(ToFloat(dataA))
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "APPEND_OFFICE_DATA_SLOT")
- PushScaleformMovieFunctionParameterInt(dataA)
- PushScaleformMovieFunctionParameterInt(dataA)
- PopScaleformMovieFunctionVoid()
- PushScaleformMovieFunction(scaleform, "UPDATE_TEXT")
- PopScaleformMovieFunctionVoid()
- end
- end
- if IsControlJustPressed(1, 20) then
- disable2 = not disable2
- end
- if disable2 == false then
- --things("WWW_EYEFIND_INFO")
- things("web_browser")
- else
- SetScaleformMovieAsNoLongerNeeded(scaleform)
- page1 = false
- page2 = false
- page3 = false
- end
- if IsControlJustPressed(1, 238) then
- Citizen.Trace("getcurentwebsitid "..tostring(getcurentwebsitid))
- Citizen.Trace("getcurentPage "..tostring(getcurentPage))
- Citizen.Trace("getcurentwebsitPage "..tostring(getcurentwebsitPage))
- end
- if IsControlJustPressed(1, 238) and refresh == true then
- ghd = 0
- Citizen.Trace("*before* getcurentwebsitid "..tostring(getcurentwebsitid))
- Citizen.Trace("*before* getcurentPage "..tostring(getcurentPage))
- Citizen.Trace("*before* getcurentwebsitPage "..tostring(getcurentwebsitPage))
- Citizen.Trace("*before* unkown "..tostring(ttyyhh))
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- Citizen.Trace("*after* getcurentwebsitid "..tostring(getcurentwebsitid))
- Citizen.Trace("*after* getcurentPage "..tostring(getcurentPage))
- Citizen.Trace("*after* getcurentwebsitPage "..tostring(getcurentwebsitPage))
- Citizen.Trace("*after* unkown "..tostring(ttyyhh))
- end
- if IsControlJustPressed(1, 38) and IsControlPressed(1, 21) then
- PushScaleformMovieFunction(scaleform, "INITIALISE_WEBSITE")
- PopScaleformMovieFunctionVoid()
- EGetCurrentSelection = Citizen.InvokeNative(0xAF42195A42C63BBA)
- FGetCurrentSelection = Citizen.InvokeNative(0x3E42690032C25806, getCurrentSelection)
- getcurentwebsitid1 = GetCurrentWebsiteId()
- getcurentPage1 = Citizen.InvokeNative(0x01A358D9128B7A86)
- Citizen.Trace("getcurentwebsitid "..tostring(getcurentwebsitid1))
- Citizen.Trace("getcurentPage "..tostring(getcurentPage1))
- Citizen.Trace("getcurentwebsitPage "..tostring(getcurentwebsitPage))
- Citizen.Trace("EGetCurrentSelection "..tostring(EGetCurrentSelection))
- Citizen.Trace("FGetCurrentSelection "..tostring(FGetCurrentSelection))
- Citizen.Trace("unkown "..tostring(test))
- end
- --if IsControlJustPressed(1, 44) then
- --ghd = 0
- if IsControlJustPressed(1, 44) then
- end
- if getcurentwebsitid == 21 then
- end
- if getcurentwebsitid == 18 then
- end
- --INSIDE the loop
- if nVar ~= nil then
- page = nVar
- end
- if selectionBool and ScreenIDBool then
- if vVar == 11 then
- end
- end
- end
- --OUTSIDE the loop
- end)
- Citizen.CreateThread(function()
- while true do
- Citizen.Wait(0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement