my marker is flickering and i dont have citizen.wait in the script
Hello, can you show us how the code is ?
Maybe there is a SetTimeout
?
is on script esx_jb_eden_garage2
Can you show a video or describe in better details what exactly is flickering?
Hum…
This one ? [RE-RELEASE] esx_eden garage2: 3 in 1 garage
GitHub - TanguyOrtegat/esx_jb_eden_garage2
yes eden_garage2
Pretty sure it is that the wait is not a 0, so if the framerate is higher then it will flicker
From what I saw at esx_jb_eden_garage2/main.lua at 3334609cdefccf513ad8341f7d70e2252a310908 · TanguyOrtegat/esx_jb_eden_garage2 · GitHub
The markers are added to ft_libs
via exports.ft_libs:AddArea
. Search for a loop inside of ft_libs
as well?
so how do i solve?
Found it !
Change Citizen.Wait(5)
to Citizen.Wait(0)
inside of resource ft_libs
in file src/marker/markers.client.lua
Don’t forget to put a solution to the topic
I saw a post with the same problem as mine Flickering markers
as well, don’t forget to put a solution to the matter.
but doesn’t it cause lag? decrease to 0
Decreasing it to 0 will consume a bit more of the cpu, but it is what has to be done, markers have to be drawn every frames
but but will it cause lag?
You’ll not lose fps (or cause lag) with a small change like that