Recent posts

#11
Community Plugins / VCMPAI Plugin
Last post by MEGAMIND - Apr 19, 2026, 05:04 PM

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.



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

Example:
api_key=your_api_key_here

Restart your server after adding the key.

Usage

getChatGPTResponse(text, player.ID, tone)

Parameters:

  • text (string) 
    Input sent to the AI. Can include anything:

  • 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"
Example

getChatGPTResponse(
    "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

Background

Previously, implementing AI required:
  • Node.js servers
  • WebSockets
  • Complex scripting

Now, it's just one function call.

Downloads & Source

Source GitHub

Download Plugin 32-bit 
Download Plugin 64-bit

Notes

  • Make sure your API key is valid
  • Invalid config = no AI response
  • Tone affects output heavily

Feedback

Share your ideas or suggestions below — I'll try to add improvements when I get time.



#12
Script Showroom / Re: Modular Support
Last post by Sebastian - Apr 18, 2026, 10:19 PM
This looks really good, and would have helped a lot the younger me.
Beginners should try to get used to this, as will make everything more clear in their scripts, and easier to debug. (especially when about leaks)

Great job!

PS:
There are some things you might want to re-check :D
1. The filePath in ModuleManager is looking for directory "modules", while in your .zip you have "module" directory
2. The newTimer function should use funcName instead of this.funcName
3. onPlayerActionChange parameters are wrong
4. In debug.nut you are missing .len() in cmd "modules" for(), and the player argument in MessagePlayer

PS2:
Ah, I thought it allows using same event in multiple modules

EDIT:
Seems like there is a bigger problem with your newTimer - passing vargv to NewTimer.
I remember somebody created one which accepts all types of data; you should check that out.
The very sample you provided isn't working due to that reason..

EDIT2: Ah, ofc was the lord @. S.L.C. Extended Timers
#13
General Discussion / Re: VCMP A.I SCRIPT ASSISTANT
Last post by MEGAMIND - Apr 15, 2026, 12:47 PM
Quote from: (vG)DesTroYeR^ on Apr 15, 2026, 12:35 PMthats very helpful for newbie people or if you wanna fix an unnoticeable error in your scripts.

but it just works same as ChatGPT and other AIs, its not precise as u said

(but the good thing is that it doesn't call functions out of nowhere, but it might mistakenly do that ig)
actually its more then a normal day chatgpt.. This a.i has all the info of wiki like its kinda trained on that wiki..  8) but yes yet again its an a.i it can make mistakes
#14
General Discussion / Re: VCMP A.I SCRIPT ASSISTANT
Last post by (vG)DesTroYeR^ - Apr 15, 2026, 12:35 PM
thats very helpful for newbie people or if you wanna fix an unnoticeable error in your scripts.

but it just works same as ChatGPT and other AIs, its not precise as u said

(but the good thing is that it doesn't call functions out of nowhere, but it might mistakenly do that ig)
#15
General Discussion / VCMP A.I SCRIPT ASSISTANT
Last post by MEGAMIND - Apr 15, 2026, 09:53 AM

VCMP AI Script Assistant is an advanced AI system designed to interpret VCMP wiki functions, documentation, and usage examples. It intelligently combines structured knowledge to generate custom scripts based on user queries, transforming ideas into functional VCMP code with accuracy and efficiency.

Examples



Launch

How it works?
You need to get an api key first from GROQ
 then you simply ask it anything.. it will display you your answers according to query (Dont expect it to be perfect) as its an A.I After each answer you will simply get a new asnwer to question after 30 sec so that the A.I model doesnt get hog and ban you evenutally  8)

I'll try my best to update it to more efficient and with good results when i get time..!

#16
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 12:16 PM
Quote from: DNeep on Apr 14, 2026, 12:08 PM
Quote from: MEGAMIND on Apr 14, 2026, 12:01 PM
Quote from: DNeep on Apr 14, 2026, 11:49 AM

Here are the files present in the plugins folder
Download and run pls Server

The link is not working
works fine make sure ur not under some blocking system example vpn or ur isp or antivirus other then that pls visit vcmp discord to get more help
#17
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 12:08 PM
Quote from: MEGAMIND on Apr 14, 2026, 12:01 PM
Quote from: DNeep on Apr 14, 2026, 11:49 AM

Here are the files present in the plugins folder
Download and run pls Server

The link is not working
#18
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 12:01 PM
Quote from: DNeep on Apr 14, 2026, 11:49 AM

Here are the files present in the plugins folder
Download and run pls Server
#19
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 11:49 AM


Here are the files present in the plugins folder
#20
Script Showroom / Modular Support
Last post by PSL - Apr 14, 2026, 11:07 AM
This is a lightweight, modular management framework designed specifically for the Squirrel language. With zero dependencies and ready to use right out of the box, it comprehensively resolves the issues inherent in traditional single-script architectures—such as disorganization, difficulty in maintenance, lack of hot-updating capabilities, and event conflicts.

Through a unified module manager, the framework facilitates module loading, unloading, dependency management, lifecycle control, automatic global event dispatch, and secure timer isolation—thereby enabling your server scripts to truly achieve an engineered, modular, and extensible architecture.

  • Each module resides in a separate file with its own isolated scope, ensuring no mutual interference and resulting in a clean, easily maintainable code structure.
  • Supports single-module loading, batch loading, and dependency-aware loading; automatically detects whether a module has already been loaded to prevent redundant execution.
  • Features built-in `onScriptLoad` and `onScriptUnload` lifecycle hooks, which execute automatically whenever a module is loaded or unloaded.
  • Covers events across all scenarios—including server, player, vehicle, item, command, and chat interactions—with all modules automatically listening for these events, eliminating the need for manual hook binding.
  • Includes a dedicated `newTimer` function that binds timers directly to their respective modules; timers are automatically destroyed when a module is unloaded, effectively preventing memory leaks.
  • Enables cross-module function calls and variable access via `getModule()`, facilitating seamless functional interoperability between modules.
  • Supports the unloading of individual modules as well as a one-click option to clear all modules, allowing for hot-reloading without requiring a server restart.
  • Avoids polluting the global scope and leaves native logic unmodified; integration is straightforward and compatible with all standard Squirrel environments.

Here is a simple example.

function onPlayerJoin(player) {
MessagePlayer("[#FFFF00]Hello " + player.Name, player);
}

function onScriptLoad() {
print("onScriptLoad: " + moduleName);
}

function onScriptUnload() {
print("onScriptUnload: " + moduleName);

a.Delete();
}

function hello(value) {
print("hello " + value);
}

a <- newTimer("hello", 1000, 0);

Place the script file into the "module" folder, then load the filename to add the script's functionality to the server.

ModuleManager.load("testModule");