Linden
026d3de4ef
refactor(array): typing issue
...
Assigning a variable to a class seems to break private/protected
access with LLS. Revert this in the future if fixed.
2024-07-26 15:21:09 +10:00
Malox
6ffc5afd0f
refactor(addCommand): send chat suggestions to correct source ( #614 )
2024-07-12 23:51:32 +10:00
mindiw01
7ecd7dc21f
fix(addCommand): longString - empty message ( #611 )
2024-07-05 17:12:40 +10:00
Solareon
e12a7fd273
fix(client/requestModel): model validation and streaming request ( #610 )
2024-07-01 21:18:51 +10:00
Linden
d51a1167fd
fix(client/requestModel): use IsModelInnCdimage to validate model
...
Resolves #596 .
If it breaks something, maybe try using both.
2024-07-01 12:21:26 +10:00
Linden
6368c2c6fd
fix(client/zones): remove thread when setting initial debug state
...
Resolves #605 .
2024-07-01 12:16:31 +10:00
BerkieBb
64615a671e
feat(addCommand): longString ( #597 )
2024-07-01 11:42:21 +10:00
Doug Cone
cdf840fc68
refactor(print): encode functions in tables ( #592 )
2024-06-26 16:17:25 +10:00
Jag
f255d99215
feat(math): add math.round function ( #603 )
2024-06-26 16:06:31 +10:00
Linden
54b7701c36
refactor(class): disable experimental warning for internal modules
...
This warning is only important for 3rd party users.
2024-06-01 21:45:17 +10:00
Austin Dunn
09ba32342c
fix(timer): accessing private variable out of scope ( #591 )
2024-06-01 21:45:10 +10:00
Linden
c59b675efa
Revert "fix(imports/logger): loki indexing for varargs ( #583 )"
...
This reverts commit 7e67b57e2d .
2024-05-30 22:54:50 +10:00
Linden
2909cb5db6
refactor(callback): warn if callback function is nil/false
...
Between the headache of people misusing callbacks
and people complaining about third-party resources
that misused them, I would rather just shut them up.
I'll just deprecate this crap at some point anyway.
2024-05-23 09:41:24 +10:00
Linden
f0009f0bc8
refactor(callback): assertions
...
Both client and server callbacks will check if "cb" is a function, to
reduce the number of people using callbacks as a replacement for
events.
Server->client callbacks will now check if the target playerId exists,
as people apparently use it for unintended values (i.e. -1).
2024-05-22 16:36:22 +10:00
Linden
a40be54a9e
refactor(callback): increase default timeout
2024-05-21 05:50:06 +10:00
synth444
080a9c2442
feat(table/merge): add option to replace duplicate number keys ( #581 )
2024-05-21 05:48:32 +10:00
Mirco T
7e67b57e2d
fix(imports/logger): loki indexing for varargs ( #583 )
2024-05-21 05:47:47 +10:00
ANTOND
c4ad7da3d2
chore(types): optional param in getClosestPlayer ( #577 )
2024-05-19 15:39:19 +10:00
Linden
c2efb22e38
refactor(class): mark mixins.new as protected
2024-05-19 15:33:16 +10:00
Linden
9a2a911b2a
fix(streamingRequest): remove @package annotation
...
Annoying warnings.
2024-05-19 14:37:31 +10:00
Linden
8b0359071b
fix(math): torgba types and alpha value
2024-05-14 19:21:47 +10:00
Linden
0b13a56071
fix(package/locale): sync behaviour with Lua
2024-05-14 18:19:26 +10:00
Linden
ae005e73eb
fix(math): math.interp return type should be T
2024-05-08 05:47:40 +10:00
Linden
858a94e7ec
feat(math): expose interpolate function as math.interp
2024-05-08 05:46:57 +10:00
Linden
b1cb2142f0
feat(raycast): add fromCoords method
2024-05-08 05:00:33 +10:00
Mas
a3952a0d3b
refactor(raycast): smoother raycast during camera movement ( #569 )
2024-05-08 04:27:00 +10:00
Austin Dunn
851df5bead
feat(math): linear interpolation ( #570 )
...
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com >
2024-05-04 23:46:02 +10:00
Linden
2166b076da
feat(callback): add timeout to callback events
...
Should help when people await broken or unregistered events.
Defaults to 60 seconds, adjusted with convar ox:callbackTimeout.
2024-05-03 15:49:33 +10:00
Jarosław
d102f2a165
fix(array): array:findIndex should return index ( #565 )
2024-05-02 16:07:25 +10:00
404
fcf198b21f
fix(timer): add async argument to restart method ( #567 )
2024-05-02 16:06:12 +10:00
deFuzz
75f4ecbbea
fix(class): fixed private access in method calls ( #553 )
...
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com >
2024-04-28 12:08:15 +10:00
Linden
3959f76aae
refactor(timer): adjust module return and types
2024-04-20 06:55:56 +10:00
Linden
b6632ad789
refactor(locale): merge locales with english definitions
...
Also sync some recent changes in the TS module.
2024-04-20 06:42:28 +10:00
Linden
18f8e89cb4
feat(array): isArray method
2024-04-19 03:09:39 +10:00
Linden
dcdfe6e442
fix(class): private access in method calls
...
Maybe there's better ways, but if it works..?
2024-04-18 23:19:09 +10:00
Austin Dunn
75b7c2a724
feat(imports): timer module ( #539 )
2024-04-18 14:54:09 +10:00
Linden
56267448ce
feat(imports/client): playAnim
2024-04-18 02:13:22 +10:00
Linden
fb5bd87dc2
refactor(streaming): bump default timeout
...
There's no point trying to argue with people who rely on
faulty behaviour and race conditions.
2024-04-18 01:28:11 +10:00
Linden
97365df94f
refactor(streamingRequest): mention unreleased assets
...
Since 90% of FiveM developers do not release unused assets,
many people are starting to complain when streaming fails.
2024-04-16 14:25:50 +10:00
Linden
b2008ed804
feat(array): reduce method
2024-04-16 14:15:25 +10:00
Linden
6de82c3d6e
feat(array): array class
2024-04-13 11:15:30 +10:00
Linden
774da8f755
fix(class): use rawset during instantiation
...
If classes use a __newindex method it may lead to unexpected behaviour.
2024-04-13 11:15:30 +10:00
ANTOND
761b52a03b
fix(requestScaleformMovie): use scaleform handle ( #543 )
2024-04-11 11:22:41 +10:00
Linden
fffdcd9999
fix(require/loadJson): correct path for json files
2024-04-09 20:02:35 +10:00
Christopher
eb31c4d83c
feat(imports/logger): add fivemanage as logging option ( #536 )
2024-04-07 00:43:38 +11:00
Linden
e476736761
feat(server): triggerClientEvent with multi-target support
...
Since that once fivem PR is forever pending review.
2024-04-06 20:00:33 +11:00
Linden
1dd9bd3e86
chore: add gitignore to forcibly keep cache directories
...
Since people (or terrible GSPs) keep blocking any directory
named cache no matter where it exists by default.
2024-04-06 16:58:59 +11:00
Linden
1ff845a451
refactor(require): cleanup and improve debug info
2024-04-06 15:59:26 +11:00
Linden
56b99a7657
refactor(require): improve module resolution and debugging info
...
- Improved error messages.
- Include checked file paths on failed module resolution.
- Moved repeated code into separate functions.
- Workaround for incorrect "circular-dependency" error.
- Added additional package.path "./?/init.lua".
- Added support for package.searchers.
2024-04-05 21:53:48 +11:00
Linden
1922c8a8ec
refactor(requestAudioBank): return string
2024-04-03 14:55:10 +11:00