Basically Ive had this problem before and tried to using the help I had before from Mobius but it still doesn’t work I have data in the table but it doesn’t work.
QBCore.Commands.Add('pickupminer', "Pickup your nearby miner!", { }, false, function(source, _)
local Player = QBCore.Functions.GetPlayer(source)
local fn, ln = Player.PlayerData.charinfo.firstname, Player.PlayerData.charinfo.lastname
local pickupminers = MySQL.query.await('SELECT * FROM hawscryptominer WHERE creator = ?', {tostring(fn.." "..ln)})
if pickupminers ~= nil then TriggerClientEvent('okokNotify:Alert', source, "Haws Miner", "You have no miners!", 5000, 'error') end
for n, v in pairs(pickupminers) do

