MrWilson Posted February 20, 2020 Share Posted February 20, 2020 Hey all, Been struggling to for awhile on this. I'm building an ingame CEF browser that shows stats of a vehicle that are stored in a database table called "configvehicle". On the browser you can select the name of the vehicle on the left and the data will show on the right. How can you call data into a CEF browser? It doesnt seem to like <?php ?> at all. I want to output the data in html format $output ' '; Link to comment Share on other sites More sharing options...
$kylar Posted February 20, 2020 Share Posted February 20, 2020 (edited) Use javascript and trigger a ExecuteJS from the clientside to interact with the CEF. Fetch the database values from the server-side and then pass those arguments in the CEF by (again) ExecuteJS Edited February 20, 2020 by $kylar 1 Link to comment Share on other sites More sharing options...
MrWilson Posted February 20, 2020 Author Share Posted February 20, 2020 10 minutes ago, $kylar said: Use javascript and trigger a ExecuteJS from the clientside to interact with the CEF. Fetch the database values from the client-side and then pass those arguments in the CEF by (again) ExecuteJS Much love dude thanks. I'll give that ago! Link to comment Share on other sites More sharing options...
$kylar Posted February 24, 2020 Share Posted February 24, 2020 On 2/20/2020 at 10:41 PM, MrWilson said: Much love dude thanks. I'll give that ago! A couple of the Rage community members are making a free source organization for easy to interpret the API. Here's an example to use ExecuteJS() https://github.com/RageMpOpenSource/Basic-Login/blob/ca392fd722b4bb5de962fdaacab88976910ba213/client_packages/cs_packages/PopUpNotification/PopUpNotification.cs#L21 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now