mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:01:24 +00:00
Update functions.lua
This commit is contained in:
@@ -996,6 +996,6 @@ end
|
||||
function QBCore.Functions.GetGroundHash(entity)
|
||||
local coords = GetEntityCoords(entity)
|
||||
local num = StartShapeTestCapsule(coords.x,coords.y,coords.z+4,coords.x,coords.y,coords.z-2.0, 1,1,entity,7)
|
||||
local retval --[[ integer ]], hit --[[ boolean ]], endCoords --[[ vector3 ]], surfaceNormal --[[ vector3 ]], materialHash --[[ Hash ]], entityHit --[[ Entity ]] = GetShapeTestResultEx(num)
|
||||
return materialHash, entityHit, surfaceNormal, endCoords, hit, retval
|
||||
local retval , success , endCoords, surfaceNormal, materialHash , entityHit = GetShapeTestResultEx(num)
|
||||
return materialHash, entityHit, surfaceNormal, endCoords, success, retval
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user