QSV must be closed for the system to register it as watched

This commit is contained in:
Dan
2020-03-13 21:13:52 +00:00
parent 804ab577f3
commit fa9b5d068c

View File

@@ -417,8 +417,6 @@ function RADAR:OpenRemote()
if ( show == 0 ) then if ( show == 0 ) then
SendNUIMessage( { _type = "showNewUser" } ) SendNUIMessage( { _type = "showNewUser" } )
SetResourceKvpInt( "wk_wars2x_new_user", 1 )
end end
end end
@@ -1501,6 +1499,11 @@ RegisterNUICallback( "saveUiData", function( data, cb )
SetResourceKvp( "wk_wars2x_ui_data", json.encode( data ) ) SetResourceKvp( "wk_wars2x_ui_data", json.encode( data ) )
end ) end )
-- Runs when the JavaScript side sends the quick start video has been watched
RegisterNUICallback( "qsvWatched", function( data, cb )
SetResourceKvpInt( "wk_wars2x_new_user", 1 )
end )
--[[---------------------------------------------------------------------------------- --[[----------------------------------------------------------------------------------
Main threads Main threads