mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 02:01:40 +00:00
FIX - camera screen
This commit is contained in:
@@ -5,8 +5,6 @@ local front_camera_fov = 25.0
|
||||
local front_camera_distance = 0.75
|
||||
local front_camera_height = 0.05
|
||||
local front_camera_target_height = 0.03
|
||||
local camera_emote = "malemirrorselfie3"
|
||||
local camera_emote_texture_variation = 8
|
||||
local camera_state = {
|
||||
active = false,
|
||||
enforcing = false,
|
||||
@@ -21,16 +19,6 @@ local camera_state = {
|
||||
previous_vehicle_view = nil,
|
||||
}
|
||||
|
||||
local function start_camera_emote()
|
||||
exports.rpemotes:EmoteCommandStart(camera_emote, camera_emote_texture_variation)
|
||||
end
|
||||
|
||||
local function stop_camera_emote()
|
||||
if LocalPlayer.state.currentEmote == camera_emote then
|
||||
exports.rpemotes:EmoteCancel(true)
|
||||
end
|
||||
end
|
||||
|
||||
local function rotation_to_direction(rotation)
|
||||
local z = math.rad(rotation.z)
|
||||
local x = math.rad(rotation.x)
|
||||
@@ -150,7 +138,6 @@ local function set_camera_active(active)
|
||||
end
|
||||
camera_state.active = active
|
||||
if active then
|
||||
start_camera_emote()
|
||||
camera_state.front_camera = false
|
||||
clear_front_camera()
|
||||
camera_state.previous_ped_view = GetFollowPedCamViewMode()
|
||||
@@ -192,7 +179,6 @@ local function set_camera_active(active)
|
||||
end
|
||||
camera_state.flash_enabled = false
|
||||
camera_state.front_camera = false
|
||||
stop_camera_emote()
|
||||
clear_front_camera()
|
||||
restore_camera_view()
|
||||
if not camera_state.nui_focused then
|
||||
|
||||
Reference in New Issue
Block a user