samp.directory
← Scripts et bibliothèques

canvasdevofficial/Server-Connect

A universal plugin for connecting to a third-party server from Arizona RP, Radmir RP, Rodina RP, and Amazing RP clients

Plugin★ 2mis à jour juil. 2026Apache-2.0C++
Ouvrir sur GitHub
L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

README.md

ServerConnect

A C++ library that intercepts the SA:MP 0.3.7 R3 connection routine and overrides the target host and port before execution � designed for projects like Arizona RP, Radmir RP, Rodina RP, and Amazing RP

Built on MinHook with optional JSON configuration support.

Designed specifically for SA:MP 0.3.7 R3 (other versions may require updated offsets).


Features

  • SA:MP connection routine hooking (0.3.7 R3)
  • Host/port override for projects like Arizona RP, Radmir RP, Rodina RP, and Amazing RP
  • Compile-time configuration
  • Optional JSON runtime configuration

Requirements

  • Visual Studio 2022
  • C++17+
  • SA:MP 0.3.7 R3
  • MinHook
  • nlohmann/json (optional)

Configuration

Settings.h

#define DEFAULT_HOST "127.0.0.1"
#define DEFAULT_PORT 7777

#define JSON_FILENAME "ServerConnect.json"
#define USE_JSON_CONFIG false

JSON config (optional)

{
    "server": {
        "host": "127.0.0.1",
        "port": 7777
    }
}

How it works

  1. Wait for samp.dll
  2. Initialize MinHook
  3. Install hook on connection routine
  4. Override host/port arguments
  5. Call original function

Usage

if (!CanVasDev::ServerConnect::Hook::InstallHook())
{
    // failed
}

Configuration priority

ServerConnect.json (if enabled)
        ?
Settings.h (fallback)

Dependencies

  • MinHook
  • nlohmann/json (optional)

License

Apache License 2.0 � 2026 CanVas Dev

gtagtasahooksmoddingsampserverconnect

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

canvasdevofficial/Server-Connect : Plugin SA-MP | samp.directory