Git Product home page Git Product logo

altv-lua-module's Introduction

altv-lua-module

Keep in mind that this module is still WIP (so it should lack some of the functions) and its in beta phase. If you find a bug or missing a function which you think it would be awesome to exists don't hesitate just open an issue for it. The structure and function names are equal to the JavaScript module. If you have questions feel free to ask on alt:V's Discord channel (#lua).

Installing

Installing the module is very simple:

  1. Download one of the release from Releases.
  2. Open the zip file.
  3. Drag & Drop the folder from the archive into your server's modules folder.
  4. Open your server's server.cfg and add the module:
modules: [ lua-module ]

Installing Lua modules

The module itself doesn't come with MySQL/SQLite3, json implemented but you can install it very easily.

  1. Download which module you need (mysql-module, sqlite3-module, json-module).
  2. Open the zip file.
  3. Drag & Drop the folder inside the archive file to your server's modules/lua-module/modules folder.
  4. Include the corresponding module in your script:
-- local sqlite = require("sqlite3")
-- local mysql = require("mysql")
-- local json = require("json")

Example

https://github.com/drakeee/altv-quickstart-lua

I would like to thank Stuyk for its Boilerplate written in JavaScript which is ported to Lua as a good example.

Wiki

https://wiki.itsdrake.com/index.php/Main_Page

(Wiki is still WIP and I will fill it up with examples if i have free time for it)

altv-lua-module's People

Contributors

avililla avatar drakeee avatar leonmrbonnie avatar stuyk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.