uShifty
8039539158
feat(package/getNearbyVehicles): Implement getNearbyVehicles ( #8 )
2025-05-04 18:00:08 +02:00
Zoo
ab0dac8fde
chore(package/interface): add label to progressCircle ( #2 )
2025-05-04 17:59:02 +02:00
github-actions
ce8a1ba50b
chore: bump version to v3.30.7
2025-05-02 14:32:43 +00:00
ANTOND.
9c9cb7e4e4
refactor: use bun instead of pnpm
2025-05-02 16:21:02 +02:00
ANTOND.
ff2f4c06f9
chore: update organization name
2025-05-02 15:44:52 +02:00
Malox
b4e3bcdad7
fix(callback/js): prevent args from being wrapped in an array when resolving the promise ( #744 )
2025-04-15 14:12:51 +10:00
Tom
c397963e84
fix(package/callback): fix broken js callbacks ( #742 )
...
This commit reverts commit 87818b3710 .
2025-04-02 05:48:23 +11:00
Linden
8509867abd
refactor(callback/client): require source in response handler
2025-03-18 02:39:41 +11:00
Linden
87818b3710
fix(package/callback): format setValidCallback event name
2025-03-16 03:41:34 +11:00
sync
32d3fb05c7
fix(types): add TextAreaProps to RowInput ( #717 )
2025-03-03 08:53:07 +01:00
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
mardev
776c1f6d81
fix(package/notify): add missing sound type ( #664 )
2024-11-08 11:01:15 +01:00
Ceeb
24b2d62235
feat(client/dui): implement dui handling ( #650 )
2024-10-14 16:55:15 +11:00
Linden
cba4b85a29
fix(callback/js): match callback timeout to lua
2024-10-06 03:28:28 +11:00
Linden
e61febf7de
refactor(streaming): change error message and default timeout
2024-10-06 03:25:17 +11:00
Linden
e1c1647343
fix(package): specify side-effects and do not bundle output
2024-09-16 18:34:55 +10:00
Deathart
85031dc13b
fix(package/interface): fix menu onCheck typo ( #640 )
2024-09-09 23:59:33 +02:00
Linden
6b12831817
feat(cache): send oldValue to onCache
...
Internally handle the cache events to prevent race conditions
and resolve #618 .
Improved types.
2024-08-13 14:11:27 +10:00
Luxu
f98feab271
refactor(package/addCommand): send chat suggestions to correct source ( #627 )
2024-08-13 12:43:17 +10:00
Fraser Watt
2b9f49febd
fix(package): input dialog options param ( #622 )
2024-07-18 10:28:42 +02:00
Linden
c45aa0d893
feat(vehicleProperties): add statebag handler and server setter
2024-07-13 00:25:30 +10:00
BerkieBb
64615a671e
feat(addCommand): longString ( #597 )
2024-07-01 11:42:21 +10:00
Linden
0b13a56071
fix(package/locale): sync behaviour with Lua
2024-05-14 18:19:26 +10:00
Linden
43905bdd62
feat(interface/alert): support dialog timeout
...
closeAlertDialog will now error if a reason is passed.
Added timeout param to alertDialog.
Resolves #522 .
2024-05-08 05:23:27 +10:00
northsqrd
24cedb07ae
feat(interface/multi-select): add maxSelectedValues ( #563 )
2024-05-08 04:28:52 +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
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
RrybaN
9d08560e91
feat(notify): show duration ( #542 )
...
* feat(notify): add option to show duration
lib.notify new option
`showDuration?: boolean -- Option to show duration bar`
* fix(notify): allow icon color using hexadecimal values
* chore(notify): show duration to default and added tinycolor2 for supporting available color formats
* feat(notify): define interface for showDuration
2024-04-12 17:15:57 +02:00
Linden
0f0c7a6591
refactor(streamingRequest): internal method for request functions
...
- TS package type inference for request functions.
- Type fix for Lua's waitFor callback.
- Lua request functions cannot return nil.
2024-03-31 16:15:44 +11:00
Linden
5868649d18
fix(package/streaming): return promise from streamingRequest
2024-03-27 14:27:33 +11:00
Linden
2190cd32f4
refactor(waitFor): use GetGameTimer to timeout callbacks
...
Corrected error message output to ms.
Resolves #518 .
2024-03-18 18:48:57 +11:00
Linden
50d957c1d1
refactor(package/interface): import CSSProperties from csstype
2024-03-16 04:30:02 +11:00
Lily
71b30b928d
feat(web/select): searchable option ( #513 )
2024-03-10 14:06:11 +01:00
xSamiVS
d8578281ee
feat(web/textui) bottom center position( #507 )
2024-03-09 11:04:18 +01:00
ktx-mega
78891fb4b9
feat(web): support icon urls in radial menu ( #487 )
...
* feat(package): support icon urls in radial menu
* fix: update lua & ts types + clamp size parameters
2024-02-18 12:11:40 +01:00
Linden
3ecb419759
refactor(package): move and export VehicleProperties interface
2024-02-18 15:45:16 +11:00
Linden
82dfb8d882
fix(waitFor): type corrections
2024-02-02 13:45:01 +11:00
Linden
0e816ecfc0
fix(waitFor): allow timeout to be disabled
2024-01-20 17:29:36 +11:00
Linden
0be5fce030
fix(package/streaming): somehow valid path is invalid?
2024-01-17 19:55:35 +11:00
Linden
4bf5bb9430
feat(package): random string/int utility functions
2024-01-17 17:43:08 +11:00
Linden
c0832cbe72
feat(package): add waitFor and sleep functions
2024-01-17 17:39:16 +11:00
Linden
fd112ca03c
fix(addCommand): catch errors in command handler
...
+ additional minor changes.
Use DoesPlayerExist native.
Mark addCommand cb as async.
2024-01-17 16:42:26 +11:00
Linden
2aa21e7478
fix(package/addCommand): argument validation
...
Get the first index of raw.split for the command name.
Check if value is defined (as 0 is falsey).
Don't subscribe to 0-index propaganda (argument index+1).
2024-01-15 18:52:28 +11:00
Linden
c383e42602
fix(package/addCommand): allow typed arguments
2024-01-15 17:52:59 +11:00
ESK0
37a35996b4
feat(package): addCommand ( #482 )
2024-01-15 12:10:40 +11:00
Linden
2ad3503985
feat(package/locale): update for parity with lua
...
Support for nested locales (flattening) and getLocale function.
2024-01-14 12:34:13 +11:00
Linden
6da661bef3
fix(package/locale): types
2024-01-14 10:05:53 +11:00
Linden
e94035551c
refactor(package): set entry point to shared
2024-01-14 10:05:24 +11:00
Linden
51646698e1
fix(package/locale): initialise by default
2024-01-14 00:14:04 +11:00
Linden
c9bc66e75b
chore(package): ignore .ts from distribution
2024-01-14 00:13:42 +11:00