Repository navigation
Releases
CustomVehicle v1.1.0
What's new
- Custom animations (IFP). A model can now ship its own
.ifpfile (GTA: San AndreasANP3format). The custom animations replace the rider animations of custom motorbikes and are restored to default afterwards. - Model folders. Put each model in
models/<id>/with amodel.ini, then register them all with oneCVS_LoadModels()call. - Per-model tuning.
model.inisupports headlight, taillight, and wheel and mudguard position offsets. - New download overlay. Clients show a dark, rounded in-game download card (Direct3D9 + GDI+) with
TYPE,FILE,PROGRESS(0%–100%), speed in KB/s and an overall progress bar. It replaces the old server-side progress dialog. - Login gating. The overlay only appears after
OnPlayerConnect, not during the SA-MP loading screen. Your login or account system can wait forOnPlayerCVSDownloadFinish(playerid). - Faster returning players. The client verifies its cache through
.metafiles, so players who already have every model skip the download screen and go straight to login. - Custom Models panel (F3). Handled directly by
vehskin.asi, no Pawn code needed. It lists every registered model with its ID, file name, base ID, size andREADY/MISSINGstatus. While open you get a free cursor, mouse wheel orUp/Downscrolling, and a close button (XorF3again). - New Pawn helpers in
cvs.inc:CVS_StartPlayerDownload,CVS_ClearPlayerDownload,CVS_ShowModelsPanel. - New natives:
CVS_SetModelAnim,CVS_LoadModels, plus low-level natives used bycvs.inc:CVS_BeginDownload,CVS_EndDownload,CVS_ToggleModelsPanel. - Server HTTP fixes. New
/connectendpoint, per-player/vehicles, and the request parser now handlesContent-Lengthand thephaseparameter. - The client now caches and re-downloads
.ifpfiles together with.dffand.txd. - Separate build scripts.
build.shis replaced bybuild-windows.sh(clang, buildscvs.dllandvehskin.asi) andbuild-linux.sh(Zig, buildscvs.so). - README updated, with a new preview screenshot and separate Windows and Linux build instructions.
Downloads
| File | Goes to |
|---|---|
cvs.dll |
plugins/ folder of the SA-MP server (Windows) |
cvs.so |
plugins/ folder of the SA-MP server (Linux, beta) |
vehskin.asi |
GTA: San Andreas folder of each player (next to gta_sa.exe) |
cvs.inc |
pawno/include/ |
On a Linux server, use cvs.so instead of cvs.dll and add plugins cvs.so to server.cfg. Players still use vehskin.asi on Windows.
Upgrade notes
-
Update both the server plugin (
cvs.dllorcvs.so) andvehskin.asi, and copy the newcvs.inc. The manifest format and connection flow changed, so a new server with an old client (or the other way around) is not supported. -
Gamemode change required.
CVS_AddModelis unchanged, but without these calls the client never starts downloading:public OnPlayerConnect(playerid) { if (IsPlayerNPC(playerid)) return 1; CVS_StartPlayerDownload(playerid); // at the very top, before login return 1; } public OnPlayerDisconnect(playerid, reason) { CVS_ClearPlayerDownload(playerid); return 1; } forward OnPlayerCVSDownloadFinish(playerid); public OnPlayerCVSDownloadFinish(playerid) { // start your account check / login dialog here return 1; }
-
The server-side progress dialog is gone.
cvs.incno longer callsCVS_GetDownloadDialog, because the overlay replaces it. -
File names (
.dff,.txd,.ifp) must be unique across all models. -
If you build from source,
build.shno longer exists. Use./build-windows.shon Windows or./build-linux.shon Linux (needs Zig). The client