From 1d6cf75c6335ab0049e155fead9af52e67ec2a62 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 22 Sep 2019 13:08:17 +0200 Subject: [PATCH] Fixed typo --- client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index a6cf415c..c2dee892 100644 --- a/client/main.lua +++ b/client/main.lua @@ -122,13 +122,13 @@ Citizen.CreateThread(function() local playerCoords, isInMarker, currentZone, letSleep = GetEntityCoords(PlayerPedId()), nil, nil, true for k,v in ipairs(Config.Shops) do - local distnace = #(playerCoords - v) + local distance = #(playerCoords - v) if distance < Config.DrawDistance then letSleep = false DrawMarker(Config.MarkerType, v, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Config.MarkerSize, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, nil, nil, false) - if distnace < 1.5 then + if distance < 1.5 then isInMarker, currentZone = true, k end end