Skip to content
Neeko edited this page Jun 17, 2026 · 6 revisions

omp-cef

Client/Server CEF plugin for open.mp / SA-MP

Start here

Page Purpose
What is omp-cef? High-level overview and architecture.
Installation: Server-side Install the server component/plugin and resources.
Installation: Client-side Install the GTA client files.
Quick Start Create the first Overlay2D browser.
Natives Pawn API reference.
Callbacks Pawn callback reference.
JS API JavaScript bridge reference.
Samples Overview Demo gamemode.
Troubleshooting Common issues.

Important convention

Local CEF resources use the plugin HTTP scheme:

http://cef/<resource_name>/<file>

Example:

CEF_CreateBrowser(playerid, 1000, "http://cef/demo/index.html", false);

Do not use cef://... for packaged resources.

Repository layout

src/
  client/          # client plugin (CEF offscreen + DX9 + SA:MP hooks)
  server/
    common/        # network core, sessions, resources, protocol
    omp/           # open.mp component (bridge + lifecycle + natives)
    samp/          # SA-MP plugin (bridge + lifecycle + natives)
   shared          # shared protocol/types (packets, serialization, common utilities)
deps/              # deps (minhook, sdk, etc.)
vcpkg.json         # vcpkg manifest (if using manifest mode)
CMakeLists.txt
CMakePresets.json  # CMake presets (configure/build presets for VS/CMake)

Clone this wiki locally