Skip to content

Commit

Permalink
Flip to increase accuracy even more
Browse files Browse the repository at this point in the history
it ends up being tiny but whatever
  • Loading branch information
JnKTechstuff authored Jun 8, 2022
1 parent 29a2a60 commit f678d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ RegisterCommand('inventory', function()
if vehicle ~= 0 and vehicle ~= nil then
local pos = GetEntityCoords(ped)
local minimum, maximum = GetModelDimensions(GetEntityModel(vehicle))
local ratio = math.abs(maximum.y/minimum.y)
local ratio = math.abs(minimum.y/maximum.y)
local offset = minimum.y - (maximum.y + minimum.y)*ratio
local trunkpos = GetOffsetFromEntityInWorldCoords(vehicle, 0, offset, 0)
if (IsBackEngine(GetEntityModel(vehicle))) then
Expand Down

0 comments on commit f678d8c

Please sign in to comment.