Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local disable = true
- Citizen.CreateThread(function()
- while true do
- Citizen.Wait(0)
- if disable == true then
- scaleform = RequestScaleformMovie("DISRUPTION_LOGISTICS")
- if HasScaleformMovieLoaded(scaleform) then
- if IsInputJustDisabled(2) then
- PushScaleformMovieFunction(scaleform, "SET_MOUSE_INPUT")
- PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 239))
- PushScaleformMovieFunctionParameterFloat(GetDisabledControlNormal(2, 240))
- PopScaleformMovieFunctionVoid()
- SetInputExclusive(2, 237)
- EnableControlAction(2, 237, 1)
- Set_2dLayer(4)
- PushScaleformMovieFunction(scaleform, "SET_BUTTON_STATES")
- SetInputExclusive(2, 205)
- EnableControlAction(2, 205, 1)
- SetInputExclusive(2, 206)
- EnableControlAction(2, 206, 1)
- if IsControlJustPressed(2, 205) then
- CallScaleformMovieFunctionFloatParams(scaleform, "SET_INPUT_EVENT", 205.0, -1082130432, -1082130432, -1082130432, -1082130432)
- end
- if IsControlJustPressed(2, 206) then
- CallScaleformMovieFunctionFloatParams(scaleform, "SET_INPUT_EVENT", 206.0, -1082130432, -1082130432, -1082130432, -1082130432)
- end
- end
- PopScaleformMovieFunctionVoid()
- DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
- if IsControlJustPressed(2, 237) then
- CallScaleformMovieFunctionFloatParams(scaleform, "SET_INPUT_EVENT", 237.0, -1082130432, -1082130432, -1082130432, -1082130432)
- end
- end
- SetInputExclusive(2, 199)
- EnableControlAction(2, 199, 1)
- HideHelpTextThisFrame()
- HideHudAndRadarThisFrame()
- HideScriptedHudComponentThisFrame(19)
- HideHudComponentThisFrame(4)
- HideHudComponentThisFrame(5)
- HideHudComponentThisFrame(13)
- HideHudComponentThisFrame(3)
- else
- SetScaleformMovieAsNoLongerNeeded(scaleform)
- end
- end
- end)
- Citizen.CreateThread(function()
- while true do
- EnableControlAction(1, 44, 1)
- if IsControlJustPressed(1, 44) then
- Citizen.Trace("is true "..tostring(disable))
- disable = not disable
- Citizen.Trace("is true "..tostring(disable))
- end
- Citizen.Wait(0)
- if disable then
- SetScaleformMovieAsNoLongerNeeded(scaleform)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement