TGIANN
YoutubeDiscordTebexFivem
  • Main
    • Welcome
    • How to Find My Transaction ID
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
    • Switching from MySQL Async to oxmysql
    • Basic Aces & Principals overview/guide
    • Using QB scripts in QBOX
    • How can i use Fivemanage
  • Common errors
    • SCRIPT ERROR: ?:-1: attempt to call a nil value
    • TGIANN-Core script is not in my keymaster account
    • You lack the required entitlement to use tgiann-*
    • Error parsing script / Failed to load script
    • Error: syntax error near '<\1>'
    • When I buy something, the money goes negative
    • Failed to verify protected resource
  • Map
    • lumi-delperropier
      • Setup
      • Conflicts
      • Disable NPC
      • Rcore Funfair Cords
      • CS-Hall Config
  • Scripts
    • tgiann-animpos-photo-cam
      • Editable Files
      • Config File
      • Exports
    • tgiann-self-storage-v2
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Config File
    • tgiann-radio
      • Guides
        • Recommended settings for PMA Voice
        • How to change the animation
      • Installation
      • Config file
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Exports
    • tgiann-core
      • Config file
      • Exports
      • Integration
        • QB
          • DrawText
    • tgiann-lumihud
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • playerStatus.lua
          • qbclient.lua
          • editable.lua
          • moneyEditable.lua
          • harnessBeltEditable.lua
        • Server
          • qbserver.lua
          • editable.lua
      • Config Files
        • config.lua
        • configHudSettings
        • configWeaponList.lua
        • qbStressConfig
      • Integration
        • Notify
        • Progressbar
    • tgiann-realparking
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
      • Config Files
        • blipsConfig.lua
        • config.lua
        • impoundConfig.lua
        • insuranceConfig.lua
    • tgiann-vehicleshop
      • Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
          • commands.lua
      • Config Files
    • tgiann-gps
      • Client Exports
      • Editable Files
        • config.lua
        • client/editable.lua
        • Language File
    • tgiann-clothing
      • Guides
        • Installation
          • ESX
          • QB
          • QBX
          • tgiann-inventory clothe items
        • Migration
        • How to take clothes images
      • Comman Proplems
      • Events / Exports
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • server/editable.lua
      • Configs
        • blacklist
          • famale.lua
          • male.lua
        • clotheList
          • global
            • female.lua
            • male.lua
        • clothingPrice
          • female.lua
          • male.lua
        • tattoo
          • customTattoo.lua
          • tattoo.lua
        • clothingRoomsOutfits.lua
        • config.lua
        • hairOverlays.lua
        • pedList.lua
    • tgiann-inventory
      • Guides
        • Installation
          • ESX
          • QB
          • QBOX
        • How to adapt your script
        • How do money as item
          • QB
          • QBOX
          • ESX
            • ESX V11
            • ESX V12
        • Creating Items
        • Item İmages
        • Item Metadata
        • Migration
      • Common Problems
      • Exports
        • Server
        • Client
      • Hooks
      • Events
        • Server
        • Client
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • client/topheader.lua
        • server/editable.lua
        • server/commands.lua
        • server/convert.lua
      • Configs
        • config.lua
        • configAmmo.lua
        • configAntiSwimingItems
        • configAttachment.lua
        • configAttachmentName.lua
        • configBlockItems.lua
        • configCarryItems.lua
        • configClotheBackpack.lua
        • configCommands.lua
        • configCraft.lua
        • configDecayableItems.lua
        • configDrop.lua
        • configEditableItems.lua
        • configFilter.lua
        • configItemStash.lua
        • configMaxStack.lua
        • configMaxUseAmount.lua
        • configMetadata.lua
        • configMetadataAdvance.js
        • configRealisticArmor.lua
        • configShop.lua
        • configStashes.lua
        • configThrowableItems.lua
        • configVendingMachine.lua
        • configWeapon.lua
    • lumi-delperropier-texonstone
      • Setup
    • tgiann-antirpf
      • Editable files
    • tgiann-secondhand
      • Editable files
      • config.lua
    • tgiann-multicharacter + spawn selector
      • Guides
        • Installation
        • Discord Permmission integration
        • Tebex integration
      • Common Problems
      • Configs
        • config.lua
        • multicharConfig.lua
        • photocamConfig.lua
        • spawnSelectorConfig.lua
      • Editable Files
        • Language File
        • client/editable.lua
        • server/editable.lua
        • server/commands.lua
    • tgiann-attachment
      • Config file
      • Event List
    • tgiann-bank
      • Migration
      • Exports
      • Config files
        • config.lua
        • configGangAccounts.lua
        • configHacking.lua
        • configJob.lua
        • configJobAccounts.lua
      • Editable Files
    • tgiann-bettercombat
      • Config file
      • Event List
    • tgiann-bobcat
      • Config file
    • tgiann-boombox
      • Config file
    • tgiann-vehiclecontrol
      • Exports
      • Config file
      • Editable Files
    • tgiann-card
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-carhud
      • Config file
    • tgiann-carmod
      • Config file
      • Sql File
    • tgiann-chair
      • Config file
      • QB Core Item
    • tgiann-chopshop
      • Config file
      • QB Core Item
    • tgiann-damage-indicator
      • Config file
      • Editable files
    • tgiann-dna
      • Sql File
    • tgiann-document
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-doorlock-v2
      • How can i find door model and other details
      • Config file
    • tgiann-dropweaponwhendie
      • Config file
    • tgiann-drugsell
      • Config file
    • tgiann-erpv2
      • Config file
    • tgiann-fallouthacker
      • Usage
    • tgiann-garage
      • Config file
      • Event List
      • Exports List
      • QB Sql File
      • ESX Sql File
    • tgiann-hotwire
      • Item List
      • Editable Files
        • Language File
        • Client/editable.lua
        • Client/migrate.lua
        • Server/commands.lua
      • Config file
      • Exports
    • tgiann-house
      • Stash Function
      • Common errors
      • Config file
      • Event List
      • Sql File
      • Editable Files
    • tgiann-hud
      • Config file
    • tgiann-hudv2
      • Config file
      • Event List
    • tgiann-job
      • Config file
      • Sql File
    • tgiann-market
      • Editable Files
      • Config file
      • Sql File
    • tgiann-mdt
      • Config file
      • ESX Sql File
      • QB Sql File
    • tgiann-megaphone
      • Setup
        • QB Core Item
        • Ox Inventory Item
      • Language File
      • Config file
      • Event List
      • Exports List
      • Recommended PMA Voice Settings
      • Common Problems
    • tgiann-moder-hud
      • Config file
      • Editable files
      • Event list
    • tgiann-naked
      • Config file
      • Editable Files
      • Sql File
      • Wrong Clothes
    • tgiann-platechanger
      • Config file
    • tgiann-policealert
      • Config file
      • Event List
    • tgiann-postcard
      • Editable Files
      • Config file
      • QB Core Item
      • Ox Inventory Item
    • tgiann-radio (Old)
      • Common errors
      • Config file
      • Event List
      • Exports List
      • Recommended settings for PMA Voice
    • tgiann-rentscooter
      • Config file
    • tgiann-sblauncher
      • Config file
      • QB Core Item
    • tgiann-self-storage
      • Config file
      • Editable files
      • Sql File
    • tgiann-exit-log
      • Config file
      • Editable files
    • tgiann-weapons-on-back
      • Config file
      • Editable files
    • tgiann-sellnpc
      • Config file
    • tgiann-smokegrenade
      • Config file
    • tgiann-sounds
      • Example Usage
    • tgiann-stashhouse
      • Config file
      • Sql File
    • tgiann-statushud
    • tgiann-vehicleoutfit
      • Config file
      • Sql File
    • tgiann-vehicleradio
      • Config file
      • Event list
    • tgiann-vehicleshop
      • Config file
      • Sql File
    • tgiann-trade
      • Config file
      • Server editable.lua
      • Client editable.lua
    • tgiann-zombie
      • Config file
      • Client editable.lua
      • Server editable.lua
      • Common errors
    • tgiann-planting
      • Config file
      • Editable Files
    • tgiann-realistic-car-crash
      • Config file
      • Editable Files
    • tgiann-graphic-menu
      • Config file
      • Editable Files
    • tgiann-firefighterjob
      • Installation
      • Config file
      • Editable Files
    • tgiann-coinshop
      • Config file
      • Editable Files
    • tgiann-vehiclepaint
      • Config file
      • Setup
    • tgiann-drone
      • Config file
      • Editable Files
    • tgiann-musical-chairs
      • Config file
      • Editable Files
    • tgiann-pursuitmode
      • Config file
      • Editable Files
    • tgiann-food-jobs
      • Config file
      • Editable Files
      • Example Location Config
Powered by GitBook
On this page
  • Client/editable.lua
  • Server/editable.lua
  • Language File
  1. Scripts
  2. tgiann-animpos-photo-cam

Editable Files

Client/editable.lua

local rpemotesReborn = GetResourceState("rpemotes-reborn") ~= "missing"
local cdevEmoteMenu = GetResourceState("cdev_emotemenu") ~= "missing"
local rdAnimations = GetResourceState("rd-animations") ~= "missing"
local cylexAnimMenuV2 = GetResourceState("cylex_animmenuv2") ~= "missing"
local rAnimations = GetResourceState("r_animations") ~= "missing"

--- @return boolean, string @true, send error notification message
function editableCanOpenPhotoCam()
    return true, LANG.PHOTO_CAM_CANT_OPEN_MENU_EDITABLE
end

--- @return boolean, string @true, send error notification message
function editableCanOpenFreeCam()
    return true, LANG.FREE_CAM_CANT_OPEN_MENU_EDITABLE
end

--- @return boolean @true, if player is playing animation
function isPlayingAnim()
    if rpemotesReborn then
        return exports["rpemotes-reborn"]:IsPlayerInAnim()
    elseif cdevEmoteMenu then
        return exports["cdev_emotemenu"]:isAnimRunning()
    elseif rdAnimations then
        return exports["rd-animations"]:IsPlayingAnimation()
    elseif cylexAnimMenuV2 then
        return exports["cylex_animmenuv2"]:getCurrentEmote()
    elseif rAnimations then
        return exports['r_animations']:IsPlayingAnimation()
    else
        print("There is no emote menu resource found. Script work without emote menu.")
        return true
    end
end

function onAnimPosOpen()
    -- Your code here
end

function onAnimPosClose()
    -- Your code here
end

function onPhotoCamOpen()
    -- Your code here
end

function onPhotoCamClose()
    -- Your code here
end

function onFreeCamOpen()
    TriggerEvent("tgiann-lumihud:ui", false)
end

function onFreeCamClose()
    TriggerEvent("tgiann-lumihud:ui", true)
end

Server/editable.lua

if config.framework then
    if config.animPos.command.active and config.animPos.active then
        tgiCore.CommandsAdd(config.animPos.command.name, LANG.ANIM_POS_COMMAND_DESC, {}, false, function(source, args)
            TriggerClientEvent("tgiann-core:animPos:open", source)
        end)
    end

    if config.photoCam.command.active and config.photoCam.active then
        tgiCore.CommandsAdd(config.photoCam.command.name, LANG.PHOTO_CAM_COMMAND_DESC, {}, false, function(source, args)
            TriggerClientEvent("tgiann-core:photoCam:open", source)
        end)
    end

    if config.photoCam.item.active then
        tgiCore.CreateUseableItem(config.photoCam.item.name, function(source, item)
            TriggerClientEvent("tgiann-core:photoCam:open", source)
        end)
    end
else
    --- Standolone
    if config.animPos.command.active and config.animPos.active then
        RegisterCommand(config.animPos.command.name, function(source, args)
            TriggerClientEvent("tgiann-core:animPos:open", source)
        end)
    end

    if config.photoCam.command.active and config.photoCam.active then
        RegisterCommand(config.photoCam.command.name, function(source, args)
            TriggerClientEvent("tgiann-core:photoCam:open", source)
        end)
    end
end

Language File

config.langs.en = {
    ANIM_POS_COMMAND_DESC = "Set the animation position",
    ANIM_POS_DONE = "Confirm",
    ANIM_POS_CANCEL = "Cancel",
    NOT_PLAYING_ANIM = "You are not in an animation, so you can't set the animation position!",
    ANIM_POS_CANT_USE_IN_VEH = "You can't use animation position settings while in a vehicle!",
    ANIM_POS_CAM_HEAD_TEXT = "Adjusting Animation Position",
    ---
    PHOTO_CAM_COMMAND_DESC = "Open the photo capture menu",
    PHOTO_CAM_CANT_OPEN_MENU_EDITABLE = "You can't use the menu right now!",
    PHOTO_CAM_CANT_OPEN_DAMAGED = "You can't open the menu for a while because you have taken or dealt damage!",
    PHOTO_CAM_CANT_OPEN_WEAPON = "You can't open the menu while holding a weapon",
    PHOTO_CAM_SCREENSHOT_TAKEN = "Photo captured successfully! URL copied",
    PHOTO_CAM_HEAD_TEXT = "Taking a Photo",
    PHOTO_CAM_NEED_POLAROID_ITEM = "You need a %s item to take a photo!",
    PHOTO_CAM_ERROR = "An error occurred while taking the photo!",
    ---
    FREE_CAM_KEY_DESC = "Free camera mode / hold to use",
    FREE_CAM_HEAD_TEXT = "In free camera mode",
    FREE_CAM_CANT_OPEN_MENU_EDITABLE = "You can't use free camera right now!",
    FREE_CAM_CANT_OPEN_DAMAGED = "You can't use free camera for a certain time after taking or dealing damage!",
    FREE_CAM_CANT_OPEN_WEAPON = "You can't use free camera while holding a weapon",
    ---
    UI_SHOT = "Take Photo",
    UI_SHOT_POLAROID = "Save Polaroid",
    UI_HIDE_INTERFACE = "Hide Interface",
    UI_CLOSE = "<b>ESC</b> to close",
    UI_HEADER = "PHOTOCAM",
    UI_HEADER_DESC = "Capture professional-looking photos with different effects and settings. Add style to your frames with lighting, color tones, and special filter options!",
    UI_MOVE = "Hold Left to Move",
    UI_ROTATE = "Hold Right to Rotate",
    UI_ZOOM = "Scroll Wheel to Zoom In/Out",
    UI_CAM_MOVE = "W, A, S, D for Camera Movement",
    UI_MENU_EFFECT = "Effects",
    UI_MENU_LIGHT = "Lighting",
    UI_SETTING_VIGNETTE = "Vignette",
    UI_SETTING_VIGNETTE_DESC = "Add a nostalgic and artistic touch to your photos! Highlight the focus point with slight darkening on the edges and create a sense of depth.",
    UI_SETTING_SCREEN_FILTER = "Filter",
    UI_SETTING_SCREEN_FILTER_DESC = "Add different color tones and effects to your screen to give your captures a unique atmosphere. Change colors and reflect your style with visual effects!",
    UI_SETTING_DOF = "Depth Blur",
    UI_SETTING_DOF_DESC = "Blur areas outside the focus point to create a professional depth effect. Achieve clarity and aesthetic balance in your visuals!",
    UI_SETTING_DOF_STRENGTH = "Depth Blur Strength",
    UI_SETTING_DOF_STRENGTH_DESC = "Adjust the level of blur to highlight the focus point and create the desired depth effect in your scene. Add a professional touch to your visuals!",
    UI_SETTING_LIGHT = "Light {0}",
    UI_SETTING_LIGHT_DESC = "Control the lights in the scene to create the desired lighting ambiance. Turn the lights on or off to shape the atmosphere of your captures!",
    UI_SETTING_LIGHT_HEIGHT = "Light Height (Light {0})",
    UI_SETTING_LIGHT_HEIGHT_DESC = "Adjust the height of the light source to add a different atmosphere to your scene.",
    UI_SETTING_LIGHT_BRIGHTNESS = "Light Brightness (Light {0})",
    UI_SETTING_LIGHT_BRIGHTNESS_DESC = "Adjust the brightness of the light source to add a different atmosphere to your scene.",
    UI_SETTING_LIGHT_POSITION_LEFT_RIGHT = "Light Position - Left, Right (Light {0})",
    UI_SETTING_LIGHT_POSITION_LEFT_RIGHT_DESC = "Move the light left or right to adjust the lighting in the scene as you wish. Shaping the atmosphere of the environment is now in your hands!",
    UI_SETTING_LIGHT_POSITION_FORWARD_BACK = "Light Position - Forward, Back (Light {0})",
    UI_SETTING_LIGHT_POSITION_FORWARD_BACK_DESC = "Move the light forward or backward to adjust the lighting in the scene as you wish. Shaping the atmosphere of the environment is now in your hands!",
    UI_SETTING_LIGHT_COLOR = "Light Color (Light {0})",
    UI_SETTING_LIGHT_COLOR_DESC = "Adjust the light's color to create the desired lighting atmosphere in your scene. The atmosphere is now yours to shape!",
}
Previoustgiann-animpos-photo-camNextConfig File

Last updated 21 days ago