Update FiveM Chrome version #2616
Replies: 2 comments 3 replies
-
You can blur the background, you cant blur the actual game though. As that doesnt exist in the context of an NUI. It is too, possible to create a drag and drop system. Both via built in html |
Beta Was this translation helpful? Give feedback.
-
You can use some "hacky" methods to use backdrop-filters such as https://github.com/gtasnail/fivem-glsl/ or by using the pepper plugin for (obviously this has it's drawbacks such as performance issues but the const container = document.createElement('div');
container.style.cssText = 'position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); display:flex; gap:20px;'; // just div it
const leftScreen = document.createElement('object');
leftScreen.type = 'application/x-cfx-game-view';
leftScreen.style.width = Math.floor(window.innerWidth / 3)
leftScreen.style.height = Math.floor(window.innerHeight / 3)
const rightScreen = document.createElement('object');
rightScreen.type = 'application/x-cfx-game-view';
rightScreen.style.width = Math.floor(window.innerWidth / 3)
rightScreen.style.height = Math.floor(window.innerHeight / 3)
container.appendChild(leftScreen);
container.appendChild(rightScreen);
document.body.appendChild(container);
window.addEventListener('resize', () => { // reeeesizeee
const newWidth = Math.floor(window.innerWidth / 3);
const newHeight = Math.floor(window.innerHeight / 3);
leftScreen.style.width = rightScreen.style.width = `${newWidth}px`;
leftScreen.style.height = rightScreen.style.height = `${newHeight}px`;
}); |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Is it possible to improve the Chrome version on FiveM, so that the entire development community can use the native CSS properties added since?
I've only got one example of an unusable property (which is the one I mainly want to use for my server UIs), but if anyone else finds others, please feel free to add it:
Edit:
impossible to create a drag and drop system, either in css or js
Beta Was this translation helpful? Give feedback.
All reactions