Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev' of github.com:drakeee/altv-lua-module into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
drakeee committed Aug 24, 2022
2 parents 208f60c + c71faf6 commit adebb2f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/Defs/Alt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace lua::Class
lua_globalfunction(L, "getCharStat", GetCharStat);
lua_globalfunction(L, "resetCharStat", ResetCharStat);

lua_globalfunction(L, "isSandbox", IsSandbox);
//lua_globalfunction(L, "isSandbox", IsSandbox);

lua_globalfunction(L, "isKeyDown", IsKeyDown);
lua_globalfunction(L, "isKeyToggled", IsKeyToggled);
Expand Down Expand Up @@ -179,7 +179,7 @@ namespace lua::Class

lua_globalfunction(L, "copyToClipboard", CopyToClipboard);

lua_globalfunction(L, "toggleRmlControls", ToggleRmlControl);
lua_globalfunction(L, "toggleRmlControls", ToggleRmlControls);
lua_globalfunction(L, "loadRmlFont", LoadRmlFontFace);

lua_globalfunction(L, "worldToScreen", WorldToScreen);
Expand Down Expand Up @@ -824,11 +824,11 @@ namespace lua::Class
return 1;
}

int Alt::IsSandbox(lua_State* L)
/*int Alt::IsSandbox(lua_State* L)
{
lua_pushboolean(L, Core->IsSandbox());
return 1;
}
}*/

int Alt::IsKeyDown(lua_State* L)
{
Expand Down Expand Up @@ -1682,7 +1682,7 @@ namespace lua::Class
return 0;
}

int Alt::ToggleRmlControl(lua_State* L)
int Alt::ToggleRmlControls(lua_State* L)
{
bool state;

Expand All @@ -1695,7 +1695,7 @@ namespace lua::Class
return 0;
}

Core->ToggleRmlControl(state);
Core->ToggleRmlControls(state);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Defs/Alt.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace lua::Class
static int GetCharStat(lua_State* L); //done
static int ResetCharStat(lua_State* L); //done

static int IsSandbox(lua_State* L); //done
//static int IsSandbox(lua_State* L); //done
static int IsKeyDown(lua_State* L); //done
static int IsKeyToggled(lua_State* L); //done
static int AreControlsEnabled(lua_State* L); //done
Expand Down Expand Up @@ -178,7 +178,7 @@ namespace lua::Class

static int ToggleRmlDebugger(lua_State* L);
static int LoadRmlFontFace(lua_State* L);
static int ToggleRmlControl(lua_State* L);
static int ToggleRmlControls(lua_State* L);

static int WorldToScreen(lua_State* L);
static int ScreenToWorld(lua_State* L);
Expand Down
2 changes: 1 addition & 1 deletion src/Defs/Client/DiscordManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace lua::Class
{
lua_newtable(L);

lua_pushstring(L, discord->GetUserID());
lua_pushstring(L, std::to_string(discord->GetUserID()));
lua_setfield(L, -2, "id");

lua_pushstring(L, discord->GetUsername());
Expand Down
2 changes: 1 addition & 1 deletion src/LuaScriptRuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class LuaScriptRuntime : public alt::IScriptRuntime
~LuaScriptRuntime() { };

char* _ALT_SDK_VERSION = (char*)ALT_SDK_VERSION; //disable annoying warnings in Linux build
const semver::version version{ 1, 2, 9, _ALT_SDK_VERSION, semver::branch::dev };
const semver::version version{ 1, 3, 0, _ALT_SDK_VERSION, semver::branch::dev };

#ifdef ALT_SERVER_API
alt::config::Node::Dict serverConfigDict;
Expand Down

0 comments on commit adebb2f

Please sign in to comment.