Skip to content

A collection of utility Lua scripts usable in conjunction with MTA San Andreas, improving the use of asynchronous and object-oriented scripting

License

Notifications You must be signed in to change notification settings

sbx320/lua_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua_utils

A collection of utility Lua scripts usable in conjunction with MTA San Andreas.

classlib.lua

This script helps out on the usage of classes and OOP in Lua. Additionally it allows an easily accessable per-element storage for MTA's elements similar to the following.

local player = getPlayerFromName("sbx320");
player.someVariableIWantToStore = "Hello World!";

Documentation for classlib.lua can be found here: https://github.com/sbx320/lua_utils/wiki/classlib

async.lua

Async.lua is a wrapper around coroutines which allows coroutines to be paused and resumed a lot easier. In conjunction with MTA's dbQuery and dbPoll functions asyncronous SQL queries get very easy to handle.

About

A collection of utility Lua scripts usable in conjunction with MTA San Andreas, improving the use of asynchronous and object-oriented scripting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages