vRP is a framework, its goal is to provide a set of tools and flexibility.
It implies that you should never modify the core files of vRP, but only the files in the cfg
folder.
🔥
|
By modifiying the core files of vRP, you are not using the framework, instead you are creating a fork of vRP, which is not vRP anymore. Forks should be new maintained projects, not modifications from a single user. Doing this fragments the vRP community, so vRP extensions are not guaranteed to work with everyone, causing a lot of issues. It also wastes your time by manually updating vRP or prevents you from doing it at all. Instead, vRP should be improved to be flexible as possible to suit your needs by making a Feature request, then developers can properly extend vRP by creating extensions without modifying core files, and everyone can use it. |
A framework code should not be customized by definition, because a framework is used to build a custom experience by using the availables features. There is no point in saying “You should create your custom framework.”, unless it doesn’t fit your needs at all (most of the time filled by extensions).
Clone the repository or download the master archive and copy the vrp
directory to your resource folder. Add vrp
to the loading resource list (first after the basic FiveM resources is better).
🔥
|
The FiveM coroutines usage has issues which prevent vRP 2 to work properly (especially server-side), it may print this error Until this pull request is accepted, you can apply it yourself by replacing the |
|
Only the files in the cfg/ directory should be modified.
|
There is one required file to configure before launching the server, cfg/base.lua
, to setup the MySQL database credentials, but it also depends on the DB driver used.
There is a lot to configure in vRP, everyone can make his unique server.
Everything you need to know is in the configuration files, default stuff is here as an example.
To run vRP, you also need to install a DB driver, it is a resource/extension used to communicate with a MySQL database.
ℹ️
|
Some maintained DB drivers: https://github.com/ImagicTheCat/vRP-db-driversghmattimysql bridge is recommended.
|
DB drivers will register themselves with a specific name to use in cfg/base.lua
. Since there is no guarantee about when the driver will be registered, all queries will be cached until that moment.
ℹ️
|
[vRP] DB driver "driver_name" not initialized yet (X prepares cached, Y queries cached). is not an error, but a warning that the driver is not registered yet and will stop being outputted if the driver is loaded (a message will also say that the driver is loaded).
|
See audio module.
-
use git to clone vRP to create your own version of it, checkout the branch you want, create a branch from it
-
create a symbolic link (or an update script) to
vrp/
in your fxserver resources directory -
(repeat) configure, commit your changes, stay updated with the vRP repository, solve conflicts
This way, you will know when config files should be updated and what exactly has been updated.
-
save your
cfg/
folder somewhere -
copy all new files in
vrp/
-
compare your old
cfg/
folder with the new one, fill the gaps (one mistake will break everything, take your time) -
replace the new
cfg/
folder with the old modifiedcfg/
folder
When submitting an issue, add any information you can find, with all details. Saying that something doesn’t work is almost useless and will probably not be enough to solve the issue. If you have errors in your console BEFORE the issue happens, things could be corrupted, so the error is probably irrelevant. You should solve all unrelated errors before submitting issues.
When submitting a feature request, make sure the feature is relevant about the core of the framework or already existing vRP features. vRP is a framework, so it doesn’t aim to implement everything, but to give the tools to do so.
|
The issue section is only for bug reports and feature requests. Issues not related to the core of vRP, about old versions (no backwards update) or vRP modifications will be closed without warning. |
💡
|
Before submitting an issue or a feature request, do a search in open and closed ones to know if it has been reported/requested before. |
ℹ️
|
For questions, help, discussions around the project, please go instead on the vRP thread of the FiveM forum here: https://forum.fivem.net/t/release-vrp-framework/22894 |
See the developers documentation.