Releases: dsvipeer/MFPD-Treadmill
Releases · dsvipeer/MFPD-Treadmill
MFPD-Treadmill
🏃♂️MFPD-Treadmill - SYNCED ANIMATION AND SOUND EFFECTS TO ALL PLAYERS!🏃♂️
MFPD-Treadmill will finally give some USEFULNESS to the VANILLA TREADMILL PROP!
WORKS WITH ANY MLO/YMAPS, ETC. IT ONLY NEEDS TO HAVE THE TREADMILL PROP --> "apa_p_apdlc_treadmill_s"
To be able to play the sound to a radius so everyone can hear synced I've used PlayCustomSounds by LondonStudios.
You need to download PlayCustomSounds, rename to PlayCustomSounds (remove the -master) and inside their sounds folder and you can place the custom sounds "PlayCustomSounds\html\sounds" from my resource "run.ogg", "walk.ogg", "stop.ogg"
"run.ogg", "walk.ogg", "stop.ogg" will be inside my MFPD-Treadmill (MFPD-Treadmill\html\sounds) resource, you just need to grab them copy and paste inside the "PlayCustomSounds\html\sounds"
(Remembering again: Treadmills needs to be already spawned from a MLO/YMAP of your server or spawned by any prop spawner). My resource allow you to USE them anywhere without needing to configure anything.
This resource is able to detect any treadmill that you may be closer, and upon you press "E" close or standing on it, you'll be quickly attached and automatically start walking with REAL WALKING SOUND!
- NOTE: IT WILL BE ABLE TO WORK EVEN WITH MULTIPLE TREADMILLS CLOSE TO EACH OTHER! YOU CAN CHOOSE ANY SPECIFIC TREADMILL AND IT WILL BE THE CLOSEST!
To start RUNNING you just need to press "N" while you walk! It's going to be a realistic transition between the animations and sounds
- You can change the default keybind for everyone in the server by changing:
- RegisterKeyMapping('stop', 'Stop using the treadmill', 'keyboard', 'X')
- RegisterKeyMapping('run', 'Start Running', 'keyboard', 'N')
- The bind to enter/start using the treadmill will be "E" always as It's hardcoded, you can change, but only if you know what you are doing
- While it's possible to set default keybind, you can also change for yourself in-game, just go into the PAUSE MENU and there edit the keybind in the Pause Menu>Configs>Keyboard>FiveM
To stop using the treadmill, you just need to press "X" and it will stop any action, detach you while it plays a realistic sound and animation to simulate you pressing the "STOP" button in the treadmill.
After you start using the treadmill, you will be endless exercising until you press "X" to leave the treadmill.
- NOTE2: THIS RESOURCE DOES NOT SPAWN TREADMILLS. YOU MAY USE A MLO/YMAP THAT HAS TREADMILLS OR YOU CAN MANUALLY SPAWN SERVER-SIDE TREADMILLS USING ANY PROP SPAWNER AND SPAWNING THE PROP "apa_p_apdlc_treadmill_s", upon spawning, my resource will work in any "apa_p_apdlc_treadmill_s" spawned as it does not require to set coords.
| Code is accessible | Yes |
|---|---|
| Subscription-based | No |
| ------------------------------------- | ---------------------------- |
| Lines (approximately) | 135 |
| ------------------------------------- | ---------------------------- |
| Requirements | PlayCustomSounds by LondonStudios |
| ------------------------------------- | ---------------------------- |
| Support | Yes |
| ------------------------------------- | ---------------------------- |
