Skip to content
NeekoGta edited this page Jun 17, 2026 · 1 revision

FAQ

Should I use http://cef/ or cef://?

Use:

http://cef/<resource>/<file>

Do not use cef:// for packaged resources.

Can I use React/Vue/Svelte?

Yes. Build the frontend and copy the static output into scriptfiles/cef/<resource>/.

For Vite, set:

base: "./"

Should I create/destroy browsers every time I open UI?

Usually no.

Prefer:

CEF_SetBrowserVisible(playerid, browserid, true);
CEF_SetBrowserVisible(playerid, browserid, false);

Use destroy only when the browser is no longer needed.

How do I change the page without recreating the browser?

Use:

CEF_LoadUrl(playerid, browserid, "http://cef/demo/other.html");

Can I block all SA-MP default keys with omp-cef?

Not as a generic feature. omp-cef should focus on CEF-related input and browser behavior.

For browser-focused input, use focus/chat/key/ESC APIs. For unrelated global key blocking, use another plugin or game-specific code.

Is CEF UI secure?

No client UI is authoritative. Validate all JS events server-side.

Can players without the client plugin join?

That depends on your gamemode policy. Use:

CEF_PlayerHasPlugin(playerid)

and OnCefInitialize to decide whether to allow gameplay, show fallback behavior, or kick.

Clone this wiki locally