Skip to main content

GetBaseGameFunction

This function was added in DSL 5

Description

Get the original version of a C function registered by Rockstar.

function GetBaseGameFunction(name) --[[ ... ]] end

Parameters

  • name: string -- The name of the function to retrieve. This should be the name as it appears in the C code, not the Lua wrapper.

Return Values

  • func: function? -- The original C function if it exists, or nil if the function is not found.

Example

local originalFunction = GetBaseGameFunction('SomeCFunction')
if originalFunction then
print('Original C function found:', originalFunction)
else
print('Original C function not found.')
end