Linden
4c70dbe64d
feat(exports/entities): persistent window state (smashed/intact)
2022-01-31 23:50:12 +11:00
Linden
12d42b6881
feat(exports/entities): vehicle properties
2022-01-31 22:47:54 +11:00
Linden
6125165acc
Update README.md
2022-01-10 01:00:45 +11:00
Linden
cd1ca12c33
Merge pull request #6 from tony-stark-17/master
...
Intervals Readme update
2022-01-09 07:03:51 +11:00
Tony Stark
28d1fc1292
Update README.md
2022-01-08 20:47:52 +05:30
Tony Stark
b806ca3eee
Interval Readme
2022-01-08 20:47:25 +05:30
Linden
72575c90ee
refactor(callbacks): remove the cb argument
...
BREAKING CHANGE: Registered callbacks now return values rather than sending them as a callback.
Previously the cb needed to be called to return to the client, now it will happen once the function closes. i.e.
cb(string, string, false) -> return string, string, false
2022-01-01 20:43:06 +11:00
Linden
2084897785
refactor(callbacks): randomise event callback and fix timer logic
...
Prevent any possibility of listening for server callback or conflicting event handlers on the client.
2022-01-01 02:26:42 +11:00
Linden
b8ad392692
feat(commands): add a RegisterCommand wrapper
2021-12-30 02:25:29 +11:00
Linden
d0c5f722db
refactor(init): export cache and update intervals
...
BREAKING CHANGE: lib will store cached export functions and no longer uses the : syntax to call functions.
Allow SetInterval to return arguments to the callback function.
2021-12-27 12:19:37 +11:00
Linden
6b3af6f0d9
1.0.4 and onesync server constraint
2021-12-24 12:00:05 +11:00
Linden
1afc819f05
Merge pull request #5 from DokaDoka/patch-3
...
fix(resource/streaming): use hasLoaded properly
2021-12-24 11:58:58 +11:00
DokaDoka
b935d9b58c
fix(resource/streaming): don't use HasModelLoaded for everything
2021-12-24 11:36:16 +11:00
DokaDoka
cb0b99e147
fix(resource/streaming): print default when limit is nil
2021-12-24 09:42:14 +11:00
DokaDoka
34bd55e4a6
feat(resource/streaming): set timeout length and return requested item on success ( #4 )
...
* feat: set timeout length
* fix: adjust variable names and set default to 100 ticks
* fix: make timeout local again
2021-12-12 14:14:06 +11:00
Linden
ec1a98b83a
feat(keys): implement a DisableControlAction wrapper
2021-12-06 09:54:45 +11:00
Linden
d25cac3be4
Revert "feat(init): add custom packing for metatables"
...
This reverts commit 1ad137b8c5 .
Prefer native solutions, this is too niche.
2021-12-05 04:58:48 +11:00
Linden
31404fbfce
Revert "feat(mysql): add imports for oxmysql"
...
This reverts commit 2426a768a4 .
2021-12-04 22:19:42 +11:00
Linden
4d51879afd
refactor(init): metatables and micro-optimise
...
import now stores all imported modules and uses call and index methods to load modules.
Defining an import as before (local ServerCallbacks = import 'callbacks') works as before, or you can use ServerCallbacks = import.callbacks
You could also use a lazy loading method by never defining ServerCallbacks, i.e. import.callbacks.Register(...) will work without explicitly importing the module previously.
2021-11-28 18:04:09 +11:00
Linden
0ad0201ab2
chore: update readme
2021-11-25 01:21:22 +11:00
Linden
1ad137b8c5
feat(init): add custom packing for metatables
...
Adds lib.unpack and lib.pack functions to the global lib table.
2021-11-25 01:00:12 +11:00
Linden
9adbccd2f8
feat(init): implement interval
...
This is different from the one implemented in Ox ESX.
2021-11-25 00:56:07 +11:00
Linden
e9f64c53e6
feat(table): add recursive clone function
...
table.clone creates a soft copy of an existing table (any tables inside the table will still be references).
This sets up a basic loop to clone any tables within a table and create deep copies.
2021-11-22 08:55:43 +11:00
Linden
90c0911c55
Merge pull request #3 from DokaDoka/patch-1
...
fix(resource/streaming): use correct variable names
2021-11-18 01:15:15 +11:00
DokaDoka
a17a8c464b
fix(resource/streaming): use correct variable names
2021-11-17 19:33:48 +11:00
Linden
6c2658c302
feat(resource/streaming): timeout functions after 20 ticks
2021-11-17 03:37:59 +11:00
Linden
55a857fbf8
chore: vscode is dumb
...
all these spaces make a tab
2021-11-16 19:37:36 +11:00
Linden
ede02fb1b4
feat(resource): setup streaming exports and placeholders
...
Naturally I have not tested any of these.
2021-11-16 11:16:34 +11:00
Linden
78fdee1132
chore: update readme and license
2021-11-16 11:15:59 +11:00
Linden
52a3623e0e
feat: add lib table for exports
...
Anything assigned to the table will be exported; it's just a hacky way to provide support for Lua Language Server.
2021-11-16 11:15:34 +11:00
Linden
7c41ac5d6e
refactor(table): revert to old match function
...
Going to need some work to accurately compare some table types, but this is better for the intended purpose.
2021-11-14 03:43:06 +11:00
Linden
a4c06746c5
feat: add a version checker and bump to 1.0.1
...
Since this is being developed alongside other projects, adding a version checker is going to save some time.
2021-11-14 02:03:19 +11:00
Linden
6aede19f4e
fix(table): correctly check if table contains value for non-tables
...
Only strings were allowed through this initial check, but we want non-table values to check if v = value.
2021-11-14 01:42:36 +11:00
Linden
5a925695bc
refactor(table): change match to matches
2021-11-12 10:26:49 +11:00
Linden
901cb381b4
feat(table): add functions to the standard table lib
...
Can overwrite the default table functions with `table = import 'table'`, adding functions to check if value(s) exist or match a table.
2021-11-12 10:16:16 +11:00
Linden
a1d3dd31a3
chore: update information
2021-11-11 18:23:07 +11:00
Linden
2426a768a4
feat(mysql): add imports for oxmysql
...
Similar to the mysql-async style library included with oxmysql., but without the aliases.
2021-11-11 18:18:17 +11:00
Linden
827ce1a223
chore: readme
2021-11-11 08:18:06 +11:00
Linden
9a60f3bd1d
chore(callbacks): update annotations
2021-11-11 07:56:15 +11:00
Linden
ab4807fee0
refactor: remove modules system and fix indentation
...
Setting a "standard" module and resource structure is too limiting, so stick to import only.
2021-11-11 07:52:38 +11:00
Linden
f72665b197
Update README.md
2021-10-30 16:22:29 +11:00
Linden
7b3062f6e1
fix(callbacks): Resolve promise arguments
2021-10-30 16:18:42 +11:00
Linden
b7e623f8ec
Update README.md
2021-10-30 16:09:20 +11:00
Linden
988f9250e3
Update README.md
2021-10-30 16:01:52 +11:00
Linden
bc5c7ad209
Add files via upload
2021-10-30 15:58:25 +11:00
Linden
72c2aad38d
Initial commit
2021-10-30 15:57:18 +11:00