Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed player not being able to exit when disconnecting and rejoining #34

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,9 @@ CreateThread(function()
else
while true do
sleep = 500
local pos = GetEntityCoords(PlayerPedId(), true)

if isInsideEntranceZone then
if #(pos - vector3(Config.OutsideLocation.x, Config.OutsideLocation.y, Config.OutsideLocation.z)) < 1.3 then
sleep = 0
if IsControlJustReleased(0, 38) then
exports['qb-core']:KeyPressed()
Expand All @@ -554,7 +555,7 @@ CreateThread(function()
end
end

if isInsideExitZone then
if #(pos - vector3(Config.InsideLocation.x, Config.InsideLocation.y, Config.InsideLocation.z)) < 1.3 then
sleep = 0
if IsControlJustReleased(0, 38) then
exports['qb-core']:KeyPressed()
Expand All @@ -564,7 +565,7 @@ CreateThread(function()
end
end

if isInsideDutyZone then
if #(pos - vector3(Config.DutyLocation.x, Config.DutyLocation.y, Config.DutyLocation.z)) < 1.3 then
sleep = 0
if IsControlJustReleased(0, 38) then
exports['qb-core']:KeyPressed()
Expand Down
Loading