(https://www.ciscoinvestments.com/assets/logos/groq-logo.png)
VCMP AI Plugin (Groq API Integration)A
VCMP (Vice City Multiplayer) plugin written in C++ using the VCMP SDK that allows your server to process player input and generate AI-powered responses using the
Groq API.
(https://i.imgur.com/DQlz6x6.png)
OverviewThis plugin makes it easy to integrate AI into your VCMP server without using Node.js, sockets, or complex external systems.
With a simple function call, you can:
- Create AI chatbots
- Control NPC behavior
- Build interactive systems
- Customize AI tone and personality
Features- Native C++ plugin (VCMP SDK)
- Groq API integration
- Simple function usage
- No external dependencies
- Custom AI tone support
- Lightweight and efficient
Installation- Place the plugin (vcmpai32.dll or vcmpai64.dll) into your server plugins folder.
- Start your server once — it will generate:
ai.cfg
- Open ai.cfg and add your Groq API key.
Getting a Groq API Key- Go to: https://console.groq.com/keys (https://console.groq.com/keys)
- Generate a free API key
- Paste it into ai.cfg
Example:
api_key=your_api_key_here
Restart your server after adding the key.
UsagegetChatGPTResponse(text, player.ID, tone)
Parameters:- text (string)
Input sent to the AI. Can include anything:
- Player messages
- player.Name
- player.IP
- Custom server data
- player.ID (integer)
Unique ID of the player requesting the response.
- tone (string)
Controls how the AI responds (style/personality).
Examples:
- "friendly"
- "sarcastic"
- "game narrator"
- "strict admin"
ExamplegetChatGPTResponse(
"How can I earn money in this server?",
player.ID,
"friendly and helpful"
);
Use Cases- AI chatbots
- NPC dialogue (can be used with habi2 NPC system)
- Admin tools
- Roleplay systems
- Smart commands
BackgroundPreviously, implementing AI required:
- Node.js servers
- WebSockets
- Complex scripting
Now, it's just
one function call.
Downloads & SourceSource GitHub (https://github.com/MEGAMINDMK/vcmpai)
Download Plugin 32-bit (https://github.com/MEGAMINDMK/vcmpai/releases/download/v1.0/vcmpai32.dll)
Download Plugin 64-bit (https://github.com/MEGAMINDMK/vcmpai/releases/download/v1.0/vcmpai64.dll)
Notes- Make sure your API key is valid
- Invalid config = no AI response
- Tone affects output heavily
FeedbackShare your ideas or suggestions below — I'll try to add improvements when I get time.
(https://img.shields.io/github/downloads/MEGAMINDMK/vcmpai/total.svg?color=tuquoise&label=Downloads&logo=github&logoColor=white&style=for-the-badge)
(https://img.shields.io/github/v/release/MEGAMINDMK/vcmpai?color=blue&label=Latest%20Update&labelColor=black)