Skip to main content

Installation

Installing & dependencies.

Dependencies

  • Mysql database
  • NodeJS (for installing the dependency files with npm)

Install

  1. Unzip the rar file and copy the folder in your server resources folder.
  2. Go into the source-files folder then open up a terminal inside the folder, and type npm install
  3. If you installed the neccessary dependencies you can open the source-files folder with Vscode and edit the neccessary things.
warning

If you have not compiled your code the resource will not start!

Paths

Config (typescript): source-files/src/shared/editable-config.ts

Server & Client translations: source-files/src/shared/translations.ts

nui/cef translations: html/js/translations.js

Compiling

There is a folder called dev inside the base folder.
You have three .bat files.

installdeps.bat You only need to run it once, to install the required dependencies, this will create a folder named node_modules

compile.bat You have to run this, if you want to build the typescript files.

developer.bat This is for developing the script, it will automatically rebuild the typescript files if you make a change in any of the .ts files.

Setting up the config (banking functions)

exports('avcrypto_getBank', function(source)
return 66666
end)
exports('avcrypto_setBank', function(source, amount)
print(string.format('%s setBank function is missing.', amount))
end)
exports('avcrypto_notification', function(source, message)
print(message)
end)