Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Play custom sound

Featured Replies

Hello,

first of all, this is not directly LSPDFR related, but since this is the most active DEV forum that I know, I am posting it here. Also I will use all the help in my future projects. (I am an audio designer.)

 

It's quite simple, I have the basics of programming, but it's like jumping to the unknown depths, with a parachute. 

I would like to know, if there is a way to play custom audio (from a folder inside GTA) using LUA (so I can work in realtime inside GTA).

 

I want to make a realistic audio simulation framework, which will simulate acustics, sound echo and so on. Mainly for weapons. I know, i know, we have many realistic sound mods, but it is not dynamic..

 

Can anyone help me with this? Much appreciated!

- this is my signature, ok? -

  • Management Team

Hello Martin,

 

Lua does not have any native function to play audio, so the easiest way would be to use a library for that. You can find some examples here: https://stackoverflow.com/questions/5365583/how-to-play-sound-in-lua

 

Note that this will play the audio from the GTA V process like any other "frontend" game audio, i.e. you cannot play it from a given game position to adjust for volume etc. These things you would have to implement yourself based on what parameters the library supports and what you can calculate from the game. Playing audio from your disk through the actual game world (i.e. a position in the game world) is possible, but much more complicated.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author

Hmm okay,

 

Nothing is impossible but not for me clearly! Thank you for your answer.

Also, is there a possibility to easily apply audio filter? Like for a vehicle engine.. Agin, dynamically.

 

- this is my signature, ok? -

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.