[Release] Security Cams

How do i add more than 11 cams to police station menu? after puting more than 11 it does not scroll cams no more and it freezes ( every time I leave the marker my camera menu will no longer open, is there fix for this) :frowning: i can do all coordinates to the banks, stores and maybe other places for ESX version :smile:

		{label = _U('pcam1'), x = 438.96, y = -978.77, z = 32.80, r = {x = -30.0, y = 0.0, z = 200.50}, canRotate = true},
		{label = _U('pcam2'), x = 444.39, y = -975.14, z = 32.80, r = {x = -30.0, y = 0.0, z = 140.50}, canRotate = true},
		{label = _U('pcam3'), x = 441.28, y = -987.82, z = 32.80, r = {x = -30.0, y = 0.0, z = 50.50}, canRotate = true},
		{label = _U('pcam4'), x = 449.37, y = -981.89, z = 32.80, r = {x = -30.0, y = 0.0, z = 100.50}, canRotate = true},
		{label = _U('pcam5'), x = 449.3, y = -988.55, z = 32.80, r = {x = -30.0, y = 0.0, z = 50.50}, canRotate = true},
		{label = _U('pcam6'), x = 448.04, y = -995.52, z = 32.80, r = {x = -30.0, y = 0.0, z = 30.50}, canRotate = true},
		{label = _U('pcam7'), x = 446.87, y = -988.33, z = 28.61, r = {x = -30.0, y = 0.0, z = 270.50}, canRotate = true},
		{label = _U('pcam8'), x = 459.22, y = -986.0, z = 28.67, r = {x = -30.0, y = 0.0, z = 80.50}, canRotate = true},
		{label = _U('pcam9'), x = 465.08, y = -985.45, z = 27.38, r = {x = -30.0, y = 0.0, z = 80.50}, canRotate = true},
		{label = _U('pcam10'), x = 464.96, y = -986.03, z = 27.38, r = {x = -30.0, y = 0.0, z = 150.50}, canRotate = true},
		{label = _U('pcam11'), x = 463.38, y = -991.07, z = 27.38, r = {x = -30.0, y = 0.0, z = 10.50}, canRotate = true},
		{label = _U('pcam12'), x = 459.12, y = -987.53, z = 27.38, r = {x = -30.0, y = 0.0, z = 230.50}, canRotate = true},
		{label = _U('pcam13'), x = 462.38, y = -1007.76, z = 26.85, r = {x = -30.0, y = 0.0, z = 320.50}, canRotate = true},
		{label = _U('pcam14'), x = 469.54, y = -1009.2, z = 27.98, r = {x = -30.0, y = 0.0, z = 100.50}, canRotate = true},
		{label = _U('pcam15'), x = 460.41, y = -986.95, z = 32.69, r = {x = -30.0, y = 0.0, z = 50.50}, canRotate = true},
		{label = _U('pcam16'), x = 450.86, y = -986.9, z = 32.69, r = {x = -30.0, y = 0.0, z = 280.50}, canRotate = true}

here is all police station cameras if you want :smiley:

how to put security cam + dashcam together? it would be interesting to see the police car cameras from the police department.

@Takumi_Fujiwara hmm good idea


The security cam script wasnā€™t built to do that so would take some altering of the code.

Unfortunately I canā€™t help you with this as the ESX port was done by @LifeGoal. Maybe he can help you if he can get to it or if he wants to help you solve your problem.

1 Like

What is the camera box Location?

Hi,

first of all, thankā€™s for both of you for the scripts.
But ESX versions doesnā€™t make the circle to appear. The standalone version works perfectly tho.

Here are my f8 error, Iā€™m in a police job but I assume that the script takes this as a null value.

@LifeGoal

im having an error:

Error loading script config.lua in resource esx_securitycam: config.lua:77: attempt to call a nil value (global '_U') 

Can someone help

Config.hacking is already set to true.

Use the 2.0.1 version. Qalle screwed the main code up. Will be fixing this issue soon.

Still getting errors but with ā€œpairsā€ now.

@xander1998
Im having an issue where it shows the camera and then screen goes black. I still see everything but the security cam view

Which version are you using? Have you modified the code at all?

I got it working from a server restart. Thanks anyways

1 Like

The ESX version will get updated today again. The problems started with Qalleā€™s ā€œupdateā€ which made the script go crazy. Will release my update soon, when everything is working properly.

ESX VERSION 2.2

  • Endless improvements
  • Huge fixes
  • Small corrections
  • _U fixes + more translations

Download: https://github.com/ESX-PUBLIC/esx_securitycam/releases/tag/2.2

I love this script but a suggestion i also have coming off of godgutten!

You should have it where if you shoot at the camera it goes down and also for a cosmetic feature, you should make rounded cameras, and some rotating cameras.

Rotating cameras are already a thing.

I havenā€™t done the camera shooting thing because I havenā€™t really wanted to mess with tracking the cameras client to client to see if its been shot out or not.

oh ok, how do you rotate the cameras?

Its only the ones you set to rotate that can rotate.

SecurityCamConfig = {}

SecurityCamConfig.DebugMode = false
SecurityCamConfig.HideRadar = true

SecurityCamConfig.Locations = {
    {
        camBox = {label = "Pacific Standard Bank", x = 283.67, y = 264.41, z = 105.80},
        cameras = {
            {label = "Camera 1", x = 257.45, y = 210.07, z = 109.08, r = {x = -25.0, y = 0.0, z = 28.05}, canRotate = false},
            {label = "Camera 2", x = 269.66, y = 223.67, z = 113.23, r = {x = -30.0, y = 0.0, z = 111.29}, canRotate = false},
            {label = "Camera 3", x = 241.64, y = 233.83, z = 111.48, r = {x = -35.0, y = 0.0, z = 120.46}, canRotate = false},
            {label = "Camera 4", x = 232.86, y = 221.46, z = 107.83, r = {x = -25.0, y = 0.0, z = -140.91}, canRotate = false},
            {label = "Camera 5", x = 261.50, y = 218.08, z = 107.95, r = {x = -25.0, y = 0.0, z = -149.49}, canRotate = false},
            {label = "Camera 6", x = 261.98, y = 217.92, z = 113.25, r = {x = -40.0, y = 0.0, z = -159.49}, canRotate = false},
            {label = "Camera 7", x = 258.44, y = 204.97, z = 113.25, r = {x = -30.0, y = 0.0, z = 10.50}, canRotate = false},
            {label = "Camera 8", x = 235.53, y = 227.37, z = 113.23, r = {x = -35.0, y = 0.0, z = -160.29}, canRotate = false},
            {label = "Camera 9", x = 254.72, y = 206.06, z = 113.28, r = {x = -35.0, y = 0.0, z = 44.70}, canRotate = false},
            {label = "Camera 10", x = 269.89, y = 223.76, z = 106.48, r = {x = -35.0, y = 0.0, z = 112.62}, canRotate = false},
            {label = "Camera 11", x = 252.27, y = 225.52, z = 103.99, r = {x = -35.0, y = 0.0, z = -74.87}, canRotate = false},
            {label = "Camera 12", x = 251.65, y = 218.66, z = 104.5, r = {x = 0.0, y = 0.0, z = -20.0}, canRotate = true}
        },
        allowedModels = {}
    }
}

canRotate = true

I believe its the keyboard arrow keys.

oh ok Thank You, and didnā€™t really realize that, just threw it in the server

1 Like