Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement