mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 16:36:49 +00:00
Removed debug printing
This commit is contained in:
@@ -324,7 +324,6 @@ int lua_GetAllPlayers(lua_State* L) {
|
|||||||
int lua_GetCars(lua_State* L) {
|
int lua_GetCars(lua_State* L) {
|
||||||
int Args = lua_gettop(L);
|
int Args = lua_gettop(L);
|
||||||
if (Args > 0 && lua_isnumber(L, 1)) {
|
if (Args > 0 && lua_isnumber(L, 1)) {
|
||||||
info("GetCars Called!");
|
|
||||||
int ID = int(lua_tonumber(L, 1));
|
int ID = int(lua_tonumber(L, 1));
|
||||||
auto MaybeClient = GetClient(Engine().Server(), ID);
|
auto MaybeClient = GetClient(Engine().Server(), ID);
|
||||||
if (MaybeClient && !MaybeClient.value().expired()) {
|
if (MaybeClient && !MaybeClient.value().expired()) {
|
||||||
@@ -342,14 +341,12 @@ int lua_GetCars(lua_State* L) {
|
|||||||
lua_pushstring(L, v.Data().substr(3).c_str());
|
lua_pushstring(L, v.Data().substr(3).c_str());
|
||||||
lua_settable(L, -3);
|
lua_settable(L, -3);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
SendError(Engine(), L, ("GetPlayerVehicles not enough arguments"));
|
SendError(Engine(), L, ("GetPlayerVehicles not enough arguments"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
info("GetCars returned 1!");
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
int lua_dropPlayer(lua_State* L) {
|
int lua_dropPlayer(lua_State* L) {
|
||||||
|
|||||||
Reference in New Issue
Block a user