Skip to content

Commit

Permalink
feat(scripting/lua): redm oal natives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehbw committed Apr 23, 2024
1 parent 400dec2 commit 68309dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1484,16 +1484,18 @@ struct LuaNativeContext
#endif

#if INCLUDE_FXV2_NATIVES
#if !defined(IS_FXSERVER) && defined(GTA_FIVE)
#if defined(GTA_FIVE)
#include "Natives.h"
#elif defined(IS_RDR3)
#include "NativesRDR.h"
#elif defined(IS_FXSERVER)
#include "NativesServer.h"
#endif
#endif

LUA_SCRIPT_LINKAGE lua_CFunction Lua_GetNative(lua_State* L, const char* name)
{
#if INCLUDE_FXV2_NATIVES && (defined(GTA_FIVE) || defined(IS_FXSERVER))
#if INCLUDE_FXV2_NATIVES && !defined(GTA_NY)
auto it = natives.find(name);
return (it != natives.end()) ? it->second : nullptr;
#else
Expand Down

0 comments on commit 68309dc

Please sign in to comment.