Commit Graph

442 Commits

Author SHA1 Message Date
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
Dan
713a7d41db Merge pull request #6 from Jamelele/callbacks
NUI Callback Improvements
2020-06-10 18:17:26 +01:00
Jamelele
b8b2eecaea Return callbacks with 'ok' instead of an empty object 2020-06-02 14:36:53 +00:00
Jamelele
bc13b14aed Send empty payloads instead of 'null'
Odd stuff seems to occur and you can't return the callback from lua
2020-05-25 00:40:11 +01:00
Jamelele
285cee53a0 Set correct headers for NUI callbacks 2020-05-24 21:22:16 +00:00
Jamelele
4ec8391b6f Send nui requests over HTTPS 2020-05-24 15:22:52 +00:00
Jamelele
e0931ed351 Add callbacks to all events to prevent requests from stalling 2020-05-24 15:22:39 +00:00
Dan
9de5694899 Attempted workaround for control issues 2020-04-26 16:20:17 +01:00
Dan
74539874c3 Updated version number
x.2.x = new keymaps, adjusted display update speed
x.x.3 = fixed heading check
2020-03-28 21:56:34 +00:00
Dan
dcc1991490 Fixed the heading check not working near 0deg 2020-03-28 21:48:58 +00:00
Dan
2d9ec9739f Adjusted the display update rate 2020-03-28 21:48:23 +00:00
Dan
02ad05639e Updated README.md 2020-03-28 17:56:37 +00:00
Dan
bcb772514f Code consistency 2020-03-28 17:52:53 +00:00
Dan
c59417eba7 Removed keyboard set code 2020-03-28 17:52:01 +00:00
Dan
2291b5f1a2 Merge pull request #3 from blockba5her/master
switch from gta controls to fivem key maps
2020-03-28 17:22:17 +00:00