Return nil instead of "" when there's no client

This commit is contained in:
Tixx committed 2024-09-28 21:05:04 +02:00
1 parent 623dfa17d5
commit 9a0270cb09
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ private:
sol::table Lua_TriggerGlobalEvent(const std::string& EventName, sol::variadic_args EventArgs);
sol::table Lua_TriggerLocalEvent(const std::string& EventName, sol::variadic_args EventArgs);
sol::table Lua_GetPlayerIdentifiers(int ID);
std::string Lua_GetPlayerRole(int ID);
std::variant<std::string, sol::nil_t> Lua_GetPlayerRole(int ID);
sol::table Lua_GetPlayers();
std::string Lua_GetPlayerName(int ID);
sol::table Lua_GetPlayerVehicles(int ID);