szampan Posted July 5 Share Posted July 5 I need to create a file called `ecsk.ac` that will be created by the client, but accessed from both the client and server. Creating the file in meta.xml and putting it into the resource works ofc but fileOpen dosent like that and i doubt fileWrite would like it any better. -- client code function setupEncodedClientSignatureKey() local ecsk = fileOpen("ecsk.ac") if ecsk then fileWrite(fileHandle, "some_data_insterted_by_the_client") fileFlush(fileHandle) fileClose(fileHandle) end end setupEncodedClientSignatureKey() Any solutions how can i make this file editable or some alternative? Link to comment
Moderators IIYAMA Posted July 6 Moderators Share Posted July 6 23 hours ago, szampan said: Any solutions how can i make this file editable or some alternative? What is wrong with fileCreate? And transfer the file data with triggerLatentClientEvent. Link to comment
szampan Posted July 6 Author Share Posted July 6 2 hours ago, IIYAMA said: What is wrong with fileCreate? And transfer the file data with triggerLatentClientEvent. The event could be faked by the client, but im just using a variable rn instead can close actually in my scenario i would always know if the client faked it but either way i have found a new solution Link to comment
Moderators IIYAMA Posted July 6 Moderators Share Posted July 6 5 minutes ago, szampan said: The event could be faked by the client, but im just using a variable rn instead Yea true, but everything can be faked, even files. But that does not mean that you can't personalize data based on user specifications mixed with salt/private key. 6 minutes ago, szampan said: can close actually in my scenario i would always know if the client faked it but either way i have found a new solution I will lock/close your topic, good luck with your new solution! 1 Link to comment
Recommended Posts