Is your feature request related to a problem? Please describe.
To get data from the server, you need to trigger an event from the client and bind a function to handle the incoming data. Once the data is received, you can store it and proceed with the desired actions.
Describe the solution you'd like
I would like to make a client function that takes one argument for the data identifier (data name, ...) and another one that is server side, that sends a response / handles that signal. finally send that data to the client
The MTA Client will request the server for a data, then the server will respond it with MTA:SA 1.6
Describe alternatives you've considered
No response
Additional context
I was developing an anticheat system and realized that storing some data on the client isn't safe. Therefore, requesting it from the server is a better idea, though it makes handling the server response a bit more complex (involving coroutines, yielding, resuming, etc.).
This idea came to me as a solution to this issue.
Security Policy
[x] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
Is your feature request related to a problem? Please describe.
To get data from the server, you need to trigger an event from the client and bind a function to handle the incoming data. Once the data is received, you can store it and proceed with the desired actions.
Describe the solution you'd like
I would like to make a client function that takes one argument for the data identifier (data name, ...) and another one that is server side, that sends a response / handles that signal. finally send that data to the client
For example (lua script):
The MTA Client will request the server for a data, then the server will respond it with
MTA:SA 1.6
Describe alternatives you've considered
No response
Additional context
I was developing an anticheat system and realized that storing some data on the client isn't safe. Therefore, requesting it from the server is a better idea, though it makes handling the server response a bit more complex (involving coroutines, yielding, resuming, etc.).
This idea came to me as a solution to this issue.
Security Policy