esx_core
esx_core copied to clipboard
refactor(esx_skin/client/main.lua): Replace Sleep
Sleep method has been replaced with a function trigger. Two threads involved with camera used to sleep until isCameraActive boolean were true. Now Threads are created when functions CameraControl() and CameraRotation() are triggered. Functions are triggered once isCameraActive is true and while loops breaks when isCameraActive is set to false.