Files
red-valley/resources/[framework]/[depends]/phone-radio/client.lua

44 lines
1.2 KiB
Lua
Raw Normal View History

2026-03-29 21:41:17 +03:00
while GetResourceState('qs-smartphone-pro') ~= 'started' do
Wait(500)
end
local ui = 'https://cfx-nui-' .. GetCurrentResourceName() .. '/html/'
local function addApp()
local added = exports['qs-smartphone-pro']:addCustomApp({
app = 'radio',
image = ui .. 'icon.png',
ui = ui .. 'index.html',
-- ui = ui .. 'index.html',
label = 'Radio',
job = false,
blockedJobs = {},
timeout = 5500,
creator = 'Quasar Store',
category = 'social',
isGame = false,
description = 'Contact other people through frequencies',
age = '16+',
extraDescription = {
{
header = 'Radio',
head = 'Frequencies at your fingertips',
image = 'https://i.ibb.co/K5VyGxm/radio.webp',
footer = 'Contact other people through frequencies'
}
}
})
if not added then
return print('Failed to add app')
end
print('App added')
end
CreateThread(addApp)
AddEventHandler('onResourceStart', function(resource)
if resource == 'qs-smartphone-pro' then
addApp()
end
end)