mirror of
https://github.com/Michatec/ptelevision.git
synced 2026-03-31 23:46:30 +02:00
Fixed Forced Focus Error
This commit is contained in:
@@ -41,24 +41,29 @@ function BroadcastMenu()
|
||||
end
|
||||
|
||||
function WebBrowserMenu()
|
||||
lib.hideMenu()
|
||||
local input = lib.inputDialog('Web Browser', {'URL:'})
|
||||
|
||||
if not input then OpenTVMenu() end
|
||||
if input then
|
||||
TriggerServerEvent("ptelevision:event", GetClosestScreen().net_id, "ptv_status", {
|
||||
type = "browser",
|
||||
url = input[1]
|
||||
})
|
||||
end
|
||||
Citizen.Wait(300)
|
||||
OpenTVMenu()
|
||||
end
|
||||
|
||||
function VideoMenu()
|
||||
lib.hideMenu()
|
||||
local input = lib.inputDialog('Video Player', {'URL:'})
|
||||
|
||||
if not input then OpenTVMenu() end
|
||||
if input then
|
||||
TriggerServerEvent("ptelevision:event", GetClosestScreen().net_id, "ptv_status", {
|
||||
type = "play",
|
||||
url = input[1]
|
||||
})
|
||||
end
|
||||
Citizen.Wait(300)
|
||||
OpenTVMenu()
|
||||
end
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ files {
|
||||
}
|
||||
|
||||
shared_scripts {
|
||||
"@es_extended/imports.lua",
|
||||
"@ox_lib/init.lua",
|
||||
"config.lua",
|
||||
"shared/*.lua"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Inventory = exports.ox_inventory
|
||||
|
||||
function DumpArray(obj, seen)
|
||||
if type(obj) ~= 'table' then return obj end
|
||||
if seen and seen[obj] then return seen[obj] end
|
||||
|
||||
Reference in New Issue
Block a user