Core object filtering + exported functions/data

Maintains backwards compatibility and allows users to only get what they need from the core instead of importing it all
This commit is contained in:
Kakarot
2025-01-25 00:36:31 -06:00
parent 47cf3ac56f
commit 9adb33b970
5 changed files with 130 additions and 43 deletions
+9
View File
@@ -1094,3 +1094,12 @@ function QBCore.Functions.GetGroundHash(entity)
local retval, success, endCoords, surfaceNormal, materialHash, entityHit = GetShapeTestResultEx(num)
return materialHash, entityHit, surfaceNormal, endCoords, success, retval
end
for functionName, func in pairs(QBCore.Functions) do
if type(func) == 'function' then
exports(functionName, func)
end
end
-- Access a specific function directly:
-- exports['qb-core']:Notify('Hello Player!')