---Removes all instructional buttons and unloads the Scaleform
function ButtonsHandler:ClearButtonList()
local scaleform = self._sc
if (scaleform and scaleform.handle) then
SetScaleformMovieAsNoLongerNeeded(scaleform.handle)
self._sc = nil
end
self.ControlButtons = {}
self._changed = true
end
useful for me because i use HasScaleformMovieFilenameLoaded for checking if INSTRUCTIONAL_BUTTONS is loaded and if it was loaded then the timerbars should have higher Y pos (maybe it's useful for other people) anyways it's important to unload a model or scaleform i guess 😅
useful for me because i use
HasScaleformMovieFilenameLoaded
for checking if INSTRUCTIONAL_BUTTONS is loaded and if it was loaded then the timerbars should have higher Y pos (maybe it's useful for other people) anyways it's important to unload a model or scaleform i guess 😅