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