From 2125d133e93994b5e024321d3605e4e220d7b40e Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 10 Jun 2024 21:35:00 +0200 Subject: [PATCH] for some reason it has to be added here, otherwise torch cant find the function --- SMJSONAPI/scripting/API.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SMJSONAPI/scripting/API.inc b/SMJSONAPI/scripting/API.inc index d8ffcdbf..d5e51312 100644 --- a/SMJSONAPI/scripting/API.inc +++ b/SMJSONAPI/scripting/API.inc @@ -47,3 +47,11 @@ public int API_GetMaxClients() { return MaxClients; } + +public int API_GetUserFlagBits(int client) +{ + if (!IsClientConnected(client)) + return 0; + + return GetUserFlagBits(client); +}