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
Jag
3db5ccc86d
fix(notification): Notification id now works as documentation states ( #78 )
...
* `id` was being checked for but never got set on the toast so you'd continue to get duplicate messages even if `id` was set
2022-08-26 18:37:28 +02:00
Manifest Bumper
4bd0e6936d
chore: bump manifest version to v2.10.3
2022-08-25 14:36:40 +00:00
Linden
2a1815c460
tweak(callback): error handling
...
Errors during callbacks will never respond, so we'll use a protected call
and format the error message with a normal print to keep the thread
alive.
2022-08-25 18:49:07 +10:00
Manifest Bumper
2391ffa8a7
chore: bump manifest version to v2.10.2
2022-08-23 09:31:33 +00:00
Linden
bdb88e74c5
fix(version): properly compare minor/patch semver
...
Comparing "2.7.4" to "2.10.1" would compare each number, i.e.
2 = 2,
7 < 10,
4 > 1
Instead compare the major (2 v 2), then minor.patch (7.4 v 10.1).
where doka to do my math
2022-08-23 19:29:45 +10:00
Linden
1ea4b16c8b
fix(client/interface): set openMenu to nil before triggering callbacks
...
Callbacks may open another menu, which then gets set to nil after
the callback has returned.
2022-08-23 19:12:50 +10:00
Manifest Bumper
f18071f7e1
chore: bump manifest version to v2.10.1
2022-08-22 18:52:48 +00:00
Linden
6fc1efdda1
feat(ci): version bumper
2022-08-23 04:50:52 +10:00
Linden
4578d54c5e
fix(client/interface): progressbar props not deleted
...
Somehow, calling DetachEntity before DeleteEntity results in the
entity not being deleted (when oal is enabled).
Fortunately we don't need to detach it before deleting.
2022-08-23 04:30:58 +10:00
Linden
f5c5597277
fix(version): compare semver numbers
...
Values were being compared as whole strings.
2022-08-22 20:53:55 +10:00
Luke
8defbaf78f
Revert "chore(manifest): update version"
...
This reverts commit d63ee24fdb .
2022-08-22 00:39:31 +02:00
Luke
d63ee24fdb
chore(manifest): update version
2022-08-22 00:28:24 +02:00
Linden
a0bea87dfa
fix(client/vehicleProperties): store neons as an array
...
People normally complain about the most nonsensical non-issues; yet
this one was completely left alone; or more specifically, one person
attributed the issue to ox_lib but didn't bother to report the issue or
provide a fix, instead just
complaining that "ox_lib is constantly updating".
2022-08-20 12:55:07 +10:00
Luke
6cf29ac0eb
fix(client/interface): cache alert promise
...
Same as input
2022-08-17 23:47:31 +02:00
Luke
82d052a1bb
fix(client/interface): cache input promise
...
Caching the promise into a variable allows us to set input to nil and resolve the promise after, which fixes an issue with opening 2 input dialogs back to back
2022-08-17 23:42:36 +02:00
Luke
0e7bd1a177
feat(web): onSelect function for options
2022-08-17 21:41:05 +02:00
Linden
8c8da4b119
refactor(raycast/client)!: use new native (GetWorldCoordFromScreenCoord)
...
This native got merged days after I pushed the raycast function. This will break
scripts relying on this function (doubt there's many, if any).
2022-08-18 01:58:54 +10:00
Jag
99cab6d072
feat(imports): getClosestVehicle and getNearbyVehicles ( #71 )
2022-08-16 17:34:49 +10:00
Jag
c6250b6d5a
feat(client/progress): add interrupt options ( #70 )
...
Add the ability to specify if an action can be interrupted. Options that I've thought of off the bat are ped going ragdoll or ped being handcuffed.
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com >
2022-08-16 17:22:05 +10:00
Luke
953673690c
fix(web): clear nui focus from input before resolving the promise
2022-08-15 14:50:00 +02:00