Skip to content

Commit

Permalink
Fix playercoords being nil (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
FBFezz authored Jul 27, 2022
1 parent 137f9fd commit 0e45274
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ if Config.qtarget then
end

local vehicle = GetPlayersLastVehicle()
local playerCoords = GetEntityCoords(cache.ped)
return vehicle ~= 0 and #(GetEntityCoords(vehicle) - playerCoords) <= 3
end
},
Expand Down

0 comments on commit 0e45274

Please sign in to comment.