samp.directory
← Scripts e bibliotecas

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★ 2atualizado jul. de 2026Apache-2.0C++
Abrir no GitHub

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

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

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