Skip to content

Commit

Permalink
Merge RedM oal natives (pr-2481)
Browse files Browse the repository at this point in the history
- 68309dc feat(scripting/lua): redm oal natives
  • Loading branch information
prikolium-cfx committed May 28, 2024
2 parents 603f8ca + 68309dc commit 2c286dc
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 2c286dc

Please sign in to comment.