Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MEGAMIND

#1
Community Plugins / Re: A.I Plugin
Apr 30, 2026, 06:53 AM
Improved & updated plugin here thats why locking this post
#2
Quote from: Nihongo^ on Apr 26, 2026, 03:32 PMCan it understand Java? I've heard that some servers in VCMP are scripted using Java, but you mentioned it only has information from the wiki, which mainly covers Squirrel scripting, not Java.
nope for now its configured to wiki if theres any java wiki i can do that too
#3
Community Plugins / Re: VCMPAI Plugin
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);
}
}
#4
Community Plugins / VCMPAI Plugin
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.



#5
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
#6

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..!

#7
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
#8
Quote from: DNeep on Apr 14, 2026, 11:49 AM

Here are the files present in the plugins folder
Download and run pls Server
#9
Quote from: DNeep on Apr 14, 2026, 10:18 AM

I did it, but the same error is still coming  :o

Make sure your directory is like this



and inside scripts folder you have



if you still get there error you main.nut could be the problem
#10
Quote from: DNeep on Apr 14, 2026, 10:02 AMhmm done But now it is showing this error.


dude rename 32 to 64
#11
Community Plugins / Re: A.I Plugin
Apr 14, 2026, 10:01 AM
Quote from: PLAYER on Apr 13, 2026, 05:04 PMLinux plugin pls
the source is open if u have a linux do compile it  ;D
#12
Quote from: DNeep on Apr 14, 2026, 09:56 AM
Quote from: MEGAMIND on Apr 14, 2026, 09:48 AM
Quote from: DNeep on Apr 14, 2026, 09:38 AM

How to fix this error  :o
whats inside ur server.cfg?

make sure ur server.cfg has this structure

gamemode Default
plugins xmlconf04rel32 announce04rel32 squirrel04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100

This

name MyServer
maxplayers 50
port 8192
gamemode squirrel
plugins squirrel04rel64 announce04rel64 sqlite04rel64
wrong make sure it has the same structure as i provided
#13
Quote from: DNeep on Apr 14, 2026, 09:38 AM

How to fix this error  :o
whats inside ur server.cfg?

make sure ur server.cfg has this structure

gamemode Default
plugins xmlconf04rel32 announce04rel32 squirrel04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100
#14
Community Plugins / Re: A.I Plugin
Apr 12, 2026, 09:54 AM
ai.cfg now includes more types
  • api_key=YOUR_API_KEY_HERE
  • model=model-name
  • tone= examlple bad, freindly, happy, girly anything
  • color=#ff00ff -> could be a hex or rgb example rgb(0,0,0)
  • thinking_message=AI thinking... express what a.i is doing example AI Responding, it could be even empty if u dont want to show a thinking msg
  • prompt=Say welcome message to a new GTA Vice City Multiplayer player in one line. -> example tell ai what to do on player join
#15
Community Plugins / A.I Plugin
Apr 11, 2026, 12:25 PM

Well was way bored...! so i wrote an a.i written in cpp using vcmp sdk that includes groq api. The plugin welcomes anyone on there screen when they join server



The plugin will generate a ai.cfg in your server folder
Then you need to go at Groq API Key
Generate a key for free, include that key to ai.cfg and run your server...

Anyone having a cpp knowledge can make the use of this plugin for them selves for there servers and make the a.i according to them either connect it with @habi2 npc or make a chatbot or whatever...

Note:Keep in mind its not the same plugin that is used in Top Down City Server[The only first a.i based server] (Thats way more advanced)..!

Source Github

Download Plugin 32
Download Plugin 64

Share your ideas or suggestions below.. ill see if i get time to add them..!