Commit Graph

356 Commits

Author SHA1 Message Date
Dan 9e346aa0f3 Update .gitignore 2021-03-01 12:04:28 +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 92d3ae8132 feat: func to get ped in opposite seat if driver/passenger 2021-02-26 15:41:21 +00:00
Dan ff668a92fc refactor: move player data to own file 2021-02-25 13:04:00 +00:00
Dan e622a8ff64 refactor: switch to fivem jQuery 2021-02-24 15:35:05 +00:00
Dan a812f23174 docs: update copyright range 2021-02-24 15:28:56 +00:00
Dan 21fde3468e fix: power button spam breaking display 2021-02-24 15:16:30 +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 17da8b58c0 refactor: power state event variable name 2021-02-23 11:08:24 +00:00
Dan 0fe8b24212 Added config option for Sonoran CAD users 2021-01-07 14:17:24 +00:00
Dan 8658de39ad Added a notification when resetting radar data 2021-01-07 11:06:25 +00:00
Dan cc89d4c72a Fixed UI settings not reloading on resource restart 2021-01-07 10:52:30 +00:00
Dan a166dda1cb Added config option to only auto lock speeds if it's a player 2021-01-07 10:50:52 +00:00
Dan 47fa80d67b Add event for sending radar power state 2021-01-06 10:24:22 +00:00
Dan 014d5ceac2 Added sv_sync.lua 2020-11-30 13:20:45 +00:00
Dan 70f781b20e Added /rre command, notifications, debug only commands 2020-11-30 10:29:02 +00:00
Dan 157729b5ec Added temporary debug config setting 2020-11-30 10:28:19 +00:00
Dan f6034a4bed Added /rtpv debug command 2020-11-30 09:58:18 +00:00
Dan bb16f2dc4e Changed fxmanifest version to "beta" 2020-11-29 15:42:12 +00:00
Dan cc5153a1f3 Added /rtpc debug command 2020-11-29 15:40:51 +00:00
Dan 12d1a6503b Passenger control for operator menu 2020-11-29 15:31:01 +00:00
Dan 8ced0c1fd1 Passenger control for antenna toggle 2020-11-29 15:24:45 +00:00
Dan 3d9658d2d5 Passenger control for setting antenna mode 2020-11-29 15:21:29 +00:00
Dan fb13e79e3b Changed PLY:CanRunRadar() to PLY:CanViewRadar() 2020-11-13 19:45:48 +00:00
Dan 964f97835b Can't turn on radar power as the passenger
If CONFIG.allow_passenger_control is set to true, then the passenger can turn on the power.
2020-11-13 19:35:00 +00:00
Dan e5aeb844d7 Change CONFIG.allow_passenger_control to false 2020-11-13 19:33:32 +00:00
Dan d7aadf29dc Added PLY:CanControlRadar() 2020-11-13 19:18:39 +00:00
Dan 93439a7df3 Block key binds from being registered if the resource name is not wk_wars2x 2020-11-13 19:15:04 +00:00
Dan 8d40970f98 Resource name server console error message
If the resource's name is not wk_wars2x, then the server console will receive an error.
2020-11-13 18:42:27 +00:00
Dan f5e55c4728 Updated key lock message
The key lock message now reads "Radar key binds enabled" and "Radar key binds blocked". Green and red are also used to signify the state of the key binds, this hopefully makes it a bit more clear what it does, as well as the state of the key lock.
2020-11-13 17:32:34 +00:00
Dan b687908a91 Added console message for registering key binds 2020-11-12 09:49:56 +00:00
Dan 12c29421cd Another attempted fix for the key binds issue
Key binds now get registered only when the player has spawned in, rather than when the code gets run at the bottom of the file.
2020-11-12 09:34:52 +00:00
Dan 7bbfd8c27a UI settings get loaded when the resource is restarted 2020-11-07 13:12:05 +00:00
Dan 6266bd8ed4 NUI callback response formatting 2020-11-07 12:35:46 +00:00
Dan 914b6d5f44 Update cl_sync.lua 2020-11-07 12:32:36 +00:00
Dan 4f7d56471b Added ability to clear the BOLO plate 2020-11-05 15:33:21 +00:00
Dan dc8875893f Updated config comments 2020-11-05 12:18:16 +00:00
Dan a0ef45c60d Remove dynamic resource naming 2020-11-05 11:51:51 +00:00
Dan f00d747d92 Fixed radar disply not hiding for the passenger 2020-11-05 10:08:04 +00:00
Dan d53aded906 Updated fx_version to "cerulean" 2020-11-05 09:09:45 +00:00
Dan aef30b5729 Added PLY:CanRunRadar() to override PLY:VehicleStateValid()
The driver and passenger of a vehicle should now be able to run radar independently, this is a very early implementation as there is no syncing between players. If the driver locks a speed, the passenger's radar will be unchanged, and so on.
2020-07-20 09:32:20 +01:00
Dan daf191d6ea The passenger should now also be able to open the remote 2020-07-19 17:49:31 +01:00
Dan 3baa2c6d2e Create cl_sync.lua, SYNC table and basic decorator setup 2020-07-18 13:50:21 +01:00
Dan fdee24d694 Added config variables 2020-07-16 11:43:29 +01:00