DraigNET/OpenRP-Framework
OpenRP Framework: roleplay foundations for open.mp, with UCP, ACP and server agent.
Install with sampctl
sampctl package install DraigNET/OpenRP-Framework
Run this in your project folder. sampctl downloads the package and what it depends on.
Depends on 16 packages
- sampctl/samp-stdlibnot in this directory
- y-less/samp-plugin-crashdetectnot in this directory
- Y-Less/sscanf★ 145
- Sreyas-Sreelal/samp-bcrypt★ 84
- oscar-broman/strlib★ 53
- samp-incognito/samp-streamer-plugin★ 248
- Southclaws/zcmd★ 9
- oscar-broman/md-sortnot in this directory
- tommyb123/progress2not in this directory
- Coystark/MenuStore★ 13
- Southclaws/pawn-fsutil★ 7
- katursis/Pawn.Regex★ 46
- katursis/Pawn.RakNet★ 186
- pblueg/sa-mp-mysqlnot in this directory
- pawn-lang/YSI-Includes★ 226
- pawn-lang/amx_assembly★ 63
readme.md
OpenRP Framework
Full searchable documentation: OpenRP Framework documentation.
OpenRP Framework (ORP Framework for short) is an empty, ready-to-extend roleplay gamemode for open.mp, written in Pawn. It may run on SA-MP with some changes, but that is untested.
It contains the systems every serious RP server ends up needing -- accounts and characters, a full admin suite, vehicles, properties, businesses, jobs, injuries, phone, police and fire factions -- ready for your own server configuration, world content and community. You bring your own map, models and lore.
Status: blank framework with optional integrations. See SETUP.md for installation and the remaining runtime validation requirements.
New to the code? Read gamemodes/ARCHITECTURE.md first.
UCP, ACP, optional API and server-agent source: web-platform/README.md.
Windows desktop configuration and local server controls: desktop/README.md. It connects directly to the same database using a Manager account; no web host is required.
The desktop source includes comments, tests and developer guides. Build with
npm ci --include=dev then npm run build from desktop/. See its
source/architecture guide and
database adaptation guide.
What you get
- Account / character system with bcrypt passwords, MySQL persistence and a UCP-friendly schema
- Admin system (levels, duty, reports, jail, bans, spectate, noclip, logging)
- Vehicles (ownership, dealerships, fuel, impound, mods, tickets), properties, businesses/firms, furniture
- Jobs (a simple trucker delivery run, garbage, pizza, fishing, ...), economy and paychecks
- Injury / medical system, phone, radio, MDC, 911, arrests and cuffs
- Optional systems behind feature flags (
gamemodes/config/header.pwn): gangs, gang zones, Emmet gun dealers, fear & respect
What is deliberately not included
| Removed | Notes |
|---|---|
| Custom models / maps / interiors | Only stock GTA:SA models remain. Add your own in gamemodes/visuals/ |
| Custom skins & faction skin models | Stock skins 0-311 by default; optional upload/model support is disabled (gamemodes/skins/) |
Default factions
Created by database/schema.sql:
| id | Name | Type |
|---|---|---|
| 1 | San Andreas Police Department (SAPD) | law enforcement |
| 2 | Fire Department of San Andreas (FDSA) | EMS / fire |
The ids are referenced by FACTION_ID_SAPD / FACTION_ID_FDSA in gamemodes/gamemode.pwn. More factions are just
rows in the factions table (use the in-game /f(action)create admin commands).
Requirements
- open.mp server (SA-MP 0.3.7 may work but is untested and will likely need changes) -- https://www.open.mp
- MariaDB 10.5+ (clean imports tested on MariaDB 10.5)
- sampctl for dependencies and builds; install it separately on Windows or Linux
- Pawn compiler 3.10.10
Setup
Follow SETUP.md. Linux with EasyPanel is recommended; Windows and Linux standalone deployments are supported by the source. The schema ships no accounts: bootstrap your own Developer-level administrator with a unique generated password. Custom skins, voice and Discord are opt-in and disabled by default.
Live configuration
The ACP Configuration page supports Manager-level edits to service locations, fees and job rules, weather, server-browser identity, cargo capacities, catalogue prices and squads. Connected ACP entity editors cover armory types, lockers, weapons and faction uniforms. Use existing in-game tools for entity placement and lifecycle. Saves are validated, audited and applied by the running game, with status and restore history.
Import database/schema.sql into a new empty database. It includes all required
tables, defaults and journal triggers; no separate upgrade scripts are needed.
Use an import account with ALTER, TRIGGER, CREATE ROUTINE and ALTER ROUTINE privileges and deploy matching web
and gamemode code. Keep the trigger definer account available.
See RUNTIME-CONFIGURATION-PROGRESS.md for current
coverage and remaining work, and the developer checks.
Adding your own content
| I want to... | Look at |
|---|---|
| Add a map | gamemodes/visuals/maps/template.pwn, then include it from visuals/maps/header.pwn |
| Remove default buildings | gamemodes/visuals/remove.pwn |
| Add custom models | gamemodes/visuals/models.pwn (and config/modelconstants.pwn for base ids) |
| Add attachment items | gamemodes/attachments/store/*.pwn |
| Add a faction | factions table, FACTION_TYPE_* in gamemode.pwn, police/systems/radio.pwn for radio channels, faction/squads.pwn for squads |
| Turn on Discord logging | gamemodes/config/secrets.example.pwn |
Known gaps
- UI sprite sheets for the phone, licence cards and gym HUD ship in
models/and are registered ingamemodes/visuals/models.pwn. Players download them automatically (seeartworkinconfig.json). Replace the.txdfiles to restyle those screens. - Map-specific coordinates are set to 0,0,0 with a
TODO: set coordinates for your mapcomment (search the code for it): DMV, admin jail, jail cells and release point, help desks, mugshot rooms, scrapyards, chop shop, advert agency, trucker depot, default spawn, GPS entries, faction spawns. - The burglary job still loads its house layouts from
scriptfiles/burglary/*.map(stock objects). - Static data in
jobs/,hunger/vending,gym/etc. uses stock-map coordinates from the original server.
Credits
OpenRP Framework is based on the SP-RP gamemode. See CREDITS.md for everyone who contributed,
including the licence notice that must stay with the original code. Individual files carry their original
authors' headers -- please keep them.
Third-party libraries (YSI, streamer, sscanf, ...) are pulled in via pawn.json under their own licences.
See LICENSE for the retained BSD 3-Clause notice.
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing