mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
GetGroundHash
returns the hash of the terrain you are on. quite useful for planting scripts
This commit is contained in:
@@ -995,7 +995,7 @@ end
|
|||||||
|
|
||||||
function QBCore.Functions.GetGroundHash(entity)
|
function QBCore.Functions.GetGroundHash(entity)
|
||||||
local coords = GetEntityCoords(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,veh,7)
|
local num = StartShapeTestCapsule(coords.x,coords.y,coords.z+4,coords.x,coords.y,coords.z-2.0, 1,1,entity,7)
|
||||||
local arg1, arg2, arg3, arg4, arg5 = GetShapeTestResultEx(num)
|
local arg1, arg2, arg3, arg4, arg5 = GetShapeTestResultEx(num)
|
||||||
return arg5
|
return arg5
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user