Commit Graph

35 Commits

Author SHA1 Message Date
Dan
59dd6c13ae refactor: cleanup sync backup code 2021-03-17 13:53:59 +00:00
Dan
6864cd4cbc fix: passenger plates and lock not being restored properly
The system was restoring the data, but not updating the NUI side.
2021-03-17 13:28:45 +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
7701cce43b docs: add comments to cl_sync.lua 2021-03-14 20:40:00 +00:00
Dan
1ebaab9665 feat: operator menu settings sent to passenger on change 2021-03-14 20:12:25 +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
a65a5b4cbf fix: requesting radar data when there's no driver 2021-03-13 15:02:38 +00:00
Dan
25fdcf721e refactor: comment out debug console messages 2021-03-12 21:33:18 +00:00
Dan
8155fae94c refactor: require radar power to use state rather than toggle 2021-03-12 20:12:03 +00:00
Dan
2f9c483d6d feat: only restore from backups if there are any 2021-03-12 11:04:27 +00:00
Dan
b3ffc9ac23 feat: radar data sync between driver and passenger 2021-03-11 19:03:17 +00:00
Dan
2917ad32d7 refactor: SyncData() to use GetOtherPedServerId() 2021-03-11 19:01:05 +00:00
Dan
60cbe8a8e4 docs: add comments to cl_sync.lua 2021-03-10 14:44:32 +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
c2ea0dbfe7 feat: sync will only work if the player can control the system 2021-03-02 21:00:39 +00:00
Dan
ec42d6860b feat: basic speed lock sync 2021-03-02 20:44:21 +00:00
Dan
bf4a2efd7b feat: make sync system check if the other ped is a player 2021-03-02 19:16:13 +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
Dan
508f94684e style: remove trailing spaces 2021-03-02 10:14:21 +00:00
Dan
6cf6761e51 feat: antenna mode sync and control for driver/passenger 2021-02-26 21:43:56 +00:00
Dan
0e46c7b8a1 feat: antenna power sync and control for driver/passenger 2021-02-26 20:50:02 +00:00
Dan
3d9ae2602c refactor: making sync functions are streamlined a bit 2021-02-26 20:49:15 +00:00
Dan
695ff71577 docs: sv/cl_sync.lua headers 2021-02-26 20:07:50 +00:00
Dan
9a1a58671b fix: still syncing when there's no other player 2021-02-26 15:47:41 +00:00
Dan
3fd458ac63 feat: power button sync and passenger control
The power state is now synced between the driver and passenger. The passenger can also toggle the radar's power if the config line allows for it.
2021-02-26 15:42:17 +00:00
Dan
a812f23174 docs: update copyright range 2021-02-24 15:28:56 +00:00
Dan
912b0f72d7 feat: setup SYNC client table 2021-02-23 21:17:22 +00:00
Dan
cbde49abe3 refactor: remove cl_sync.lua code 2021-02-23 12:45:27 +00:00
Dan
914b6d5f44 Update cl_sync.lua 2020-11-07 12:32:36 +00:00
Dan
3baa2c6d2e Create cl_sync.lua, SYNC table and basic decorator setup 2020-07-18 13:50:21 +01:00