function bindHoron( key, keyState )
if isPedInVehicle( localPlayer ) then
if ( keyState == 'down' ) then
sound = playSound3D( 'Audio/sapd_horn.ogg', getElementPosition( localPlayer ) )
setSoundVolume(sound, 100.0)
setSoundSpeed ( sound, 1.0 )
attachElements( sound, getPedOccupiedVehicle( localPlayer ) )
elseif ( keyState == 'up' ) then
if isElement( sound ) then
stopSound( sound )
end
end
end
end
bindKey( 'lalt', 'down', bindHoron )
bindKey( 'lalt', 'up', bindHoron )