F4MP/tiltedcode/Code/server/Scripting/Services/ScriptService_Bindings.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

12 lines
375 B
C++

#include "GameServer.h"
namespace Script
{
void CreateScriptServiceBindings(sol::state_view aState)
{
auto scriptType =
aState.new_usertype<ScriptService>("ScriptService", sol::meta_function::construct, sol::no_constructor);
scriptType["get"] = []() -> ScriptService& { return GameServer::Get()->GetWorld().GetScriptService(); };
}
} // namespace Script