Luke
712a6763e8
fix(client): Missing event for defaultNotify
2022-05-03 21:57:41 +02:00
Luke
0259de8dfe
feat(web/dialog): Add checkbox type
2022-05-02 13:51:08 +02:00
Luke
fdb330a38f
fix(client): Move loadLocale function out of init
...
Setting a locale causes the whole application to be rerendered, meaning that the fetch for init would also run every time when locale is set
2022-05-01 11:07:44 +02:00
Luke
4db4c79d8a
feat(web): Settings modal, locale state provider
2022-04-30 14:49:49 +02:00
Linden
48728f0241
feat(locales): include some locales
...
Partial, and google translated just for the sake of setting an example.
Also renamed many of the language codes where the extra characters are
redundant (i.e. fr-FR, de-DE).
2022-04-30 05:04:15 +10:00
Linden
031cccd886
fix(locale): server hotload and "external" kvp
...
External kvp's don't exist for the server, so we have to export the proper language.
2022-04-29 16:53:24 +10:00
Linden
8af19bae42
feat: locale system
2022-04-29 05:56:41 +10:00
Linden
fee2950a35
feat(resource): throw an error if the UI is not built
2022-04-29 03:02:28 +10:00
Linden
f6216af1ae
refactor: rename lualib variable and move clipboard export
2022-04-29 03:02:06 +10:00
Linden
bf792004e9
fix(interface/progress): check for data.disable.move
2022-04-25 13:31:59 +10:00
Linden
26fe012b55
refactor(interface/progress): disable controls
...
Last implementation was basically copied over from ox_inventory which used
the control actions wrapper; somewhat pointless in this case.
2022-04-22 14:32:40 +10:00
Linden
877409486f
refactor(resource/cache): remove commented code
...
Probably won't use this, but if I do then I'll add it when appropriate.
2022-04-21 15:09:42 +10:00
Linden
84ad4abcca
refactor(resource/version): checkDependency optional print and return
...
Send 'true' to match old behaviour (print message, return nil).
New behaviour has no output unless sending a third argument.
2022-04-19 01:09:22 +10:00
Linden
f4e0739b04
fix(interface/textui): localise input
2022-04-18 23:30:58 +10:00
Luke
96d1f74f14
feat(client/web): Set clipboard export
2022-04-17 18:22:19 +02:00
Luke
66f9460729
feat(client/notifications): Add default chakra notification functions
2022-04-16 12:03:50 +02:00
Luke
caa0b8284f
fix(client/context): Ensure is ordered correctly
...
Previously the menu items would be randomly ordered, now they are the order you wrote them to be in.
2022-04-16 11:48:24 +02:00
Luke
282d81500c
fix(client/context): Throw error when context id doesn't exist
...
Opening a context menu before registering it would previously result in the script completely erroring out and having stuck nui focus
2022-04-15 11:27:08 +02:00
Luke
c21054280c
fix(client/context): Allow using events to open context menus
...
There was an issue where if you wanted to open a second context menu using args from the first context menu's item with events, the nui focus would get stuck beacuse it would get set by the event.
2022-04-15 11:26:11 +02:00
Luke
50b1ddd167
feat(web/context): Get open context menu function
2022-04-15 10:22:31 +02:00
Linden
9a3b17029f
refactor(resource/interface): keymapping and multi-prop support
...
Prop data should support a single table or an array for multiple
props.
2022-04-14 13:47:56 +00:00
Linden
aaab5798c0
feat(resource/interface): progressActive and cancelprogress command
2022-04-14 13:11:51 +00:00
Linden
7ea609ae91
Merge branch 'master' of https://github.com/overextended/ox_lib
2022-04-14 06:45:55 +00:00
Linden
0227bd11a6
feat(resource/interface): progress bar
2022-04-14 06:45:48 +00:00
Linden
c7dafe56cd
tweak(resource/cache): playerId, serverId, and micro
2022-04-14 06:44:34 +00:00
Luke
128fb86954
fix(client): Add missing NUI callbacks
2022-04-11 16:14:32 +02:00
Luke
ed75b683d5
feat(client): Text UI functions
2022-04-11 15:59:18 +02:00
Luke
ff71a7d033
feat(client): Input dialog function
2022-04-11 15:26:10 +02:00
Linden
760f18653d
tweak(resource/interface): register net event for lib.notify
2022-04-11 04:59:21 +00:00
Linden
84a456bf68
Merge pull request #12 from overextended/feat/ui
...
Feat/UI
2022-04-11 13:55:23 +10:00
Linden
e842185382
feat(resource/interface): export notify
2022-04-11 03:52:25 +00:00
Luke
d6b21a0481
feat(nui): Context menu Lua callbacks
2022-04-01 21:22:14 +02:00
Linden
d30a355254
feat(acl): if principal is a number, reference player.num
2022-03-31 12:47:38 +00:00
xrtw
37448b354e
GetVehicleXenonLightsColour -> GetVehicleXenonLightsColor
...
https://docs.fivem.net/natives/?_0x3DFF319A831E0CDB
2022-03-25 13:42:53 +02:00
Linden
820beb5438
fix(cache): leftover print
2022-03-16 06:18:20 +00:00
Linden
913c51307a
fix(cache): update seat when shuffling
2022-03-16 06:08:18 +00:00
Linden
e971778b29
refactor(vehicleproperties): throw error for invalid or unowned entity
2022-03-15 06:52:40 +00:00
Linden
35e4bc7509
perf(cache): check vehicle every second tick
2022-03-13 03:21:33 +00:00
Linden
13c8c29811
refactor: change event names from lualib to ox_lib
2022-03-13 03:21:01 +00:00
Linden
cdc7523146
fix(cache): ped not triggering update event
2022-03-02 02:28:10 +00:00
Linden
b37e9f772f
refactor(cache): save seat index instead of driver
2022-03-01 13:22:52 +00:00
Linden
f8d68df5e9
feat(cache): add lib.cache and update event
2022-03-01 12:28:04 +00:00
Linden
adf08e44b8
chore: move files, add docs link
2022-03-01 10:55:46 +00:00
Linden
6aeda78428
fix(vehicleproperties): save correct tyre damage
2022-02-28 07:20:46 +00:00
Linden
e83aa653cc
refactor(init): call imports and exports via lib
...
Deprecate import (now just references lib); when calling or indexing
lib for the first time, attempt to load a module else call an export.
2022-02-28 02:40:25 +00:00
Linden
37032fe0dd
feat(states): WIP handler for cacheing and setting states
...
Provide a centralised non-framework dependent interval to
track and perform tasks based on certain variables, such as
if the player is driving, in a vehicle, or walking.
Will later add a statebag change handler with callbacks, to
easily listen for state changes and use them in third-party
resources.
2022-02-28 00:49:44 +00:00
Linden
478cd93e97
feat(version): version and dependency checks
2022-02-28 00:49:24 +00:00
Linden
75fa709200
feat(vehicleproperties): save broken windows, doors, and tyres
2022-02-28 08:08:22 +11:00
Linden
167938c7f1
feat(acl): add exports to set acl permissions
...
Needing to grant multiple resources permissions to use this commands is no bueno.
2022-02-28 08:07:52 +11:00
Linden
4c70dbe64d
feat(exports/entities): persistent window state (smashed/intact)
2022-01-31 23:50:12 +11:00