Linden
6254ba9ba2
refactor(resource/interface): formatting and type definitions
2022-09-18 09:06:32 +10:00
Linden
cb645ae345
Merge pull request #97 from overextended/npm-package
...
Npm package
2022-09-18 08:45:59 +10:00
Linden
c9dd07a936
fix(package): checkDependency type
2022-09-18 08:12:16 +10:00
Linden
7476505ee7
refactor(package): import shared and declare cache in server/client
2022-09-18 08:11:25 +10:00
Linden
6adbf61797
Merge pull request #99 from jag3dagster/feat-menu-open-menu-select-index
...
feat(menu): Add option to open menu with specified item index selected
2022-09-18 06:51:08 +10:00
Luke
5549fd4cff
fix(package): use generics to define return type
2022-09-17 20:21:06 +02:00
Jag
47163748d5
feat(menu): Open Menu with specified item index selected
...
* Allows a user to pass in a start index to have pre-selected when a menu is opening
* Cleaned up whitespace inconsistencies in menu.lua
2022-09-17 11:03:10 -07:00
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
Linden
cd8e4bbd4d
fix(client/zones): yet another debug fix
...
Because a zone vanishing upon entry is of no use.
2022-09-17 18:21:38 +10: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
DokaDoka
d37324eeed
feat(client/zoneCreator): display modes
...
add option to display zones as a wireframe, with solid walls, axis helper or both solid walls and axis helper
2022-09-15 21:19:10 +10:00
DokaDoka
18fa0b6391
fix(client/zoneCreator): no more wild rhombus
2022-09-15 20:57:10 +10:00
DokaDoka
5efec8a114
fix(client/zoneCreator): prevent canceling from opening pause menu
2022-09-15 20:56:10 +10: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
DokaDoka
d90f218ae5
feat(client/zoneCreator): command suggestion
2022-09-15 00:21:16 +10:00
DokaDoka
c8ecc169ca
tweak(client/zoneCreator): activate controls when starting creator
2022-09-15 00:20:46 +10:00
DokaDoka
eef6e049e8
feat(resource/zoneCreator): target output format
2022-09-15 00:01:29 +10:00
DokaDoka
6fb18c740a
feat(resource/zoneCreator): change output format in dialog
2022-09-15 00:00:53 +10: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