-
-
Notifications
You must be signed in to change notification settings - Fork 36
FAQ
NeekoGta edited this page Jun 17, 2026
·
1 revision
Use:
http://cef/<resource>/<file>Do not use cef:// for packaged resources.
Yes. Build the frontend and copy the static output into scriptfiles/cef/<resource>/.
For Vite, set:
base: "./"Usually no.
Prefer:
CEF_SetBrowserVisible(playerid, browserid, true);
CEF_SetBrowserVisible(playerid, browserid, false);Use destroy only when the browser is no longer needed.
Use:
CEF_LoadUrl(playerid, browserid, "http://cef/demo/other.html");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.
No client UI is authoritative. Validate all JS events server-side.
That depends on your gamemode policy. Use:
CEF_PlayerHasPlugin(playerid)and OnCefInitialize to decide whether to allow gameplay, show fallback behavior, or kick.
CEF Plugin — Client & Server for SA-MP / open.mp
Issues & PRs welcome.