Files
armatak/addons/client/functions/fnc_socketRouter.sqf
2025-05-15 23:56:52 -03:00

12 lines
327 B
Plaintext

#include "..\script_component.hpp"
if (!hasInterface) exitWith {};
_local_address = "armatak" callExtension ["local_ip", []] select 0;
SETVAR(player,GVAR(localAddress),_local_address);
[{
"armatak" callExtension ["websocket:location", [player call FUNC(extractClientPosition)]];
}, 1, []] call CBA_fnc_addPerFrameHandler;