mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-31 02:09:00 +00:00
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:
@@ -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!')
|
||||
|
||||
Reference in New Issue
Block a user