when i added mining job showing some error in qb-target file and also after running scripts i can’t show the job by using targeteye this is showing error in qb-target
You cannot write inline conditions in lua with ?.
Simple example in lua:
x = true and "Oh its true" or "Its not true"
Or in your example:
r = zone.targetoptions.drawColor and [1] or Config.DrawColor[1]
Yes you can (kinda).
You just have to enable lua54 in your fxmanifest.lua
...
lua54 'yes' -- basically any value works
...
With this there are all lua 5.4 features + some power features from the custom fivem lua runtime like null checks (?) and even more.
1 Like
Good to know didn’t know that through lua54 something like this is possible after all. Thank you @DerDevHD ![]()
