mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
Use vector for coords
I see no reason to use a table for coords. Saves us pointless conversions like the one on client side and allows for arithmetic operations.
This commit is contained in:
@@ -360,7 +360,7 @@ if not Config.OxInventory then
|
||||
obj = object,
|
||||
label = label,
|
||||
inRange = false,
|
||||
coords = vector3(coords.x, coords.y, coords.z)
|
||||
coords = coords
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -472,7 +472,7 @@ if not Config.OxInventory then
|
||||
function ESX.CreatePickup(type, name, count, label, playerId, components, tintIndex)
|
||||
local pickupId = (Core.PickupId == 65635 and 0 or Core.PickupId + 1)
|
||||
local xPlayer = ESX.Players[playerId]
|
||||
local coords = xPlayer.getCoords()
|
||||
local coords = xPlayer.getCoords(true)
|
||||
|
||||
Core.Pickups[pickupId] = { type = type, name = name, count = count, label = label, coords = coords }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user