English : Hello everyone, I would like a little help on a realistic sound box system. see the link how it would work, if possible help I thank
Português : Ola a todos , gostaria de uma pequena ajuda em um sistema de caixa de som realista . vejam no link como funcionaria , se possível ajudar eu agradeço
see the image (vejam a imagem ) : https://imgur.com/a/Ccuwm
The system will work using
bindKey("r","down",
function()
if cone1 then
stopSound(cone1)
else
local cone1 playSound("IP STREAM RADIO") --- the object moves in the rhythm of the sound
local theVeh = getPedOccupiedVehicle(localPlayer)local getComponent = getVehicleComponents(theVeh)
if (theVeh) then
for k in pairs (getComponent) do
local x, y, z = getVehicleComponentPosition(theVeh, cone)
cone1 = setVehicleComponentPosition(theVeh, cone, x+1, y+1, z+1)
end
end
end
)