Added first time quick start video with config option

This commit is contained in:
Dan
2020-03-13 20:57:31 +00:00
parent a1f72e7c91
commit cea0bf9c83
5 changed files with 170 additions and 1 deletions

View File

@@ -411,6 +411,17 @@ function RADAR:OpenRemote()
-- Tell the NUI side to open the remote
SendNUIMessage( { _type = "openRemote" } )
if ( CONFIG.allow_quick_start_video ) then
-- Display the new user popup if we can
local show = GetResourceKvpInt( "wk_wars2x_new_user" )
if ( show == 0 ) then
SendNUIMessage( { _type = "showNewUser" } )
SetResourceKvpInt( "wk_wars2x_new_user", 1 )
end
end
-- Bring focus to the NUI side
SetNuiFocus( true, true )
end