Skip to content

Commit

Permalink
Merge pull request #21 from jimgordon20/main
Browse files Browse the repository at this point in the history
Update server.lua
  • Loading branch information
PickleModifications authored May 31, 2024
2 parents be7cdec + eb9ee3d commit 93753d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/prison/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function TakeInventory(source)
return inventory
end

-- Define the JailPlayer function
function JailPlayer(source, time, index, noSave)
if Prisoners[source] then return end
local index = index or "default"
Expand All @@ -100,6 +101,9 @@ function JailPlayer(source, time, index, noSave)
})
end

-- Export the JailPlayer function
exports("JailPlayer", JailPlayer)

function UnjailPlayer(source, breakout)
local data = Prisoners[source]
if not data then return end
Expand Down Expand Up @@ -372,4 +376,4 @@ end

CreateThread(function()
PrisonTimer()
end)
end)

0 comments on commit 93753d6

Please sign in to comment.