HI
It seems that I have a problem to server
Because there is a script shop when entering the server Broken
And must be restart to work
Will help me to find a way to restart automatically when you enter the player
~~
function restartAllResources()
local allResources = getResources()
for index, shop in ipairs(allResources) do
-- if it's running,
if getResourceState(shop) == "running" then
restartResource(shop)
end
end
end
addEventHandler("onPlayerJoin", getRootElement(), restartAllResources )
<meta>
<info author="mta" type="script" version="1.0" />
<script src="restartshop.lua"/>
</meta>