Commit Graph

313 Commits

Author SHA1 Message Date
Luke
4a2866613e feat(client/skillcheck): skillcheck array chaining 2022-10-18 20:03:00 +02:00
Luke
e4b3e0186d feat(client/skillcheck): winning/losing promise resolving 2022-10-18 20:03:00 +02:00
Linden
ec18bbf34a fix(locale): setLocale 2022-10-19 04:14:36 +11:00
Linden
671be5e7a2 refactor(locale): simplify
BREAKING CHANGE (kind of)
Remove user-selection for locales. Adds mostly unnecessary complexity,
and most people don't want to bother with it anyway.

Locale is always based on the convar "ox:locale" instead.
2022-10-18 21:17:26 +11:00
Dominic
4f71595122 refactor(keybinds): rename module, tweaks (#127) 2022-10-15 10:08:20 +11:00
BerkieBb
115bf702c9 feat(client/textui): open state getter for textUI (#126)
* feat(package/interface/textui): text ui open getter

* feat(resource/interface/textui): text ui open getter
2022-10-14 17:17:57 +02:00
Sam Shanks
2813bb288b feat(interface/context): context menu onBack function (#122)
* feat(interface/context): back button pressed

* fix(context): types
2022-10-11 13:48:59 +02:00
BerkieBb
738296adfb tweak(resource/interface/menu): add cb field 2022-10-08 01:57:51 +02:00
Linden
0e9ad23fb3 fix: types 2022-10-02 20:19:35 +11:00
DokaDoka
4da4756f7a fix(resource/zoneCreator): floating point error mitigation 2022-10-02 11:43:10 +10:00
DokaDoka
a84f2586cb fix(client/zoneCreator): rotation output 2022-10-01 15:24:51 +10:00
BerkieBb
6584105e9c fix(resource/interface/client/menu): add close missing field to MenuOptions (#112)
* feat(resource/interface/client/menu): add missing field to MenuOptions

* feat(package/interface/menu) close argument
2022-09-30 09:57:02 +02:00
Luke
6a8eb35a0a feat(client/interface): close functions for input and alert dialogs 2022-09-29 11:39:30 +02:00
Linden
e624aa2559 fix(version): split and compare semver in 3 parts
'11.10' is equal to '11.1' cause maths.
2022-09-29 17:14:11 +10:00
BerkieBb
615a3cc073 feat(interface/menu): onClose keyPressed 2022-09-25 14:26:04 +02:00
DokaDoka
52728feb95 fix(interface/menu): getOpenMenu() returns id rather than entire menu 2022-09-25 11:10:19 +10:00
Linden
5c028759f3 fix(client/vehicleProperties): livery getter 2022-09-22 15:05:23 +10:00
DokaDoka
6fdc1973e4 fix(client/zoneCreator): box zone length and width 2022-09-20 23:31:35 +10:00
Linden
0e1dfc78ba refactor(resource/vehicleProperties): type fixes 2022-09-18 11:33:17 +10:00
Linden
d08101c545 refactor(resource/vehicleProperties): typings and formatting 2022-09-18 11:25:07 +10:00
Linden
6254ba9ba2 refactor(resource/interface): formatting and type definitions 2022-09-18 09:06:32 +10: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
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
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
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
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
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
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
Luke
d494b70506 feat(interface/menu): improve error handling for invalid option override 2022-08-30 21:26:23 +02: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
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
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
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