Laddar...

NUILight 0.1

9

I implemented a html/ css/ js rendering engine in the game, it the same as NUI from FiveM but much lighter for low end devices.
Next time I'll fix the known issues and maybe start working on an sdk.
If you are creating an html page you need to set the bg to transparent.
Btw, i couldn't record a video because my laptop started lagging while recording in 720p 20 fps, so i appreciate it if someone made a video to represent my mod : )

installation: place everything from the bin folder to the game root folder

how to use :
-open the settings.ini file and remove the old html path and use you own html path
( i added a demo html file to test and you need to allow transparancy in the page because the engine render the whole page on top of the full game window)
-ToggleVisibility change it to whatever you like and same with CaptureInput
-when you open the game, you aren't gonna see anything until you press F10 or what ever you chose to toggle the browser visibility and F3 to release the mosue and keyboard to interact with the html page.

This project is still in the beta, so there are some bugs like :
- the overlay won't hide when the pause menu is on
- the overaly won't hide when a black screen like the quitting or saving screen is visible
- Ultralight isn't fully rendering the css
So if you encountered any bugs inform me

FAQ:
Why i used Ultralight instead of the currently used Cef
-It's a light weight engine consuming around 10 to 20mb of ram without affecting the gameplay especilly on low end devices like mine and it's capable of running 60fps.

Why is it capped to 60fps
-Because this will maintain the stability of the game ( i'm using the cpu instead of the gpu to render the OSR browser, if i don't cap it we will have an enormous cpu load)

Why Ultralight doesn't render fully the css
-Tbh i didn't know about that until i tried, so i'm thinking of making a variant of the project using Cef but it will be heavy on low end devices (consuming around 100 to 200mb of ram)

Note: this still in the beta so don't attack me in the comments section, you can tag me in the official discord server @SHADOW 5Mods official server
Credits : ShadowOne
I appreciate it if someone donates to support the project Ko-fi
Show Full Description

Först uppladdad: 16 timmar sedan
Senast uppdaterad: 4 timmar sedan
Senast nedladdad: 1 timma sedan

All Versions

 0.1 (current)

9 nerladdade , 30 MB
16 timmar sedan

2 Kommentarer