for me is not working, i have that error:
Logger is not defined
#Edit - all works fine now, just the link was broken sry and nice update
for me is not working, i have that error:
Logger is not defined
#Edit - all works fine now, just the link was broken sry and nice update
Well the menu and other things are normal but when I try to put a song nothing happens just an error appears in the console! ! http://prntscr.com/p5rgev
Donāt put the full link, just type the code afther =
Like this, Z6IOjNvTZ1s
yes I was just putting in the ID but I tried another song and it worked it seems like and only some big songs that donāt catch
Only Youtube Video who allow Embed player can be played like said in the original post. I will work on a better way to log error in ESX Notifications like āSong not available, try another oneā
What can be triggered to trigger the plugin
So how does this script work?
I have tried it and it works perfect, I just want to know if I can increase the range in which it is heard, thanks!!
you can do this in config.lua
oh Iām sorry, I looked at it and I didnāt see it, Iām stupid XD ty
LINE 3
Lol !
standalone plis s2
So how does this script work?
Not hard, just put the id afther =
im just only can play your music BLyz7_Ou5bY , i cant use any music in youtube only yours
Youāre a genius! I suggest a radio like this, but for the car. Thank you for uploading your content.
GREAT WORK
open the SQL file and delete āessentialmodeā it should work after
I donāt know if itās the best way to do but for the sound issue when someone leave the BoomBox zone you can maybe set the volume to 0.0 when he leave the zone and get back to 40.0 for exemple when he is return in instead of stop the sound
I was lazy and i made this change quickly just for testing this hypothesis this is why the second SendNUIMessage is here but itās seems to work when you come back close to the BoomBox the sound will normally resumes, it will maybe help to solve this issue in a cleaner way :
First :
RegisterNetEvent('esx_hifi:play_music')
AddEventHandler('esx_hifi:play_music', function(id, object)
if distance(object) < Config.distance then
SendNUIMessage({
transactionType = 'playSound',
transactionData = id
})
Citizen.CreateThread(function()
while true do
Citizen.Wait(100)
if distance(object) > Config.distance then
SendNUIMessage({
transactionType = 'volume',
transactionData = 0.0
})
end
end
end)
end
end)
Second :
if closestDistance ~= -1 and closestDistance <= 3.0 then
if lastEntity ~= closestEntity and not menuOpen then
ESX.ShowHelpNotification(_U('hifi_help'))
lastEntity = closestEntity
currentAction = "music"
currentData = closestEntity
SendNUIMessage({
transactionType = 'volume',
transactionData = 40.0
})
end
else
if lastEntity then
lastEntity = nil
currentAction = nil
currentData = nil
end
end