If anyone is looking to disable the radio while displaying cars at the shop you just need to add this code on you client.lua:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local vehicle = GetVehiclePedIsIn(GetPlayerPed(-1), false)
SetVehicleRadioEnabled(vehicle, false)
end
end)
Hope it helps someone and thanks for this amazing vehicle shop, btw im still looking to disable weapon scroll wheel while being at the shop if anyone know any solution it would much appreciated
while true do
Wait(1)
BlockWeaponWheelThisFrame()
HideHudComponentThisFrame(19)
HideHudComponentThisFrame(20)
HideHudComponentThisFrame(17)
DisableControlAction(0, 37, true) --Disable Tab
end
end
end)
if i put more than 16 display cars on map , The function will can’t use on after 16 (e.g 17- 30) car (befor 16 car can use this function)
i am sorry for my bad english
Sometimes when I log in using esx_multicharacter, the menu background (the shadow) of the html appears and only dissapear when I reload the script.
Sadly can’t reproduce it
I’m getting that consistently. New build of ESX Legacy with esx_multicharacter. It’s definitely this script as the problem goes away if I don’t start it.
The odd thing is, I updated the script 4 or 5 days ago but didn’t notice this start to happen until yesterday when I changed over from fivem-appearance to cui_character (if that makes any difference). I downloaded the latest code again today be am still having the same issue.