Commit Graph

572 Commits

Author SHA1 Message Date
Linden
ed7c04ac9c refactor(client/raycast): change los flags 2022-11-26 02:02:02 +11:00
Linden
f96cb13ff4 refactor(client/addKeybind): save control hash 2022-11-24 17:31:03 +11:00
Linden
ba635b91e7 fix(client/addKeybind): get control button when indexing currentKey
Changing the key binding for a command invalidates the previous result from
GetControlInstructionalButton. Use an index metamethod for backwards
compatibility and add the getCurrentKey method.
2022-11-24 17:16:57 +11:00
Linden
289fa0ac69 chore(.gitignore): merge files 2022-11-24 17:02:03 +11:00
Demian Vonk
b181c63ef7 chore(locales/nl): translation (#157) 2022-11-23 21:53:53 +11:00
Linden
3d90d91552 Merge pull request #160 from D4isDAVID/update-locales
feat(locales): update Russian & add Hebrew
2022-11-23 21:53:22 +11:00
David Malchin
e620df3e93 feat(locales): add hebrew 2022-11-22 08:50:11 +02:00
David Malchin
e1e7b0a553 fix(locales/ru): cancel string 2022-11-22 08:48:57 +02:00
Linden
00c2086072 refactor(streaming): convert to modules
Import methods rather than call via exports.
2022-11-21 21:39:05 +11:00
Linden
6825103dd5 fix(resource): don't export internally loaded modules
i.e. exports.ox_lib:callback is invalid
2022-11-21 21:39:05 +11:00
Linden
d2799075ad fix: types and nil-checks 2022-11-21 21:39:05 +11:00
Fores
c88c847b18 chore(locales/sv): swedish locales (#155) 2022-11-21 21:31:33 +11:00
Manifest Bumper
ed20d4b780 chore: bump manifest version to v2.16.0 2022-11-19 11:16:55 +00:00
Luke
7cde7e0581 fix(web/input): ensure select rerender between dialogs
If opening another input dialog with select in the same row it would cause the value to be the same as the previous one as there was no rerender being forced because their keys were the same
2022-11-19 12:11:02 +01:00
Luke
d5e0305df9 fix(web/input): ensure number type input is max length 2022-11-19 11:04:34 +01:00
Luke
59051d505b fix(web/skillcheck): fix not being able to hit skill check with capslock
apparently the return key for event can differentiate lower and uppercase keys
2022-11-16 23:16:17 +01:00
Linden
ce5697f3b2 feat(zones): add basic zone support to the server
Quick and dirty with many features stripped (onEnter/onExit/inside).
2022-11-16 23:07:53 +11:00
Luke
39668aa26a fix(web/menu): fix button tooltip not displaying on side scroll button 2022-11-12 13:58:34 +01:00
Linden
9b7eef2880 fix(client/zones): convert vector4 to vector3
Sometimes people send the incorrect types, and it's apparently on us (???)
to allow them to do the wrong thing and catch their mistakes for them.
2022-11-09 16:04:03 +11:00
Alphatule
c6b0c4cb39 chore(fxmanifest): support rdr3 (#152) 2022-11-09 08:26:09 +11:00
BerkieBb
504447320f feat(resource/cache): cache.weapon (#151) 2022-11-09 07:49:51 +11:00
Luke
306b7b3670 feat(web/context): disabled buttons 2022-11-06 11:01:39 +01:00
Luke
33b70b6f1c refactor(web/context): cache context option into a variable 2022-11-05 11:20:59 +01:00
Luke
bee78ccdfc chore(client/menu): remove debug code 2022-11-03 17:56:41 +01:00
Manifest Bumper
478fe7dc9d chore: bump manifest version to v2.15.1 2022-11-02 18:22:39 +00:00
Luke
765fff3598 fix(web/menu): show values description without requiring button desc 2022-10-30 10:16:28 +01:00
Manifest Bumper
847f5218f6 chore: bump manifest version to v2.15.0 2022-10-29 20:56:31 +00:00
Luke
00465d2e7a perf(web/menu): memoize button and header components
Drops the render times for a 9 button menu down from 12ms to 1.6ms
2022-10-29 16:15:58 +02:00
Luke
6b8cfa990f fix(web/menu): fix vertical icon alignment 2022-10-29 16:00:35 +02:00
Luke
5b806313d7 Merge pull request #146 from BerkieBb/master
feat(menu): checkbox
2022-10-29 15:56:34 +02:00
Luke
9cc7b9270e refactor(web/menu)!: pass scrollIndex or checked in the same value
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.

Requires `args` to always be of type `table`
2022-10-29 15:55:08 +02:00
Luke
c227282ce0 refactor(web/menu): update checkbox styling 2022-10-29 15:55:08 +02:00
BerkieBb
5ba1a3b8f9 feat(interface/menu): checkbox
feat(package/interface/menu): checkbox
feat(web/menu/list): checkbox
feat(web/menu/list): checkbox option for ListItem
feat(web/menu/list): custom checkbox
2022-10-29 15:55:08 +02:00
Jag
de23227ea7 fix(web/menu): move firstRengerRef check earlier in the function (#145)
* This fixes a case where, if the first option selected in a menu doesn't have side scroll values, the first time that you *did* side scroll on an item in that menu it would no trigger onSideScroll
2022-10-29 10:11:40 +02:00
Linden
e840bbb50f refactor(init): report ox_lib error when loading imports
People like to cry about resources not working because they
failed to install ox_lib and don't know how to read, missing the
fat error and stack trace on resource start.

Now we can remind these people they need to actually install
a release.
2022-10-28 18:46:56 +11:00
Linden
97c18f0c6b refactor(resource): export load error 2022-10-28 18:45:47 +11:00
Luke
a8fc5caaae fix(web): set color-scheme to normal
fixes an issue with a black screen in game
2022-10-27 23:24:38 +02:00
Luke
a1d2607286 chore(web): update react and chakra versions
hopefully nothing broke that I didn't notice prayge
2022-10-27 16:44:47 +02:00
Linden
646473f755 fix(client/cache): GetVehiclePedIsIn
Native was swapped out due to a bug R* introduced.
It hasn't been a problem for months and this native is safer.
2022-10-28 00:32:18 +11:00
Luke
8ad04de0bc refactor(web/input): move field components into fields folder 2022-10-27 14:22:15 +02:00
Luke
d4dc68f21e fix(web/input): remove unused isReadOnly property 2022-10-27 13:46:45 +02:00
Luke
a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
Luke
1127108fcd feat(web/menu): add description support on list items 2022-10-27 10:09:48 +02:00
Luke
b354e0836c chore(web): move skill check into dev draw tools 2022-10-27 09:27:54 +02:00
davidxd33
4f69c7c5c1 feat(interface/dialog): disabled row property (#142)
* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
2022-10-27 09:17:53 +02:00
Ehbw2
0d2c06e982 fix(logger/loki): Fix error when passing invalid/nil tags (#139) 2022-10-26 02:30:53 +11:00
Manifest Bumper
5bc6ad9912 chore: bump manifest version to v2.14.2 2022-10-25 10:33:17 +00:00
Linden
a2014502d5 refactor(addCommand): send raw input to callback
Resolves #101, just use a pattern or split the string.
2022-10-25 03:09:12 +11:00
Linden
03dcf14f7e fix(callback): multi-return values for callback method
Resolves #136
2022-10-25 03:03:03 +11:00
Linden
541e708970 refactor(addKeybind): move RegisterCommand to top 2022-10-25 02:58:39 +11:00