19 lines
		
	
	
		
			No EOL
		
	
	
		
			955 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			No EOL
		
	
	
		
			955 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| RegisterServerEvent('InteractSound_SV:PlayOnOne')
 | |
| AddEventHandler('InteractSound_SV:PlayOnOne', function(clientNetId, soundFile, soundVolume)
 | |
|     TriggerClientEvent('InteractSound_CL:PlayOnOne', clientNetId, soundFile, soundVolume)
 | |
| end)
 | |
| 
 | |
| RegisterServerEvent('InteractSound_SV:PlayOnSource')
 | |
| AddEventHandler('InteractSound_SV:PlayOnSource', function(soundFile, soundVolume)
 | |
|     TriggerClientEvent('InteractSound_CL:PlayOnOne', source, soundFile, soundVolume)
 | |
| end)
 | |
| 
 | |
| RegisterServerEvent('InteractSound_SV:PlayOnAll')
 | |
| AddEventHandler('InteractSound_SV:PlayOnAll', function(soundFile, soundVolume)
 | |
|     TriggerClientEvent('InteractSound_CL:PlayOnAll', -1, soundFile, soundVolume)
 | |
| end)
 | |
| 
 | |
| RegisterServerEvent('InteractSound_SV:PlayWithinDistance')
 | |
| AddEventHandler('InteractSound_SV:PlayWithinDistance', function(maxDistance, soundFile, soundVolume)
 | |
|     TriggerClientEvent('InteractSound_CL:PlayWithinDistance', -1, source, maxDistance, soundFile, soundVolume)
 | |
| end) | 
