Skip to content

This script enables players to send messages to a Discord webhook through interactions with NPCs (non-playable characters) in GTA V roleplay servers using FiveM. It is designed to be used for businesses or various jobs within the game.

License

Notifications You must be signed in to change notification settings

noswear922/QB-NPC-Messaging-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

NPC Messaging Script for GTA V RP

This script enables players to send messages to a Discord webhook through interactions with NPCs (non-playable characters) in GTA V roleplay servers using FiveM. It is designed to be used for businesses or various jobs within the game.

Features

  • Message Sending: Allows players to send messages to a Discord webhook via NPC interactions.
  • Automatic Character Info Retrieval: Automatically retrieves character information such as names and phone numbers.
  • Message Input Field: Provides a field for players to enter their message when interacting with an NPC.

How It Works

  1. NPC Setup: NPCs are created with specified models and placed at designated locations in the game.
  2. Interaction: When players interact with an NPC, the script retrieves their character information and displays an input dialog.
  3. Message Submission: Players can enter a message in the dialog box, which is then sent to a specified Discord webhook along with the character information.

Script Status

  • Work In Progress (WIP): This script is currently in development and will be updated with more features and improvements in the future.
  • Feedback: As this is my first script, I welcome any feedback or suggestions to help improve it.

Dependencies

  • ox_target: For NPC interaction targeting.
  • ox_lib: For displaying input dialogs.

Installation

  1. Add this script to your resources folder.
  2. Ensure ox_target and ox_lib are also added to your server.
  3. Start the script in your server.cfg or appropriate configuration file.

License

This script is licensed under the MIT License. See the LICENSE file for details.

Contributions

Contributions are welcome! Please submit a pull request or open an issue if you have suggestions or improvements.

About

This script enables players to send messages to a Discord webhook through interactions with NPCs (non-playable characters) in GTA V roleplay servers using FiveM. It is designed to be used for businesses or various jobs within the game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages