Modifying Zones & Adding Cameras
Adding and removing cameras and zones is simple with the /cc developer command
Last updated
Was this helpful?
Adding and removing cameras and zones is simple with the /cc developer command
Last updated
Was this helpful?
To start adding or removing cameras and zones, you'll need to firstly enable developerMode at the top of the config.lua file. This will enable blips in-game, showing you the locations of the pre-configured 500+ cameras around the city:
By default, these are all configured under one zone called "city". This document will show you how to add and remove cameras to that zone, along with adding and removing new zones.
Most actions involved in this guide will be using the /cc command in-game. If this does not appear, you'll likely need to make sure you have developerMode enabled in the config.lua file.
To add a new camera, firstly head to your desired location and use the /cc addcam [ZONE NAME] command. Therefore, to add a camera to the default zone named "city", you'll use /cc addcam city.
Next, you'll be placed into our object spooner mode where you can fly around using WSAD. To pick the item up and move it around, grab it with your left mouse. To rotate the camera, press R. Once you are happy with the placement, press Enter. If you want to cancel during this process, press Escape.
Next, you'll be placed into our camera preview mode. You need to set where the camera is facing, as only vehicles in this view frame will be charged. You can adjust the view with arrow keys and the scroll wheel on your mouse to zoom in or out.
Once you are happy with the final positioning, press Enter to confirm and place the camera. Alternatively, press Escape to cancel the placement.
The new camera location will automatically be added to the locations.json file under the Congestion Zone name which you specified when initially running the /cc command so no further action is required.
Firstly, stand next to or nearby the Congestion Charge camera you are wanting to remove.
Next, use the /cc deletenearestcam command to delete the nearest camera.
As mentioned, most users will likely keep the default zone of City, so it is important that we show you how to modify the City zone, such as the amount and frequency of charges.
To do this, open the locations.json file inside the data folder of the resource.
This section of the zone .json file allows you to set the cost, which will be charged to players every day/week/month (whatever is configured below). You may want to tweak this for your server.
Next, locate the frequency section within the zone. The charge frequency must either be set to:
daily - This will charge players every day (in real life time)
weekly - This will charge players every week (in real life time)
monthly - This will charge players every month (in real life time)
By having the ability to change the charge frequency, you can tailor this resource to exactly how your server likes it, creating the perfect balance between your players and preventing congestion.
To add a new congestion charge zone, use the /cc createzone [ZONE NAME] command. For example, you may want to create a new zone up at Paleto. This is where you will do it.
Next, enter a cost for driving in this zone. By default, this is set to 12.50.
Next, enter the charge frequency (daily/weekly/monthly). By default, this is set to monthly.
Next, set the exemption sets separated by spaces, such as "police green" for two exemption sets called "police" and "green", which must both be setup in your config.lua file.
To delete a zone, just use the /cc deletezone [ZONE NAME] command.
Next, type confirm in the box to confirm the permanent deletion of your zone.