hallo leute ich habe grade ein selfmade hupe script gemacht nur ist das problem das die alte hupe auch noch dar ist wie kann ich sie für alle user weg machen?
Edit//
Spoiler anzeigen
function bindHoron( key, keyState )
if isPedInVehicle( localPlayer ) then
if ( keyState == 'down' ) then
sound = playSound3D( 'horn.mp3', getElementPosition( localPlayer ) )
setSoundVolume(desusound,5.0)
setSoundMaxDistance(desusound, 190)
attachElements( sound, getPedOccupiedVehicle( localPlayer ) )
elseif ( keyState == 'up' ) then
if isElement( sound ) then
stopSound( sound )
end
end
end
end
unbindKey( 'h', 'down', bindHoron )
bindKey( 'h', 'down', bindHoron )
bindKey( 'h', 'up', bindHoron )