canvasdevofficial/Server-Connect
A universal plugin for connecting to a third-party server from Arizona RP, Radmir RP, Rodina RP, and Amazing RP clients
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a 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
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing