#[WIP] CCTV Cameras

7 messages · Page 1 of 1 (latest)

vital cloud
#

Current progress of my cctv cameras idea. Player owned and job owned CCTV cameras that are fully server synced. Including shooting, jamming, motion tracking, and much more which i still keep private till done. Any thoughts, or feedback?

vagrant tapir
#

Looks sick 🔥

calm sinew
#

Wow, impressive. How do you manage to make it very optimized and low resmon with such demanding resources like this to work?

vital cloud
# calm sinew Wow, impressive. How do you manage to make it very optimized and low resmon with...

This resource is not demanding at all. Generally the rule is always to avoid loops, loops need processing power especially if you are going to do something complex like drawing something each frame or doing some type of collision checks. Afterwards you can think of ways to run certain code, you don’t need everything at x,y,z situations. For example i an inside a bank, i can only see the bank, why should checks be happening if i am inside a bank and the check is regarding Paleto Bay? Lastly a good practice is for variables that you will reuse and have the same value, to have then global. And that’s not just globally through the script, but give exports where you can call from one resource to another. It’s a bit tedious but fine overall. I always say resmon isn’t that big of a deal. I am mostly more concerned from assets and database connections haha, those ones can really destroy performance if you don’t pay attention.

vital cloud
#

Hey again, spent all day coding backend code and front end code. Feels like it's actually getting in shape now. This is the current progress. Everything is synced across players and stored in database. Even on server restarts jammers will stay where they were unless broken/picked up.

calm sinew
#

Looking really good!

vital cloud
#

Hey again, spent another sleepless night coding haha. I managed to finally get all the ideas i had working, multiple types of cameras with different quality. I wrote also a quite interesting placing method that i want to use when i create my own housing system from scratch. It is quite advanced and takes into account collisions so players can't abuse (that ruined my day haha, had to incorporate logic i learned in uni and dive a bit into the fivem source code). Still need to polish some front end and backend code but realistically i should be done with this by tomorrow. Any thoughts?