This ESX script combines several beach activities in one resource: group yoga, a BMX competition, weight lifting and bike and jet ski rentals. It fits servers that want more things for players to do at the beach.
Group synced yoga
- Group yoga led by an instructor ped.
- Follow her instructions or she will kick you from the session.
- You perform different emotes, starting with stretches, then breathing and finally yoga.
- When you finish, you get a temporary speed boost (duration set in the config).
- Fully synced: other players can join and everyone is on the same step. After a session the instructor resets after 8 minutes (changeable in
server.lua).
BMX competition
- Located at the beach.
- Talk to the ped to borrow a BMX, or bring your own.
- Ask the ped to "Record your Score", then do tricks to gain points.
- When the time is up (set in the config), you are told your total score to share with your friends.
Good for friendly competitions or organised events on your server.
Weight lifting
Lifting, chin-ups and bench press, each with animations and accessible through the ALT target menu. Screenshots: Lifting, Chin Ups, Bench Press.
- Set up for the beach, but it works at any workout equipment location.
- Training enough gives you a boost to your unarmed damage. You can change how long it lasts in the config.
- Working out too much makes you exhausted and cancels the workout.
- Note: no other script may change melee damage at the same time. If one does, remove that part from the other script and adjust the values in
client.lua ("set melee damage").
Bike and jet ski rentals
- Rent a beach cruiser at the yoga instructor.
- Rent a jet ski down the beach by the lifeguard tower (look for the surfer).
- The BMX competition ped lends you a BMX.
All peds despawn when no one is around, to avoid ped pool crashes, and respawn when players come close.
Requirements
- ESX
- PolyZone
- bt-target
- An emote system (the author uses dpEmotes)
- mythic_notify for notifications (can be replaced with your own notification system)
Installation
- Copy the
gl-fitness folder into your resources directory.
- Start ESX, PolyZone and bt-target first, then add
ensure gl-fitness to your server.cfg.
- Adjust the timings in the config part of the script to your liking.