diff --git a/content/docs/scripting-manual/using-scaleform/_index.md b/content/docs/scripting-manual/using-scaleform/_index.md index 357c8677..63e09323 100644 --- a/content/docs/scripting-manual/using-scaleform/_index.md +++ b/content/docs/scripting-manual/using-scaleform/_index.md @@ -118,20 +118,20 @@ Example ```lua Citizen.CreateThread(function() - local ScaleformHandle = RequestScaleformMovie("mp_big_message_freemode") -- The scaleform you want to use - while not HasScaleformMovieLoaded(scaleform) do -- Ensure the scaleform is actually loaded before using + local scaleformHandle = RequestScaleformMovie("mp_big_message_freemode") -- The scaleform you want to use + while not HasScaleformMovieLoaded(scaleformHandle) do -- Ensure the scaleform is actually loaded before using Citizen.Wait(0) end - BeginScaleformMovieMethod(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE") -- The function you want to call from the AS file + BeginScaleformMovieMethod(scaleformHandle, "SHOW_SHARD_WASTED_MP_MESSAGE") -- The function you want to call from the AS file PushScaleformMovieMethodParameterString("Big Text") -- bigTxt PushScaleformMovieMethodParameterString("Smaller Text") -- msgText PushScaleformMovieMethodParameterInt(5) -- colId EndScaleformMovieMethod() -- Finish off the scaleform, it returns no data, so doesnt need "EndScaleformMovieMethodReturn" - + while true do -- Draw the scaleform every frame Citizen.Wait(0) - DrawScaleformMovieFullscreen(ScaleformHandle, 255, 255, 255, 255) -- Draw the scaleform fullscreen + DrawScaleformMovieFullscreen(scaleformHandle, 255, 255, 255, 255) -- Draw the scaleform fullscreen end end) ```