본문으로 건너뛰기

Scaleform 함수

GTA V scaleform 무비와 BeginScaleformMovieMethod로 호출할 수 있는 함수를 알려진 파라미터 목록과 함께 검색하세요.

이 도구와 설명은 아직 영어로만 제공됩니다.

레퍼런스UI, 네이티브문서 읽기
Loading scaleform data…

Calling a scaleform function

Scaleform movies are the Flash (ActionScript 2) UI files GTA V uses for HUD pieces, phones, big messages, computer screens and more. You load a movie, call one of its functions with parameters, then draw it every frame:

local scaleform = RequestScaleformMovie("MIDSIZED_MESSAGE")
while not HasScaleformMovieLoaded(scaleform) do Wait(0) end

-- SHOW_SHARD_MIDSIZED_MESSAGE(bigText, msgText, colID, useDarkerShard, useCondensedShard)
BeginScaleformMovieMethod(scaleform, "SHOW_SHARD_MIDSIZED_MESSAGE")
ScaleformMovieMethodAddParamTextureNameString("MISSION PASSED")
ScaleformMovieMethodAddParamTextureNameString("You delivered the car")
ScaleformMovieMethodAddParamInt(2)
ScaleformMovieMethodAddParamBool(false)
ScaleformMovieMethodAddParamBool(false)
EndScaleformMovieMethod()

while true do
    DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
    Wait(0)
end

Parameter natives

NativeUse for
ScaleformMovieMethodAddParamIntIntegers, enums, colour ids.
ScaleformMovieMethodAddParamFloatPositions, scales, alpha.
ScaleformMovieMethodAddParamBoolFlags such as isVisible.
ScaleformMovieMethodAddParamTextureNameStringPlain strings, texture dictionary and texture names.
ScaleformMovieMethodAddParamPlayerNameStringPlayer names and short strings.
BeginTextCommandScaleformString + EndTextCommandScaleformStringLong text, text labels and ~r~ style formatting.

Things to know

  • This list is generated from decompiled movies. Not every function does something in-game. UPPERCASE functions are the public API and usually work; lowercase ones are internal but sometimes work too.
  • Parameter types are not in the data, only names. The builder guesses them from the name.
  • Pause menu and other frontend movies can't be drawn with DrawScaleformMovie; they use BeginScaleformMovieMethodOnFrontend and are mostly undocumented.
  • Release a movie you no longer need with SetScaleformMovieAsNoLongerNeeded.
  • The page keeps ?movie= and ?fn= in the URL so you can link a function.

Data: Vespura (tomgrobbe.com), from decompiled scaleform scripts.