SinAw
SinAw
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
$close -ing
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
ok i use it , thank you very much
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
ow it worked, thank you very much
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
yes
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
I actually see ["Value 1","Value 2"] I just wanted to say that this is the type of string
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
30 replies
CC#
Created by SinAw on 2/12/2024 in #help
✅ problem
this is a http request to lua function C#
c#
mta = new MTA("5.42.223.36", 22005, "user", "pass");
MTA_LuaArgs args = new MTA_LuaArgs();
var item = mta.CallFunction("discord_bot", "getInfo", args);
await command.RespondAsync(item);
c#
mta = new MTA("5.42.223.36", 22005, "user", "pass");
MTA_LuaArgs args = new MTA_LuaArgs();
var item = mta.CallFunction("discord_bot", "getInfo", args);
await command.RespondAsync(item);
Lua
local originalGetPlayerCount = getPlayerCount
function getInfo()
return getServerName() , "Player Count : "..tonumber(originalGetPlayerCount())
end
local originalGetPlayerCount = getPlayerCount
function getInfo()
return getServerName() , "Player Count : "..tonumber(originalGetPlayerCount())
end
30 replies