From a3e3622e3b33c82d7088da0877091bdfd26a4e24 Mon Sep 17 00:00:00 2001 From: gononono64 <96976330+gononono64@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:54:26 -0600 Subject: [PATCH] fixed return on actions --- lib/shared/actions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/shared/actions.lua b/lib/shared/actions.lua index 8ee1308..1725820 100644 --- a/lib/shared/actions.lua +++ b/lib/shared/actions.lua @@ -16,7 +16,7 @@ function Action.Fire(id, players, ...) TriggerClientEvent(GetCurrentResourceName() .. "client:Action", tonumber(players or -1), id, ...) end -if IsDuplicityVersion() then return end +if IsDuplicityVersion() then return Actions end ::client:: function Action.Create(id, action) @@ -43,5 +43,7 @@ RegisterNetEvent(GetCurrentResourceName() .. "client:Action", function(id, ...) action(...) end) +exports("Action", Action) +return Action