Kalu
2
Hi ! you must register an event client side with RegisterNuiCallbackType() and define a name for trigger (with $.post) this event with your UI. (Sorry for my english)
Client side
RegisterNuiCallbackType("myEvent");
on("__cfx_nui:closeUi", (data, cb) => {
})
UI Side (your app.js in HTML folder)
$.post('http://scriptName/myEvent'); // JQUERY REQUIRED
5 Likes