Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local buttons = RequestScaleformMovie("INSTRUCTIONAL_BUTTONS")
- while not HasScaleformMovieLoaded(buttons) do
- Wait(0)
- end
- local Display = true
- BeginScaleformMovieMethod(buttons, "CLEAR_ALL")
- EndScaleformMovieMethod()
- BeginScaleformMovieMethod(buttons, "TOGGLE_MOUSE_BUTTONS")
- ScaleformMovieMethodAddParamBool(true)
- EndScaleformMovieMethod()
- BeginScaleformMovieMethod(buttons, "SET_DATA_SLOT")
- ScaleformMovieMethodAddParamInt(0) -- position(?)
- ScaleformMovieMethodAddParamPlayerNameString("~INPUT_FRONTEND_ACCEPT~")
- PushScaleformMovieMethodParameterString("Enter (clickable)")
- ScaleformMovieMethodAddParamBool(true) -- make this button clickable
- ScaleformMovieMethodAddParamInt(201) -- what control will be pressed when you click the button
- EndScaleformMovieMethod()
- BeginScaleformMovieMethod(buttons, "SET_DATA_SLOT")
- ScaleformMovieMethodAddParamInt(1)
- ScaleformMovieMethodAddParamPlayerNameString("~INPUT_FRONTEND_CANCEL~")
- PushScaleformMovieMethodParameterString("Esc (not clickable)")
- ScaleformMovieMethodAddParamBool(false) -- make this button not clickable
- ScaleformMovieMethodAddParamInt(202)
- EndScaleformMovieMethod()
- BeginScaleformMovieMethod(buttons, "SET_BACKGROUND_COLOUR")
- ScaleformMovieMethodAddParamInt(0) -- r
- ScaleformMovieMethodAddParamInt(0) -- g
- ScaleformMovieMethodAddParamInt(0) -- b
- ScaleformMovieMethodAddParamInt(80) -- opacity
- EndScaleformMovieMethod()
- BeginScaleformMovieMethod(buttons, "DRAW_INSTRUCTIONAL_BUTTONS")
- EndScaleformMovieMethod()
- Citizen.CreateThread(function()
- while Display do
- Wait(0)
- SetMouseCursorActiveThisFrame()
- if IsControlJustPressed(0, 201) or IsControlJustPressed(0, 202) then
- Display = false
- SetScaleformMovieAsNoLongerNeeded(buttons)
- BeginTextCommandThefeedPost("STRING")
- AddTextComponentSubstringPlayerName("Enter or esc pressed")
- EndTextCommandThefeedPostTicker(true, true)
- end
- DrawScaleformMovieFullscreen(buttons, 255, 255, 255, 255, 0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement