Guest User

Untitled

a guest
Aug 25th, 2019
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (height < 150) then
  2. vDist = 1-((150-height)/100)
  3. elseif (height > 150) and (height < 330) then
  4. vDist = ((330-height)/180)
  5. end
  6.  
  7. local hVol = 1-(hDist/700)
  8.  
  9. soundVolume = soundVolume*vDist*hVol
  10.  
  11. if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
  12. soundVolume = soundVolume*0.5
  13. end
  14.  
  15. if (height < 330) and (height > 150) and (hDist < 700) then
  16. SendNUIMessage({
  17. transactionType = 'npas',
  18. transactionVolume = soundVolume
  19. })
  20. end
RAW Paste Data