how can i fix this i want to add lockpick before you can rob a store
client/main.lua:102: unexpected symbol near ‘,’
CreateThread(function()
while true do
Wait(0)
local playerPos, letSleep = GetEntityCoords(PlayerPedId()), true
for k,v in pairs(Stores) do
local distance = #(playerPos - v.position)
if distance < Config.Marker.DrawDistance then
if not holdingUp then
letSleep = false
DrawMarker(Config.Marker.Type, v.position, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Config.Marker.x, Config.Marker.y, Config.Marker.z, Config.Marker.r, Config.Marker.g, Config.Marker.b, Config.Marker.a, false, false, 2, false, false, false, false)
if distance < 2.0 then
ESX.ShowHelpNotification(TranslateCap('press_to_rob', v.nameOfStore))
if IsControlJustReleased(0, 38) then
if IsPedArmed(PlayerPedId(), 4) then
TriggerServerEvent('xoil_wars:robberyStarted', k)
else
ESX.ShowNotification(TranslateCap('no_threat'))
end
else
exports['mythic_notify']:DoHudText('inform', 'Do you even have a Lockpick?')
end
end, 'lockpick')
end
break
else
letSleep = true
end
end
if holdingUp then
letSleep = false
if #(playerPos - Stores[store].position) > Config.MaxDistance then
TriggerServerEvent('xoil_wars:tooFar', store)
holdingUp, letSleep = false, true
end
end
if letSleep then
Wait(500)
end
end
end)