mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
refactor(es_extended/client/modules/scaleform): refactor ESX.Scaleform.ShowTrafficMovie
This commit is contained in:
@@ -43,11 +43,7 @@ function ESX.Scaleform.ShowPopupWarning(title, msg, bottom, sec)
|
||||
end
|
||||
|
||||
function ESX.Scaleform.ShowTrafficMovie(sec)
|
||||
local scaleform = ESX.Scaleform.Utils.RequestScaleformMovie("TRAFFIC_CAM")
|
||||
|
||||
BeginScaleformMovieMethod(scaleform, "PLAY_CAM_MOVIE")
|
||||
|
||||
EndScaleformMovieMethod()
|
||||
local scaleform = ESX.Scaleform.Utils.RunScaleformMovieMethod("TRAFFIC_CAM", "PLAY_CAM_MOVIE", false)
|
||||
|
||||
while sec > 0 do
|
||||
Wait(0)
|
||||
|
||||
Reference in New Issue
Block a user