local soundSwitch_lu=getTickCount()-2000
bindKey("1", "down", function()
outputDebugString("sw0")
if getTickCount()-soundSwitch_lu<2000 then return end
soundSwitch_lu=getTickCount()
local pojazd=getPedOccupiedVehicle(localPlayer)
outputDebugString("sw2")
if pojazd and getVehicleController(pojazd)==localPlayer then
local em=getElementModel(pojazd)
if em==573 then
triggerServerEvent("toggleVehicleSound", pojazd, "PSP.mp3", 225)
cancelEvent()
return
end
end
end
local soundSwitch_lu=getTickCount()-2000
local function soundSwitch()
outputDebugString("sw0")
if getTickCount()-soundSwitch_lu<2000 then return end
soundSwitch_lu=getTickCount()
local pojazd=getPedOccupiedVehicle(localPlayer)
outputDebugString("sw2")
if pojazd and getVehicleController(pojazd)==localPlayer then
local em=getElementModel(pojazd)
if em==596 then -- 596 zmieniasz na swoje id pojazdu
triggerServerEvent("toggleVehicleSound", pojazd, "300-90.ogg", 225) -- 300-90.ogg zmieniasz na sw?j plik dzwi?kowy
cancelEvent()
return
end
end
end
bindKey("1", "down", soundSwitch)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach