Jump to content

Accessing client files by the server


szampan

Recommended Posts

Posted

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()

eBDmGkh.png

Any solutions how can i make this file editable or some alternative?

Posted
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

  • Moderators
Posted
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!

  • Like 1
  • IIYAMA locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...