redditing Posted June 14, 2020 Share Posted June 14, 2020 I have a problem with this script will someone help me? function Resource() local res = getResourceFromName("ResourceTest", true) startResource(res) end addCommandHandler("res", Resource) Link to comment
Sisqo0 Posted June 14, 2020 Share Posted June 14, 2020 --Server function Resource(playerSource, commandName ) local res = getResourceFromName("ResourceTest") startResource(res) end addCommandHandler("res", Resource) Link to comment
Addlibs Posted June 14, 2020 Share Posted June 14, 2020 You haven't explained what the issue is, but I'm going to guess that the resource simply doesn't turn on when you type /res, and that is likely because you haven't given this resource (the one with this code snippet) ACL permission to function.startResource. Link to comment
redditing Posted June 15, 2020 Author Share Posted June 15, 2020 10 hours ago, Addlibs said: You haven't explained what the issue is, but I'm going to guess that the resource simply doesn't turn on when you type /res, and that is likely because you haven't given this resource (the one with this code snippet) ACL permission to function.startResource. Ok i understand, thx Link to comment
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