Commit Graph

1312 Commits

Author SHA1 Message Date
Linden
9df29d9d3a fix(init): check if ox_lib is started 2023-08-13 08:57:02 +10:00
Linden
594fa73bfd refactor(require): use error from Lua_require on failed load 2023-08-13 08:55:54 +10:00
dependabot[bot]
980177f6e9 chore(deps): bump vite from 4.1.1 to 4.1.5 in /web (#388)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.1.1 to 4.1.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.1.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.1.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 13:06:49 +02:00
dependabot[bot]
1e247f898f chore(deps): bump semver from 6.3.0 to 6.3.1 in /web (#387)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 13:06:41 +02:00
Matin
088c2e094a feat(web/skillcheck): ability to cancel skillcheck (#364)
* - (FEAT) Added feature to cancel skillcheck
- (FEAT) Added feature to check is any active skillcheck

* - Fix hiding UI

* - return actual boolean

* - Fix focus does not reset properly

* Update skillcheck wrappers
2023-08-08 12:56:06 +02:00
Jellyton
c8cca20c89 tweak(web): adjust markdown heading margins (#393)
* tweak(web): components for markdown headings

Fixed nomenclature and set as default export.

* fix(ui): temp remove MarkdownComponents file

* fix(ui): return MarkdownComponents file
2023-08-07 12:05:15 +02:00
Manifest Bumper
fcb0a566d3 chore: bump manifest version to v3.8.1 2023-08-07 10:04:03 +00:00
Linden
d268168dc7 fix(server/cron): invalid step return for indivisible values
Was reliant on some previously removed hacky-logic in scheduleTask.
Return value + max and rely on getNextTime/os.time to handle overflow.
2023-08-07 18:08:53 +10:00
Linden
8c9cdb1a13 refactor(server/cron): extra debug info 2023-08-06 17:36:40 +10:00
Linden
d12f4845f2 refactor(server/cron): reduce wait to reschedule task
Was a hacky solution to an obsolete issue.
2023-08-06 17:27:41 +10:00
Linden
becc29bcea fix(server/cron): getTimeUnit early return and +1 to minute 2023-08-06 17:14:32 +10:00
Manifest Bumper
0c35e635f1 chore: bump manifest version to v3.8.0 2023-08-02 18:46:54 +00:00
Linden
43e521e65b chore(zones): rename CZone field __type 2023-08-03 04:45:26 +10:00
Linden
1a74263949 fix(server/cron): stop all tasks with negative sleep values
Changes in 4536201 and other cron tweaks have improved the accuracy
of getNextTime. Negative values should now always be expired.
2023-08-03 00:53:39 +10:00
Linden
b014e43e14 feat(init): importing modules with resource metadata
Allow loading modules through fxmanifest (i.e. ox_lib 'locale' or ox_libs { 'locale' }).
Useful in some cases where the module needs to be loaded (lib.locale()) first.
2023-08-02 16:16:37 +10:00
Linden
b68da917be feat(init): cache.__call metamethod for caching function results
See #385.
Included formatting changes (tabs->spaces).
2023-08-02 15:17:14 +10:00
Linden
05c9d335e8 refactor(client/cache): send oldValue to cache event 2023-08-02 14:19:23 +10:00
DokaDoka
6c5c763f67 feat(resource/zoneCreator): undo last point for poly zones
closes #346
2023-08-02 13:25:12 +10:00
Kristian M
0890b39daa chore(locales): added da.json (#379) 2023-08-01 20:06:36 +10:00
Linden
45362017c6 fix(server/cron): more scheduling woes
Schedule next-day tasks.
Some logic improvements and breaking changes from 8488dec.
2023-08-01 17:39:37 +10:00
Linden
9d98b9aada chore: types
mostly types anyway.
2023-07-31 16:29:27 +10:00
Linden
f11668b95c feat(imports): lib.waitFor 2023-07-31 16:17:50 +10:00
Linden
c6742eeae9 refactor(client/vehicleProperties): driftTyres and window tweaks
+ some notes about setting props from server.
2023-07-31 16:17:50 +10:00
Linden
4babb3fd46 refactor(resource/init): dynamic module loading 2023-07-31 16:17:50 +10:00
Diogo Manuel Coelho Morais dos Santos
2161694f84 fix(resource/radial): fix RadialItem type (#381) 2023-07-31 16:13:07 +10:00
DokaDoka
f04534d879 refactor(client/zones): rename type property to __type to avoid conflicts 2023-07-30 17:50:34 +10:00
Linden
497bee836f chore: update readme 2023-07-29 07:52:49 +10:00
daZepelin
99519d3d8e feat(web/dialog): precision prop for number input (#372)
* feat(web/input): added precision prop for number input

* fix(web/input): added missing disabled prop to checkbox

* fix(web/input): correct icon for debug data

* fix(web/input): remove step prop from typings

* fix(web/debug): remove step prop
2023-07-27 11:44:08 +02:00
Manifest Bumper
95cdbd2ce2 chore: bump manifest version to v3.7.2 2023-07-27 04:29:34 +00:00
Linden
d2c5be8ea8 fix(client/zones): setDebug early return 2023-07-27 00:38:36 +10:00
Linden
89b9016586 fix(init): enable ignore_invalid for msgpack
Needed to prevent errors when packing glm polygons and such.
2023-07-26 12:47:07 +10:00
Manifest Bumper
8f0a8b3c1d chore: bump manifest version to v3.7.1 2023-07-25 04:14:41 +00:00
Linden
fe0f28921f fix(client/zones): race condition when setting debug function 2023-07-25 14:13:09 +10:00
Manifest Bumper
7c0ee46a99 chore: bump manifest version to v3.7.0 2023-07-25 03:14:32 +00:00
Linden
b06ba2d024 chore: type fixes 2023-07-25 01:59:39 +10:00
BerkieBb
8f5880aad7 feat(zones): add setDebug and debugColour (#369) 2023-07-23 19:37:29 +10:00
Linden
84b7f97a1c fix(server/logger): missing ) 2023-07-23 13:41:20 +10:00
Lukas Brūzga
f641881243 fix(client/setVehicleProperties): force clear custom colours (#375) 2023-07-23 13:14:44 +10:00
Jerry
588d26c421 fix(client/vehicleProperties): don't set modLivery if no livery exists (#374) 2023-07-23 13:14:03 +10:00
Jellyton
2fafee41a0 refactor(server/logger): remove text formatting from hostname (#361) 2023-07-23 12:59:41 +10:00
Jag
65a799071a chore: various fix-ups from docs clean-up (#363)
- Add in missing js functions
  - getCurrentRadialId
  - requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-07-21 13:54:29 +02:00
Zan
1b8e1f022a chore(locales): update hu.json (#371) 2023-07-21 13:46:40 +02:00
Luke
5b9bb531a9 fix(web/skillcheck): fail on wrong key press 2023-07-20 22:40:01 +02:00
Linden
9c90b5be5f fix(server/cron): prevent scheduling tasks for new days
From 8488de.
2023-07-17 23:35:53 +10:00
Linden
149213032b fix(server/cron): getTimeUnit corrections
Consistency between range and lists.
Use different time comparisons for minute units.
2023-07-17 22:48:33 +10:00
Linden
8488dec3d3 refactor(server/cron): allow getNextTime minute and hour "overflow"
Per the Lua manual,
"if sec is -10, it means 10 seconds before the time specified by the other fields".
i.e. { min = 61, hour = 0 } is equal to { min = 1, hour = 1 }

Should improve scheduling and help with #368.
2023-07-17 20:07:30 +10:00
Linden
9e2076f5a5 refactor(server/cron): types and formatting, simplify getMaxDaysInMonth 2023-07-17 19:57:35 +10:00
Manifest Bumper
cfcb9c1312 chore: bump manifest version to v3.6.3 2023-07-16 10:00:11 +00:00
Luke
45f155f62b perf(package): only run points loop when there's at least one point 2023-07-14 00:57:03 +02:00
Linden
6ab719654f fix(server/cron): list expression should use >=
Resolves #366.
2023-07-10 08:50:26 +10:00