You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each repository will always have a bit of extra instructions that go along with it. It is up to you to follow those directions.
However, there's a general pattern that can be followed for 99% of plugins.
Copy the Repository URL
Go to any repository plugin and copy the URL from the CODE dropdown.
Navigate to the src folder of altv-crc-core
Clone the Repository
Remember, you should have the URL copied from earlier.
Type git clone and then Right-Click to paste the URL you copied earlier.
Press Enter.
Install Additional Dependencies
Remember to go back to the README of the plugin and check if any additional libraries need to be installed.
In the case of crc-db you can clearly see a library is needed.
Dependencies Explained
When you install a dependency with npm install it writes the dependency into the package.json folder. It also pulls down the necessary code to run the dependency into the node_modules folder.
Never modify node_modules.
Activating the Plugin
Open server.toml in the root of altv-crc-core and use VSCode or some text editing software
Modify the resources array and add any resources you want to load.
Done
Go run your server, and see if the resource loads.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Install Core
Make sure you have completed this step before proceeding.
Browsing Plugins
All base plugins can be found in the organization repos.
Repository Specific Instructions
Each repository will always have a bit of extra instructions that go along with it. It is up to you to follow those directions.
However, there's a general pattern that can be followed for 99% of plugins.
Copy the Repository URL
Go to any repository plugin and
copy
the URL from theCODE
dropdown.Navigate to the
src
folder ofaltv-crc-core
Clone the Repository
Remember, you should have the URL
copied
from earlier.Type
git clone
and then Right-Click to paste theURL
you copied earlier.Press Enter.
Install Additional Dependencies
Remember to go back to the
README
of the plugin and check if any additional libraries need to be installed.In the case of
crc-db
you can clearly see a library is needed.Dependencies Explained
When you install a dependency with
npm install
it writes the dependency into thepackage.json
folder. It also pulls down the necessary code to run the dependency into thenode_modules
folder.Never modify node_modules.
Activating the Plugin
Open
server.toml
in the root ofaltv-crc-core
and use VSCode or some text editing softwareModify the
resources
array and add any resources you want to load.Done
Go run your server, and see if the resource loads.
Beta Was this translation helpful? Give feedback.
All reactions