From cc5153a1f31ff7f415ff3e5263e9461bdd3a5ecb Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 29 Nov 2020 15:40:51 +0000 Subject: [PATCH] Added /rtpc debug command --- cl_test_cmds.lua | 5 +++++ fxmanifest.lua | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 cl_test_cmds.lua diff --git a/cl_test_cmds.lua b/cl_test_cmds.lua new file mode 100644 index 0000000..0236b72 --- /dev/null +++ b/cl_test_cmds.lua @@ -0,0 +1,5 @@ +-- Radar Toggle Passenger Control +RegisterCommand( "rtpc", function( source, args, rawCommand ) + CONFIG.allow_passenger_control = not CONFIG.allow_passenger_control +end, false ) +TriggerEvent( "chat:addSuggestion", "/rtpc", "Toggle CONFIG.allow_passenger_control" ) \ No newline at end of file diff --git a/fxmanifest.lua b/fxmanifest.lua index 4f8b10d..0e6d879 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -66,4 +66,6 @@ client_script "config.lua" client_script "cl_utils.lua" client_script "cl_sync.lua" client_script "cl_radar.lua" -client_script "cl_plate_reader.lua" \ No newline at end of file +client_script "cl_plate_reader.lua" + +client_script "cl_test_cmds.lua" \ No newline at end of file