Commit Graph

238 Commits

Author SHA1 Message Date
Dan
1feb7ba599 fix: key binds not registering until resource restart
There were a number of people with issues regarding their key binds not getting registered until the resource was restarted. This appears to have been caused by QBus interfering with the `playerSpawned` event which the resource relied on to register the key binds. The exact qb resource in question is unknown presently.
2021-08-30 20:16:34 +01:00
Dan
3d003b1683 refactor: change fast settings at start if to match code convention
Also renamed the new config variable.
2021-03-26 19:51:37 +00:00
TrevorBarns
cfce5e4b85 feat: 'fast limit menu first' config to determine new sort order 2021-03-26 13:41:41 -05:00
TrevorBarns
4bc6d010ca Feature: Bring fast options to top of menu options for ease of access. 2021-03-25 21:36:52 -05:00
Dan
989d4050b1 fix(sync): passenger able to lock plates when passenger control disabled 2021-03-19 10:13:34 +00:00
Dan
479255a06e fix: attempt to fix inconsistent synced lock speeds 2021-03-18 20:16:40 +00:00
Dan
224685727f feat: only allow fast lock for driver 2021-03-18 20:15:22 +00:00
Dan
07b1311529 refactor: reorganised getters/setters for cl_radar.lua 2021-03-18 19:05:43 +00:00
Dan
e22a807228 refactor: use getter rather than direct access for fast limit settings 2021-03-17 17:11:21 +00:00
Dan
34102ecf0f refactor: remove redundant tempVehicleIDs table 2021-03-17 17:08:46 +00:00
Dan
ff3ee6dfe5 fix: audio not playing on speed lock
This was caused because I used the RADAR:IsMenuOpen() function to control if audio should be played. This is so if one player is in the operator menu, and the other locks a speed, the audio is not played for the player in the operator menu. The variable 'isMenuOpen' just needed inverting.
2021-03-17 17:07:21 +00:00
Dan
7e63c37e45 fix: fast limit settings not saving 2021-03-17 16:59:50 +00:00
Dan
8a269b7143 refactor: remove leftover debug messages 2021-03-15 19:36:58 +00:00
Dan
8f0037d18b feat: add passenger control for operator menu 2021-03-15 19:20:12 +00:00
Dan
6f4f5e7d34 feat: plate reader sync 2021-03-15 13:55:13 +00:00
Dan
e5819b0c6d refactor: move radar sync code to cl_sync.lua 2021-03-14 20:49:12 +00:00
Dan
1ebaab9665 feat: operator menu settings sent to passenger on change 2021-03-14 20:12:25 +00:00
Dan
55b5a90a28 feat: exit the operator menu on remote close 2021-03-14 15:03:16 +00:00
Dan
46a19221fb fix: operator menu being interrupted by speed lock 2021-03-14 15:01:57 +00:00
Dan
cde5bef492 feat: only allow one player to have the remote open 2021-03-14 14:24:15 +00:00
Dan
469166b2ca fix: locked speeds not syncing 2021-03-13 22:41:54 +00:00
Dan
fa386b46d3 fix: passenger accessing operator menu 2021-03-13 15:19:05 +00:00
Dan
699bca2ee4 refactor: comment out more debug messages 2021-03-13 14:07:35 +00:00
Dan
6ec766eb82 fix: fast display option being ignored on power up 2021-03-13 13:01:45 +00:00
Dan
dcd561164f refactor: reduce wait when loading data from driver 2021-03-12 21:22:55 +00:00
Dan
81751966a6 feat: add power state to sync system 2021-03-12 21:21:31 +00:00
Dan
8155fae94c refactor: require radar power to use state rather than toggle 2021-03-12 20:12:03 +00:00
Dan
5e26858024 feat: update antenna displays with synced values 2021-03-12 11:03:41 +00:00
Dan
d7af90aece feat: add function to get if there's any backup data 2021-03-12 11:02:02 +00:00
Dan
f4c621e0d3 fix: RestoreFromBackup() not restoring antenna table 2021-03-12 10:58:27 +00:00
Dan
b3ffc9ac23 feat: radar data sync between driver and passenger 2021-03-11 19:03:17 +00:00
Dan
5af79b8674 fix: restore backup function using non-existing variable 2021-03-11 18:58:57 +00:00
Dan
07ad8876e4 fix: UTIL:Values loops incorrect variables 2021-03-11 18:57:42 +00:00
Dan
b7168ef658 refactor: use getter for IsFastDisplayEnabled() 2021-03-11 16:36:41 +00:00
Dan
c5bf28ca33 feat: add function to restore backed up data 2021-03-11 16:20:02 +00:00
Dan
20a369a170 feat: add function to load data from the driver 2021-03-11 11:01:56 +00:00
Dan
94b5c249df feat: add setter for antenna table data 2021-03-11 10:47:13 +00:00
Dan
ac8ca17931 feat: add setter for operator menu settings table 2021-03-11 10:46:10 +00:00
Dan
18fbbea632 feat: add ability to backup local radar data
Add RADAR:BackupData(), this is only used when the local player becomes the front seat passenger in another vehicle.
2021-03-10 16:55:34 +00:00
Dan
13efa325bd feat: add setters for RADAR.backupData 2021-03-10 16:41:01 +00:00
Dan
1f45b0ec21 feat: add getters for RADAR.backupData 2021-03-10 16:38:10 +00:00
Dan
84e1e41df4 feat: add table for backing up radar data when the player becomes a passenger 2021-03-10 16:26:00 +00:00
Dan
e97fedf81f feat: add ability to get operator menu and antenna table data 2021-03-10 15:05:13 +00:00
Dan
914c6a28aa feat: add chat suggestion for /reset_radar_data 2021-03-03 13:26:03 +00:00
Dan
4f634f7ab2 refactor: use Notify instead of Log for /reset_radar_data command 2021-03-03 13:09:27 +00:00
Dan
95d8feb6a6 feat(sync): locked speed overrides recipient's speed data
When the driver/passenger locks a speed, the data from the player who locked the speed is gathered and sent to the other player. This way the players will have the same data on both ends.
2021-03-03 11:59:59 +00:00
Dan
eacb42851c feat: speed lock only works if the player can control the system 2021-03-02 21:01:34 +00:00
Dan
ec42d6860b feat: basic speed lock sync 2021-03-02 20:44:21 +00:00
Dan
044b5fa412 refactor: remove callback from RADAR:SetAntennaMode() 2021-03-02 19:06:54 +00:00
Dan
0c85eb157f refactor: remove callback from RADAR:ToggleAntenna 2021-03-02 10:44:01 +00:00