with qtarget support will be good. but good work
Please provide the errors you got.
– Processing Event
RegisterServerEvent(‘lab-fields:process’)
AddEventHandler(‘lab-fields:process’, function(Index)
local source = source
local Lab = Config.Labs[Index]
local xPlayer = ESX.GetPlayerFromId(source)
if not xPlayer then return end
if (not Lab.jobs) or (Lab.jobs[xPlayer.job.name] and Lab.jobs[xPlayer.job.name] <= xPlayer.job.grade) then
local IsThereEnoughJob = true
if Lab.neededJobs then
IsThereEnoughJob = HaveEnough(Lab.neededJobs)
end
if IsThereEnoughJob then
local givenItem = Lab.givenItem
math.randomseed(os.time() + math.random(os.time()) + math.random())
math.random(); math.random(); math.random();
local givenAmount = math.random(math.min(Lab.givenAmount.Min, Lab.givenAmount.Max),math.max(Lab.givenAmount.Min, Lab.givenAmount.Max))
local givenLabel = Lab.givenLabel or ESX.GetItemLabel(givenItem)
local neededItem = Lab.neededItem
local neededAmount = Lab.neededAmount
local neededLabel = Lab.neededLabel or ESX.GetItemLabel(neededItem)
if xPlayer.getInventoryItem(neededItem).count >= neededAmount then
--if (xPlayer.canSwapItem and xPlayer.canSwapItem(neededItem, neededAmount, givenItem, givenAmount)) or canSwapItem(source, neededItem, neededAmount, givenItem, givenAmount) then
xPlayer.removeInventoryItem(neededItem, neededAmount)
xPlayer.addInventoryItem(givenItem, givenAmount)
showNotification(source, 'You processed: x' .. neededAmount .. ' ' .. neededLabel .. ' Into: x' .. givenAmount .. ' ' .. givenLabel ..'.')
Log(':pill: ' .. xPlayer.getName() .. ' - ' .. xPlayer.getIdentifier(), '```Processed: x' .. neededAmount .. ' ' .. neededLabel .. ' Into: x' .. givenAmount .. ' ' .. givenLabel ..'.```')
else
showNotification(source, 'You can not do this action!')
end
else
showNotification(source, 'Not enough Jobs online.')
end
else
showNotification(source, 'You cant dot this in this job you have.')
end
end)
working esx legacy (ox)
so just dont working with ox legacy? if yes will edit that
will fix when this commit get merge
qtarget support when
yup, also waiting for qtarget
why are my markers flickering?
Nice work… Keep it up!!!
Hi, I was wondering, is it possible to take 2 items as input and only one item as output?
Hey how’s it going. Great script and thanks for the release. I was working fine for me for a couple of weeks, now I am getting this error.
CrBrowserMain/ Mixed Content: The page at 'https://cfx-nui-mythic_progbar/html/index.html' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Arizonia'. This request has been blocked; the content must be served over HTTPS. (@mythic_progbar/html/index.html:4)
I have re-downloaded mythic progbar from the link you provided, but I still get the same issue. Do you have any ideas on why it’s doing this? Cheers.
hey ich habe dass problem dass ich keinen poppy aufsammeln kann ich habe es bereits in die DB eingetragen aber er hebt es nicht auf … es sind auch keine fehlermeldungen zu sehen und einmal e gedrückt verschwindet das E fürs aufsammeln
Where is the config file? I dont see any
in the shared folder, pretty sure
could u share your mythic_progbar’s css,thx a lot
Sure thing buddy
mythic_progbar.rar (67.6 KB)
Is it possible to have no neededItem?
Idk, but for me it not working
Hello. is it possible to bind the farming to an item? e.g. harvesting weed is only possible with garden shears in the inventory like the jobs. different items need for different farming