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