CemtMusic
🎵 CemtMusic – The Ultimate Music Player for lb-phone Bring your music experience to life directly on your lb-phone ! CemtMusic is a powerf…
- 🎧 Music Streaming: Enjoy your favorite songs in high-quality audio.
- 📱 lb-phone App: Download CemtMusic directly from the lb-phone App Store.
- 🚗 Smart Audio: Dynamic update frequency adapts to your vehicle speed for smoot…
- 🖼️ Visual Experience: Displays song titles and thumbnails while playing.
Endpreis inkl. MwSt · Lifetime Updates
- Lifetime Updates
- Tebex Escrow & IP-Lock
- Discord Support
Beschreibung
🎵 CemtMusic – The Ultimate Music Player for lb-phone
Bring your music experience to life directly on your lb-phone! CemtMusic is a powerful, modern music app with YouTube integration, immersive 3D audio, and full multi-framework support.
✨ Key Features
- 🎧 Music Streaming: Enjoy your favorite songs in high-quality audio.
- 📱 lb-phone App: Download CemtMusic directly from the lb-phone App Store.
- 🚗 Smart Audio: Dynamic update frequency adapts to your vehicle speed for smooth performance.
- 🖼️ Visual Experience: Displays song titles and thumbnails while playing.
- 🎶 Playlist Management: Create, edit, and save custom playlists.
- 🔊 3D Sound: Realistic positional audio for an immersive in-game experience.
- 📺 YouTube Integration: Search and play songs directly from YouTube.
- 🔥 Trending Music: Discover what’s hot with trending music videos.
- 🎚️ Volume Control: Adjust sound levels to your liking.
- 🧹 Auto-Cleanup: Music automatically stops when the player leaves or logs out.
🧩 Framework Compatibility
- ✅ ESX: Fully supported using
ESX.GetPlayerFromId()andESX.TriggerServerCallback() - ✅ QBCore: Fully integrated using
QBCore.Functions.GetPlayer()andTriggerCallback() - ✅ Qbox: Natively supported using
exports.qbx_core:GetPlayer()andTriggerCallback()
⚙️ Configuration
Easily configure your framework, audio settings, and performance options in the config.lua file.
🧠 Performance Optimized
CemtMusic dynamically adjusts position update rates depending on speed, ensuring smooth playback even while driving.
🔧 Dependencies
- lb-phone – Required phone system
- xSound – Audio streaming
- oxmysql – Database support
- ox_lib – Required for Qbox
📦 Installation
- Download the script and place it in your resources folder.
- Set your framework in
config.lua. - Add
ensure lb-musicappto yourserver.cfg. - Restart your server and enjoy!
🔑 YouTube API Setup (Optional)
Enable YouTube integration by adding your API key in config_server.lua:
MusicAppServerConfig.YouTubeAPIKey = "YOUR_YOUTUBE_API_KEY_HERE"
MusicAppServerConfig.YouTubeAPIEnabled = true
⚠️ Keep your API key private and never share it publicly.
🚀 How to Use
- Open your lb-phone.
- Download the CemtMusic app from the App Store.
- Search for songs via YouTube.
- Create and manage playlists.
- Play music and enjoy immersive 3D sound!
🐛 Debug Mode
Turn on debug mode in config.lua for detailed console output:
MusicAppConfig.DEBUG_MODE = true
This enables detailed logging for:
- Framework initialization
- Player data retrieval
- Audio operations
- Playlist management
- YouTube API calls
Preview: https://www.youtube.com/shorts/nDrQh1nCQis
Config anzeigen
MusicAppConfig = {}
-- Framework Settings
MusicAppConfig.Framework = "esx" -- Options: "esx", "qbcore", or "qbox"
-- Audio range settings
MusicAppConfig.AUDIO_RANGE = 50.0 -- Maximum distance to hear music (meters)
MusicAppConfig.POSITION_UPDATE_RANGE = 60.0 -- Slightly larger range for position updates to prevent cutting out
-- Volume settings
MusicAppConfig.DEFAULT_VOLUME = 50.0 -- Default volume percentage (kept at 50%)
MusicAppConfig.XSOUND_DISTANCE = 15 -- Distance setting for xSound
-- 3D Sound settings
MusicAppConfig.ENABLE_3D_SOUND = true -- Enable 3D positional audio
-- Position update tiers (speed in mph, wait in ms)
MusicAppConfig.POSITION_UPDATE_TIERS = {
{ speed = 125, wait = 5, level = 4 }, -- Very high speed: 200 updates/sec
{ speed = 100, wait = 15, level = 3 }, -- High speed: ~67 updates/sec
{ speed = 75, wait = 25, level = 2 }, -- Medium-high speed: 40 updates/sec
{ speed = 25, wait = 50, level = 1 }, -- Medium speed: 20 updates/sec
{ speed = 0, wait = 300, level = 0 }, -- Low/stationary: ~3 updates/sec
}
-- Debug settings
MusicAppConfig.DEBUG_MODE = false -- Set to true to enable debug output (console.log and print statements)
-- Mock Data Settings
MusicAppConfig.MockData = {
-- Mock YouTube search results
SearchResults = {
{ id = 'dQw4w9WgXcQ', title = 'Rick Astley - Never Gonna Give You Up (Official Video)', channel = 'Rick Astley', thumbnail = 'https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' },
{ id = 'kJQP7kiw5Fk', title = 'Luis Fonsi - Despacito ft. Daddy Yankee', channel = 'Luis Fonsi', thumbnail = 'https://img.youtube.com/vi/kJQP7kiw5Fk/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=kJQP7kiw5Fk' },
{ id = '9bZkp7q19f0', title = 'PSY - GANGNAM STYLE (강남스타일) M/V', channel = 'officialpsy', thumbnail = 'https://img.youtube.com/vi/9bZkp7q19f0/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=9bZkp7q19f0' },
{ id = 'YQHsXMglC9A', title = 'Adele - Hello', channel = 'Adele', thumbnail = 'https://img.youtube.com/vi/YQHsXMglC9A/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=YQHsXMglC9A' },
{ id = 'hT_nvWreIhg', title = 'The Weeknd - Blinding Lights', channel = 'The Weeknd', thumbnail = 'https://img.youtube.com/vi/hT_nvWreIhg/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=hT_nvWreIhg' }
},
-- Mock trending videos
TrendingVideos = {
{ id = 'dQw4w9WgXcQ', title = 'Rick Astley - Never Gonna Give You Up (Official Video)', channel = 'Rick Astley', thumbnail = 'https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' },
{ id = 'kJQP7kiw5Fk', title = 'Luis Fonsi - Despacito ft. Daddy Yankee', channel = 'Luis Fonsi', thumbnail = 'https://img.youtube.com/vi/kJQP7kiw5Fk/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=kJQP7kiw5Fk' },
{ id = '9bZkp7q19f0', title = 'PSY - GANGNAM STYLE (강남스타일) M/V', channel = 'officialpsy', thumbnail = 'https://img.youtube.com/vi/9bZkp7q19f0/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=9bZkp7q19f0' },
{ id = 'YQHsXMglC9A', title = 'Adele - Hello', channel = 'Adele', thumbnail = 'https://img.youtube.com/vi/YQHsXMglC9A/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=YQHsXMglC9A' },
{ id = 'hT_nvWreIhg', title = 'The Weeknd - Blinding Lights', channel = 'The Weeknd', thumbnail = 'https://img.youtube.com/vi/hT_nvWreIhg/hqdefault.jpg', url = 'https://www.youtube.com/watch?v=hT_nvWreIhg' }
}
}
-- Test Playlist Settings
MusicAppConfig.TestPlaylist = {
Enabled = false, -- Set to false to disable test playlist creation
Name = "Test Playlist", -- Name of the test playlist
Songs = {
["1"] = {
id = 1001,
title = "Rick Astley - Never Gonna Give You Up (Official Video)",
url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
thumbnail = "https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
timestamp = 0
},
["2"] = {
id = 1002,
title = "Luis Fonsi - Despacito ft. Daddy Yankee",
url = "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
thumbnail = "https://img.youtube.com/vi/kJQP7kiw5Fk/hqdefault.jpg",
timestamp = 0
},
["3"] = {
id = 1003,
title = "PSY - GANGNAM STYLE (강남스타일) M/V",
url = "https://www.youtube.com/watch?v=9bZkp7q19f0",
thumbnail = "https://img.youtube.com/vi/9bZkp7q19f0/hqdefault.jpg",
timestamp = 0
},
["4"] = {
id = 1004,
title = "Adele - Hello",
url = "https://www.youtube.com/watch?v=YQHsXMglC9A",
thumbnail = "https://img.youtube.com/vi/YQHsXMglC9A/hqdefault.jpg",
timestamp = 0
},
["5"] = {
id = 1005,
title = "The Weeknd - Blinding Lights",
url = "https://www.youtube.com/watch?v=hT_nvWreIhg",
thumbnail = "https://img.youtube.com/vi/hT_nvWreIhg/hqdefault.jpg",
timestamp = 0
}
}
}
-- Other settings
MusicAppConfig.MIN_DISTANCE_THRESHOLD = 2.0 -- Minimum distance (meters) before sending position update
MusicAppConfig.TIER_STICKY_TIME = 3000 -- Time (ms) to maintain higher tier after speed drops
🎶 Enhance your in-game experience with CemtMusic – the future of in-game music is here!