Proxy Documentation
The vRP Proxy Guide!
Introduction
The main purpose of this guide is to teach you how to use the vRP outside of other resources.
You should learn by the end of this guide:
How to use the Proxy/Tunnel System
How to make your own Proxy/Tunnel functions
This is for the server sided proxy, not the client!
How to Begin
Now if you just want to use the server proxy system & tunnel which will allow you to access the vRPClient and vRP functions like:
vRP.addUserGroup(user_id,group)
Then it's pretty simple and you can just add the utils to the fxManifest.
So what'd we want to do is reference the utils.lua in the lib folder inside the main vRP resource and to do this we can add this line into our server_scripts:
Adding this line will allow us to use the module function which will allow us to load the Tunnel and Proxy server versions.
Now, that we have access to the module system provided by utils we can reference it in our server scripts like this: (Note this server script must be loaded after the utils are!)
Now that we have that setup in a server file! Here's some must know!
You must wrap the functions in brackets when using them outside of the main vRP resources example:
Or, let's say we were doing prompt!
So, as you can see it's all wrapped in brackets! Which is required so the Proxy and Tunnel can unpack the table.
Let's set a main example
Now, after all that waffle let's setup a good example!
Here is how our file structuring should go:
This all above is an example on how to use the Tunnel & Proxy Server Sided. Soon another guide will come on how to make your own functions for both Client & Proxy and Use them.
Last updated