Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (height < 150) then
- vDist = 1-((150-height)/100)
- elseif (height > 150) and (height < 330) then
- vDist = ((330-height)/180)
- end
- local hVol = 1-(hDist/700)
- soundVolume = soundVolume*vDist*hVol
- if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
- soundVolume = soundVolume*0.5
- end
- if (height < 330) and (height > 150) and (hDist < 700) then
- SendNUIMessage({
- transactionType = 'npas',
- transactionVolume = soundVolume
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement