From 0e00f5fa7f2b7343dbe19158e003ac4d28d425fe Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sat, 4 Jun 2022 18:34:24 -0400 Subject: [PATCH] return player pressing the button --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 522c1084..2cddd3a3 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1520,7 +1520,7 @@ end function EID:PlayersActionPressed(button, inputFunc) inputFunc = inputFunc or Input.IsActionPressed for k,_ in pairs(EID.controllerIndexes) do - if inputFunc(button, k) then return true end + if inputFunc(button, k) then return true, k end end return false end