2024-06-13 20:12:40 +00:00
|
|
|
import { fw } from 'rage-fw-client'
|
|
|
|
|
2024-06-15 14:41:45 +00:00
|
|
|
fw.browser.registerBrowser(mp.browsers.new('package://cef/index.html'))
|
|
|
|
|
|
|
|
fw.event.register('customClientEvent', async ([greetings]) => {
|
2024-06-13 20:12:40 +00:00
|
|
|
fw.system.log.info(greetings)
|
|
|
|
|
2024-06-15 14:41:45 +00:00
|
|
|
const data = await fw.player.triggerBrowser('customCefEvent', ['str'])
|
|
|
|
fw.system.log.info(`CEF RESPONSE: ${data}`)
|
2024-06-13 20:12:40 +00:00
|
|
|
|
|
|
|
return 'Hola from client!'
|
|
|
|
})
|