From 66c88b51e05f8bbea44c58684e6de9f3d07d3307 Mon Sep 17 00:00:00 2001 From: Hakos47 <76844995+hakos47@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:29:46 +0100 Subject: [PATCH] GetGroundHash returns the hash of the terrain you are on. quite useful for planting scripts --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index f235581..8f1d03c 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -995,7 +995,7 @@ 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,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) return arg5 end