[RELEASE] Youtube BOOMBOX

TTpiKfljRzY&t=58s

Could you do a PR on github ?

got a error whene trying to pick up dosent show back in inventory? any one

SCRIPT ERROR: @esx_hifi/server/main.lua:17: attempt to compare number with nil
1 Like

if you leave zone second time it will keep playing no matter where you are.

you need to change in the new esx format xPlayer canCarryItem …

1 Like

remplace this in server.lua

RegisterServerEvent('esx_hifi:remove_hifi')
AddEventHandler('esx_hifi:remove_hifi', function(coords)
	local xPlayer = ESX.GetPlayerFromId(source)
	if xPlayer.getInventoryItem('hifi').count < xPlayer.getInventoryItem('hifi').limit then
		xPlayer.addInventoryItem('hifi', 1)
	end
	TriggerClientEvent('esx_hifi:stop_music', -1, coords)
end)

with this

RegisterServerEvent('esx_hifi:remove_hifi')
AddEventHandler('esx_hifi:remove_hifi', function(coords)
	local xPlayer = ESX.GetPlayerFromId(source)
		if xPlayer.canCarryItem('hifi', 1) then
		xPlayer.addInventoryItem('hifi', 1)
	end
	TriggerClientEvent('esx_hifi:stop_music', -1, coords)
end)

line betwen 14 and 21

1 Like

Omg tnx im at work now ill try when i get home​:heart::heart:

Whats the key to open the menu?

Its inside the code, start looking.

1 Like

@OZ_World I didnt touch anithing and all the files says translation error and nothing works :frowning: But using the video as a reference I manage to open the box where u put the video id and nothing plays

never mind fixed it

hey, when i open the menu for the hifi the menu list all says Locale [EN] does not exist
is there a way to fix this?? attached screenshot link https://gyazo.com/c10321c55846aad13e0a61d864b07f4b

pls VRP!

How i open menu? can you help me

4 Likes

it stopped working in the last es_extended update

Still working…

I try to put it down but the hifi will disapear

Hello I have a Question what script is this from the Inventory? 0:02

for me too

i get this

the exact same thing

1 Like