Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrachStack authored Nov 11, 2023
1 parent 3da3f89 commit 33abf04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function openwasher()

local currentLocation = nil
for _, loc in ipairs(Config.Locations) do
local dist = #(GetEntityCoords(PlayerPedId()) - vector3(loc.x, loc.y, loc.z))
local dist = #(GetEntityCoords(cache.ped - vector3(loc.x, loc.y, loc.z))
if dist < 5.0 then
currentLocation = loc
break
Expand All @@ -52,21 +52,21 @@ function openwasher()
}) then
local amounttobegivenincash = input[1] - bidentax
print(tonumber(amounttobegivenincash))
local playerCoords = GetEntityCoords(PlayerPedId())
local playerCoords = GetEntityCoords(cache.ped)
TriggerServerEvent('kezi:moneywash', amounttobegivenincash, playerCoords)
end
end

if not Config.Misc.UseprogressCircle then
local amounttobegivenincash = input[1] - bidentax
local playerCoords = GetEntityCoords(PlayerPedId())
local playerCoords = GetEntityCoords(cache.ped)
TriggerServerEvent('kezi:moneywash', input[1], playerCoords)

end
end

RegisterCommand("washmoney", function()
local pos = GetEntityCoords(PlayerPedId())
local pos = GetEntityCoords(cache.ped)
local atLocation = false

for _, loc in ipairs(Config.Locations) do
Expand Down

0 comments on commit 33abf04

Please sign in to comment.