After all my time developing FiveM. I have decided to release my first resource for free.
Below is a link to the git repo for the script.
PREVIEW:
- This doesnt mean its optimized as it is using DUI guys. Be very careful with how many DUI’s you create.
Also make sure to play around and understand how they work before you decide to load 100 cars with animated liveries. As it creates a sub process each dui - Credits to the roasting in element. Made me want to experiment my autism a little bit further.
Example Table: Credits to Sk00dat
[CAR NAME] = { active = false, dict = 'TEXTURE NAME IN YDT FILE, USE OPENIV', gif = 'https://giphy.com/embed/fu1cAil49jxpUnz0Ee', name = 'YTD FILE NAME IN STREAM DIR' }
Little warning about this as i did found out in my own project using DUI. Even if the resmon MS is low, each DUI create an subprocess that will eat CPU performance, you can see them on your task manager
Yeah after speaking with Avarian, he gave me some advice on this. So gonna clean up the resource a little bit more to be a little bit more friendly Thanks though. Love your latest release btw (drift counter)
[`CAR NAME`] = { active = false, dict = 'TEXTURE NAME IN YDT FILE, USE OPENIV', gif = 'https://giphy.com/embed/fu1cAil49jxpUnz0Ee', name = 'YTD FILE NAME IN STREAM DIR' },
do not touch active = false, this could prolly be done a diff way
why ya remove the examples on github lol examples are always nice~
tbh its pretty simple, Thiers prolly not too much to “clean up”, the reason its intensive is because, well its animated graphics correct me someone if i am wrong lol
Is it possible to make it so it only displays when you are within a certain range? Is it currently trying to render it no matter where you are on the map? Just wondering / thinking out loud, forgive me if it sounds stupid or is already the case.
local dist = #(GetEntityCoords(v) - GetEntityCoords(PlayerPedId()))
if dist <= 150 then
line 45 its there allready, might not be working or correctly~
yea looking at it they needs to rework that case after while loaded == false do never fires again
prolly need to remove and readd the texture for it to work at a distance~
Right now i’m looking into optimizing this further. If you want to run the script, try not to create, to many DUIS. As it creates a sub process for each dui that is created. Handling of these on unload/resource restart is very important
this get applied to whatever vehicles are listed in the client.lua, so ingame reg ones OR custom vehicles if you’ve loaded new ones, this is a “on its own” resource
I have a problem is that I don’t know how to make it work, could someone give an example of how to create the folder or where they are placed so I can try it, thanks.
I mean the folder that we downloaded, you have to create a resourcer for it to work???