Pycckue-Bnepeg / samp-cef

Client and server plugins for SA:MP to embed CEF.
GNU General Public License v3.0
100 stars 46 forks source link

Connecting to CEF from Pawn #8

Closed VITEBSKY closed 2 years ago

VITEBSKY commented 2 years ago

Hello. Can you please explain in more detail how I can call CEF from Pawn. I know there are examples, but I don't understand a little. If you have a PWN file, can you send it to me?

VITEBSKY commented 2 years ago

Also, do you need to upload interface files directly to the site?

Pycckue-Bnepeg commented 2 years ago

Hello. Can you please explain in more detail how I can call CEF from Pawn. I know there are examples, but I don't understand a little. If you have a PWN file, can you send it to me?

You should create a browser from your game mode. Then you can access it using an event system. I guess you can find real-world examples for ragemp and fivem. This plugin has quite a similar API and idea.

Also, do you need to upload interface files directly to the site?

Yes, your files should be hosted somewhere on the net.

Xpucmoc-Bockpec commented 2 years ago

@ZOTTCE привет хочу сделать телек в тачку (навигатор) как в Вашем примере столкнулся с проблемой: машину создаю все ок работаю но когда пытаюсь подключить телек в onplayerupdate телек не постоянно черный и звук рябит

VITEBSKY commented 2 years ago

@ZOTTCE It seems like I'm doing everything right, I still can't interact with the browser. Perhaps this is the error - https://imgur.com/a/BxdmY7x?

By the way. After logging out from the server, this is the error - https://imgur.com/a/clzshDo. Does it play a role?

I also wanted to know if there will be problems with the plugin when there are 200 people on the server?

VITEBSKY commented 2 years ago

Can I host files on a local hosting site?

VITEBSKY commented 2 years ago

@zhepa Можно связаться с тобой, если ты разобрался с интерфейсами?

Rams25 commented 2 years ago

Can I host files on a local hosting site?

No u can't, but u can host files from github repo and drop html view