Haxwel
October 23, 2022, 10:39am
1
Haxwel’s CCTV Security Cameras Menu
Features
All vanilla security cameras (1381) working out of the box (contains instructions for how to update the list if you have custom camera locations).
With certain camera models the view can be moved with WASD.
Listed by Zone → Street → Street Crossing.
Resource usage ~0.05ms when viewing a camera.
Works with ESX-Legacy. Should be quite easy to modify it to work with any other framework.
Available for free on GITHUB
12 Likes
And here I thought that camera list I found on root-causes GitHub would be a great resource, then promptly forgot about it.
Glad someone else had the same idea.
Well done.
1 Like
how would i go about making this work for qbcore?
How do you look at the cameras ? cant seem to find the command
Haxwel
November 4, 2022, 12:25pm
5
end
exports('OpenCCTVMenu', function()
if not camTable then
print("Cameras not initialized yet!")
return
end
Menus.OpenChooseZoneMenu()
end)
--[[RegisterCommand('camdev', function()
exports.haxcctv:OpenCCTVMenu()
end)]]
-- Runs the script on resource start
AddEventHandler('onClientResourceStart', function(resource)
if resource ~= GetCurrentResourceName() then
return
end
Citizen.CreateThread(function()
You can uncomment this if you want to have a command. The main purpose of this script is that you would somehow integrate this with something you make yourself, so that’s why the command is commented out
Haxwel
November 4, 2022, 12:28pm
6
The ESX dependencies are related to the menu mostly, so you would have to rewrite the menu part to use QB’s menu or something else.