orel56000 Posted January 25, 2016 Share Posted January 25, 2016 local newFile = fileCreate("test.txt") -- attempt to create a new file if (newFile) then -- check if the creation succeeded fileWrite(newFile, "This is a test file!") -- write a text line fileClose(newFile) -- close the file once you're done with it end working on server side but doesen't working on client side and its sheared function command, why? Link to comment
KariiiM Posted January 25, 2016 Share Posted January 25, 2016 It should works in client side too, just delete the file that was already created and test it again. Link to comment
orel56000 Posted January 25, 2016 Author Share Posted January 25, 2016 It should works in client side too, just delete the file that was already created and test it again. its working on client side, but it cannot be founded on resouces i also created a function who checking if the file is exist and its say yes, but i cannot see it.. Link to comment
KariiiM Posted January 25, 2016 Share Posted January 25, 2016 Yeah, so here's the problem, I suggest you to keep it server side better Link to comment
orel56000 Posted January 25, 2016 Author Share Posted January 25, 2016 Yeah, so here's the problem, I suggest you to keep it server side better half of my code must to be in client side, how i can move only this function to server side and it will work? Link to comment
tosfera Posted January 25, 2016 Share Posted January 25, 2016 why did they put it as a shared function anyway.. adding files to someone's computer in this way is way too easy. Since when is fileCreate a shared function? As far as I can remember there were endless discussions about this since people didn't want it. Link to comment
orel56000 Posted January 25, 2016 Author Share Posted January 25, 2016 Use TriggerServerEvent you can help me with this command? i dont understand how to use it.. Link to comment
KariiiM Posted January 25, 2016 Share Posted January 25, 2016 Use TriggerServerEvent you can help me with this command? i dont understand how to use it.. Sure, post the full code 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