Linden
b726faea2d
feat(callback): implement callback validation
...
Prevent callbacks from being overwritten by other resources.
Throw an immediate error if the callback does not exist.
2025-02-03 15:41:58 +11:00
Rafael
5c0239be06
feat(relativeCoords): add lib.getRelativeCoords function ( #685 )
2025-01-31 10:23:08 +11:00
Codexis
c1ccd767ff
feat: scaleform class ( #698 )
2025-01-31 09:57:47 +11:00
Linden
189306d5aa
fix(array): Array.from string delimiter
2025-01-29 08:02:06 +11:00
Linden
6a24f9b971
fix(array): format error message
2025-01-29 07:13:16 +11:00
hakanesnn
7076f19c9b
fix(cron): matching weekdayMap with os.date ( #700 )
2025-01-29 07:00:20 +11:00
Linden
45b045a37e
feat(array): additional methods
2025-01-29 06:54:06 +11:00
Linden
d0a0f34018
fix(timer): set initial value of triggerOnEnd to true
2025-01-28 06:47:48 +11:00
Linden
769fa35f38
fix(timer): redefine local function as method
...
The previous commit added a private property, but they
cannot be set outside of class methods. Added an error
when starting a running timer, too.
2025-01-26 05:20:23 +11:00
Linden
8af94a7194
feat(class): allow private to be redefined
...
Allows self.private to defined as a new table, allowing it to
remain empty without being removed after instantiation.
Resolves #696 .
2025-01-26 04:05:29 +11:00
Linden
0192fd015b
fix(array): indexOf return value
2025-01-21 11:33:15 +11:00
Linden
728d20c079
fix(timer): re-enable onEnd after stopping a timer
...
Resolves #667 .
2025-01-20 02:24:00 +11:00
Linden
99fb752d30
fix(callback): support __call metatables as cb function
...
Resolves #668 .
2025-01-20 02:10:09 +11:00
NotSomething0
ebddb35b00
fix(marker): logical error when setting faceCamera ( #686 )
...
Due to the way boolean values were being assigned, faceCamera would
always evaluate to true because of its default value. This change fixes
the logical error and ensures boolean properties are properly set.
2025-01-20 02:07:03 +11:00
Linden
356e560a5d
fix(client/zones): use arrays for temporary zone tables
...
Resolves #682 .
2025-01-20 02:04:21 +11:00
Judd
cb6792ed58
fix(cron): prevent duplicate executions and enhance type safety ( #690 )
2025-01-20 01:20:09 +11:00
Stan
d142d8d2ee
fix(table): respect falsey value for addDuplicateNumbers ( #672 )
2025-01-16 20:19:48 +11:00
Linden
d4bb2ab7b3
fix(table): regression in contains
...
Other changes are just whitespace.
2024-10-16 09:08:18 +11:00
Ceeb
24b2d62235
feat(client/dui): implement dui handling ( #650 )
2024-10-14 16:55:15 +11:00
Linden
e61febf7de
refactor(streaming): change error message and default timeout
2024-10-06 03:25:17 +11:00
Linden
a2a7114986
feat(array): add additional array class methods
...
- merge now supports merging multiple arrays.
- added includes, map, reverse, toReversed.
2024-10-01 18:53:05 +10:00
Guru Saran
4c460e0bd9
refactor(table): improve performance of contains, matches, and merge ( #647 )
2024-10-01 18:51:52 +10:00
Geden420
7bd22441ff
feat(client/keybinds): added isPressed state for keybinds ( #643 )
2024-09-16 17:45:46 +10:00
Linden
133a9905b2
Revert "refactor(streamingRequest): wait 10 years for assets to load"
...
This reverts commit 03db59cce5 .
This was sarcasm btw. I still hate you people.
2024-08-13 14:12:42 +10:00
Linden
03db59cce5
refactor(streamingRequest): wait 10 years for assets to load
...
Helps with issue #630 by waiting for assets to become available.
Enjoy the random side-effects this will lead to, like vehicles suddenly
loading 20 minutes after you requested the asset and then teleporting
you into them.
This is clearly the only solution.
2024-08-13 12:47:39 +10:00
Linden
e10e8af0de
refactor(class): change type returned by lib.class
...
Return a new type named after the class, rather than OxClass.
We still can't use class generics (i.e. OxClass<`T`>), so classes
still need to be declared (e.g. ---@class Person : OxClass).
Also removed the experimental warning.
2024-07-26 15:23:43 +10:00
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