forked from Simnation/Main
1.5 KiB
1.5 KiB
Boat Anchor Script
A QBCore boat anchoring solution with synchronized anchor state across clients.
Features
- Server synced anchor status
- Radial menu integration
- Anchor drop/raise effects and sounds
- Progressbar feedback
- Notifications
Requirements
- qb-core
- qb-radialmenu (optional)
- xsound (optional, for anchor sounds)
Installation
- Download the script
- Place
sg-boatanchor
into yourresources
orstandalone
folder (remove-main
from folder if necessary) - Place sound files from
sg-boatanchor\assets
into thexsound\html\sounds
folder - Add
ensure sg-boatanchor
to your server.cfg (after all qb scripts), unless instandalone
folder - Configure options in
config.lua
to your liking - Restart/start your server
Configuration
All configuration options can be found in the config.lua
file.
Some key options:
Config.Progressbar
- Customize the progress bar labels and timingConfig.Command
- Set a slash command for anchoringConfig.RadialMenu
- Toggle and customize the radial menu optionsConfig.Notify
- Adjust the anchor notification messages
Usage
- Use the slash command
/anchor
to toggle the anchor - Use the boat anchor radial menu option
- Use the default keybind
Y
to toggle anchor
Credits
- Nicky
- Join the discord for support: SG Scripts Discord