canvasdevofficial/Server-Connect
A universal plugin for connecting to a third-party server from Arizona RP, Radmir RP, Rodina RP, and Amazing RP clients
Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en 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
- Wait for samp.dll
- Initialize MinHook
- Install hook on connection routine
- Override host/port arguments
- 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 se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha