samp.directory
← Skripte und Bibliotheken

DraigNET/OpenRP-Framework

OpenRP Framework: roleplay foundations for open.mp, with UCP, ACP and server agent.

Gamemode★ 1aktualisiert vor 16 StundenBSD-3-ClausePawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

sampctl package install DraigNET/OpenRP-Framework

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Hängt von 16 Paketen ab

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

RemovedNotes
Custom models / maps / interiorsOnly stock GTA:SA models remain. Add your own in gamemodes/visuals/
Custom skins & faction skin modelsStock skins 0-311 by default; optional upload/model support is disabled (gamemodes/skins/)

Default factions

Created by database/schema.sql:

idNameType
1San Andreas Police Department (SAPD)law enforcement
2Fire 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 mapgamemodes/visuals/maps/template.pwn, then include it from visuals/maps/header.pwn
Remove default buildingsgamemodes/visuals/remove.pwn
Add custom modelsgamemodes/visuals/models.pwn (and config/modelconstants.pwn for base ids)
Add attachment itemsgamemodes/attachments/store/*.pwn
Add a factionfactions table, FACTION_TYPE_* in gamemode.pwn, police/systems/radio.pwn for radio channels, faction/squads.pwn for squads
Turn on Discord logginggamemodes/config/secrets.example.pwn

Known gaps

  • UI sprite sheets for the phone, licence cards and gym HUD ship in models/ and are registered in gamemodes/visuals/models.pwn. Players download them automatically (see artwork in config.json). Replace the .txd files to restyle those screens.
  • Map-specific coordinates are set to 0,0,0 with a TODO: set coordinates for your map comment (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.

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

DraigNET/OpenRP-Framework: SA-MP Gamemode | samp.directory