Vice City: Multiplayer

Server Development => Community Plugins => Topic started by: MEGAMIND on Apr 19, 2026, 05:04 PM

Title: VCMPAI Plugin
Post by: MEGAMIND on Apr 19, 2026, 05:04 PM
(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)

Overview

This 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:

Features


Installation


ai.cfg

Getting a Groq API Key

Example:
api_key=your_api_key_here

Restart your server after adding the key.

Usage

getChatGPTResponse(text, player.ID, tone)

Parameters:

Example

getChatGPTResponse(
    "How can I earn money in this server?",
    player.ID,
    "friendly and helpful"
);

Use Cases


Background

Previously, implementing AI required:

Now, it's just one function call.

Downloads & Source

Source 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


Feedback

Share 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)
Title: Re: VCMPAI Plugin
Post by: MEGAMIND on Apr 21, 2026, 07:19 AM
Quick Examples:
function onPlayerJoin( player )
{
local reply = getChatGPTResponse("Welcome this player", player.ID, "Bad");
MessagePlayer(reply.tostring(), player);
}
function onPlayerChat( player, text )
{
print( player.Name + ": " + text );
local tone = "You are Chat GPT-3.5 Turbo. Limit your responses to 3 lines.";
local reply = getChatGPTResponse(text, player.ID, tone);
        MessagePlayer("[#FF3636]"+reply.tostring(), player);
return 1;
}
function onPlayerCommand( player, cmd, text )
{
 if(cmd == "chatgpt")
{
        local tone = "You are Chat GPT-3.5 Turbo. Limit your responses to 3 lines.";
local reply = getChatGPTResponse(text, player.ID, tone);
        MessagePlayer("[#FF3636]"+reply.tostring(), player);
}
}