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 )
Question
M
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
~~
Link to comment
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now