Jump to content

Can i save a script to my computer, from admin panel?


Turbe$Z

Recommended Posts

If you want to download scripts from admin panel to your computer, then yeah, I think it is possible. Under resources tab you can execute functions (Where it says "For advanced users only" or something like that).

You can use runcode resource too.

You'd need to add an event handler to client side and then write the data into a file using file functions when data is sent. On the server side, open a file using file functions and read it, then send the data to event handler that you added in client side.

From computer to server, it's just reversed.

Used functions:

fileOpen -- Open a file on the server
fileCreate -- Create a file client side
fileWrite -- Write to client side (it will be in your mods folder)
fileRead -- Read the file
fileGetSize -- Used for second argument in fileRead
fileClose -- Remember to close your file
fileFlush -- Not needed really
triggerClientEvent -- Send data (You can use triggerLatentEvent if the file is too big)
addEventHandler
addEvent

Now go download some scripts from some server and call yourself a hacker :)

Link to comment
On 2016. 10. 27. at 1:10 PM, GTX said:

If you want to download scripts from admin panel to your computer, then yeah, I think it is possible. Under resources tab you can execute functions (Where it says "For advanced users only" or something like that).

You can use runcode resource too.

You'd need to add an event handler to client side and then write the data into a file using file functions when data is sent. On the server side, open a file using file functions and read it, then send the data to event handler that you added in client side.

From computer to server, it's just reversed.

Used functions:


fileOpen -- Open a file on the server
fileCreate -- Create a file client side
fileWrite -- Write to client side (it will be in your mods folder)
fileRead -- Read the file
fileGetSize -- Used for second argument in fileRead
fileClose -- Remember to close your file
fileFlush -- Not needed really
triggerClientEvent -- Send data (You can use triggerLatentEvent if the file is too big)
addEventHandler
addEvent

Now go download some scripts from some server and call yourself a hacker :)

uhh it's hard :oo

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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