0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function bindHoron( key, keyState ) if isPedInVehicle( localPlayer ) then --if seat == 0 then if ( keyState == 'down' ) then sound = playSound3D( 'horn.mp3', getElementPosition( localPlayer ) ) setSoundVolume(desusound,5.0) setSoundMaxDistance(desusound, 200) attachElements( sound, getPedOccupiedVehicle( localPlayer ) ) elseif ( keyState == 'up' ) then if isElement( sound ) then stopSound( sound ) end end endendbindKey( 'h', 'down', bindHoron )bindKey( 'capslock', 'down', bindHoron )bindKey( 'h', 'up', bindHoron )bindKey( 'capslock', 'up', bindHoron )
araclar = {411, 413, 600, 601,} --[[Arac idlerini belirliyebileceğiniz kısım.]]function bindHoron(key, keyState)for i, v in ipairs(araclar) do if getElementModel(localPlayer) == v then if isPedInVehicle( localPlayer ) then --if seat == 0 then if ( keyState == 'down' ) then sound = playSound3D( 'horn.mp3', getElementPosition( localPlayer ) ) setSoundVolume(desusound,5.0) setSoundMaxDistance(desusound, 200) attachElements( sound, getPedOccupiedVehicle( localPlayer ) ) elseif ( keyState == 'up' ) then if isElement( sound ) then stopSound( sound ) end end endendendendbindKey( 'h', 'down', bindHoron )bindKey( 'capslock', 'down', bindHoron )bindKey( 'h', 'up', bindHoron )bindKey( 'capslock', 'up', bindHoron )