Skip to content

Commit 6ca4f17

Browse files
committed
Use restartResource instead of stop-start
1 parent 0c70a25 commit 6ca4f17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

amx/server/amx.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ addEventHandler('onResourceStart', g_ResRoot,
3838
local filterres = getResourceFromName('amx-fs-' .. filterscript)
3939
if filterres then
4040
if getResourceState(filterres) == 'running' then
41-
stopResource(filterres)
41+
restartResource(filterres)
42+
else
43+
startResource(filterres)
4244
end
43-
startResource(filterres)
4445
else
4546
outputDebugString('No filterscript named "' .. filterscript .. '" exists', 2)
4647
end

0 commit comments

Comments
 (0)