Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Boat Anchor Command with Key Mapping #487

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RojinxChhetri
Copy link

This PR introduces a new command and key mapping to anchor or unanchor boats in-game. The feature allows players to anchor their boats when stationary and unanchor them when needed, providing a realistic boating experience.

Features Added:

  • Command: /anchor to toggle boat anchoring.
  • Validation: Ensures boats can only be anchored when speed is below 5 mph.
  • Key Mapping: F11 to quickly anchor/unanchor the boat.
  • Notifications: Provides user feedback with clear messages:
    • "Your Boat is now anchored."
    • "Your Boat is no longer anchored."
    • "You are not in a boat."
    • "You are going too fast to anchor your boat."

This feature aligns with the core gameplay mechanics, enhancing immersion and control for players using boats in the game.

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all its functionality? [yes]
  • Does your code fit the style guidelines? [yes]
  • Does your PR fit the contribution guidelines? [yes]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant