Linden
95dd3b1838
feat(package): cache
2022-09-18 00:48:04 +10:00
Linden
1dbfd01f48
fix(package): getVehicleProperties param
2022-09-18 00:07:58 +10:00
Luke
87310e77e0
feat(package): add citizen typings
2022-09-17 16:06:38 +02:00
Luke
ef4595c706
fix(package): set notification types as optional
2022-09-17 14:21:28 +02:00
Luke
ea40c9c8d5
fix(package): include position in progress circle interface
2022-09-17 13:57:54 +02:00
Luke
7529e7436b
fix(package): fix incorrect typings for context menu
2022-09-16 16:06:04 +02:00
Luke
fe1820e07f
ci(release): publish new npm package version on release
2022-09-15 14:01:18 +02:00
Luke
cc80d53dfd
fix(package): include tsconfig files in server and shared
2022-09-15 13:29:21 +02:00
Luke
f573ba259c
fix(package): remember to actually save the file
2022-09-15 10:36:50 +02:00
Luke
3dcad0fc98
feat(web): version wreapper
2022-09-15 10:34:52 +02:00
Luke
f298bb6eb9
feat(package): vehicle properties wrapper
2022-09-15 10:24:04 +02:00
Luke
5054030948
feat(package): streaming wrapper
2022-09-15 00:22:25 +02:00
Luke
8cbef2580c
feat(package): locale wrapper
2022-09-15 00:10:04 +02:00
Luke
1373ff21d4
feat(package): acl wrapper
2022-09-14 23:46:00 +02:00
Luke
4f0cc4c7c5
feat(package): interface definitions
2022-09-14 13:50:32 +02:00
Linden
863ac03ca3
refactor(imports): more type fixes
2022-09-14 16:12:43 +10:00
Linden
3084265bbb
refactor(server/zoneCreator): output format and path, security fix
...
Don't allow players to trigger ox_lib:saveZone without ace permissions.
Write created_zones to root.
Use explicit vectors and set name as a string.
2022-09-14 15:19:01 +10:00
Linden
c95fd8ecf4
refactor(client/zoneCreator): create temporary thread
...
Move the on-tick thread into the startCreator function, and kill it once
creatorActive is set to false.
2022-09-14 15:15:36 +10:00
Linden
032e0e2db1
fix(client/zones): CZone.contains return type
2022-09-14 08:12:12 +10:00
Linden
62d56fa885
refactor(client/zones): add types and change indentation
2022-09-14 08:08:00 +10:00
Linden
9a17b9bac5
perf(client/points): apply optimisations used in zones
...
"SphereZones" are really just points with some extra overhead, but the module
had some overall improvements to improve performance.
Includes type definitions for sumneko.
2022-09-14 07:45:03 +10:00
Linden
32e2da2d8f
refactor(init): type-fixes and minor adjustments
2022-09-14 01:42:14 +10:00
Linden
26538b8148
refactor(imports): assign modules directly to lib namespace
...
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00
Linden
107d812dc3
refactor(client/zoneCreator): restrict command access
...
Includes fix for zone name.
2022-09-14 00:56:56 +10:00
Linden
bac9eb576d
feat(client/resource): RegisterCommand wrapper
...
All these tweaks so we can check ACL for client commands.
2022-09-14 00:54:44 +10:00
Linden
9d8584ff9e
feat(server/acl): add ox_lib:checkPlayerAce as callback
2022-09-14 00:53:50 +10:00
Linden
ed7bf536e8
feat(resource): load callbacks
...
Load lib.callback for internal use.
2022-09-14 00:52:10 +10:00
DokaDoka
0ecb968202
feat(resource): zone creator
2022-09-14 00:05:08 +10:00
Linden
0ccdf5675c
fix(client/zones): scuffed ternary
...
Since Lua "ternary" expressions run until they have a truthy value,
boxzone and polyzone will try compare distance to radius.
2022-09-11 12:27:23 +10:00
Linden
57187c8c30
perf(client/zones): reduce overhead
...
In a naive test with 10k sphere zones vs points, zones ran 0.02~0.04ms higher.
Overhead is roughly halved with these tweaks.
2022-09-11 12:06:30 +10:00
Linden
be8b740937
feat(client/points): set cache.coords
...
See last commit description.
2022-09-11 11:08:26 +10:00
Linden
77ff8e977b
feat(client/zones): set cache.coords
...
People keep asking for coords to be added to cache, but it be problematic
to spam the events system every tick with that information.
If zones is loaded, we can set cache locally without relying on events.
2022-09-11 11:06:38 +10:00
Linden
99b146d7b9
fix(client/zones): zone triggers twice when inside and debug is enabled
...
Zones would be added to the temporary array twice, so callback functions
and the zone draw would trigger twice.
2022-09-11 11:02:04 +10:00
Luke
5d4eff8cd3
fix(web/menu): fix misalignment on the list buttons in the menu
2022-09-09 13:04:31 +02:00
Tony Stark
ff7a0b6dea
fix(client/interface): fix openMenu getting defined nil ( #86 )
...
openMenu gets defined nil even when the options has passed close = false which result in error
2022-09-08 13:17:05 +02:00
Luke
b638e435ea
feat(web/input): allow defining icon for number row field
2022-09-08 12:00:41 +02:00
Luke
473a0f480d
feat(web/context): allow hiding arrow by setting it to false
2022-09-08 11:11:27 +02:00
Luke
336a16baed
feat(web): add ability to not be able to close menu
2022-09-08 10:26:35 +02:00
Luke
adf0994b3f
feat(web): ability to not be able to close the context menu
2022-09-08 10:05:44 +02:00
Manifest Bumper
105756ef4e
chore: bump manifest version to v2.10.5
2022-09-05 00:57:32 +00:00
Linden
5d71c4efdf
fix(client/zones): debug erroneously triggers zone:inside
...
Should only trigger when the player is, in fact, inside the zone.
2022-09-02 22:23:24 +10:00
Luke
d494b70506
feat(interface/menu): improve error handling for invalid option override
2022-08-30 21:26:23 +02:00
Manifest Bumper
d295a0a11b
chore: bump manifest version to v2.10.4
2022-08-29 17:00:12 +00:00
Linden
3a97a0c569
fix(client/zones): convert tables to vectors
...
Ensure tables (either array or map) set as points, coords, or size are
converted into vectors.
Includes complementary reformatting.
2022-08-30 02:58:41 +10:00
Luke
4a5251b60b
chore(web): add prettier and format
2022-08-27 15:58:36 +02:00
Luke
cc76d23419
chore(web): fix incorrect notification props spelling
2022-08-27 15:55:05 +02:00
Luke
52ce1c53ae
feat(web): support min and max value for number input type
2022-08-27 15:54:43 +02:00
Luke
0bc185ef38
feat(web): developer drawer
...
Move all debug functions into a single developer drawer,
Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
2022-08-27 15:40:41 +02:00
Luke
9bd0b52749
refactor(web): prettier format for input dialog
2022-08-26 18:50:08 +02:00
Luke
ae25d109fc
fix(web): move input dialog enter handler
...
it was causing issues where when confirming a selection in the list menu it would instantly close the input dialog
2022-08-26 18:49:49 +02:00