Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Lib = 'phade_lib' -- phade_lib, or sd_lib if you are already using some of samuels scripts
- -- General Settings..
- Config.YachtDebug = false -- Change to true to enable PolyZone DebugPoly's for testing.
- Config.MinimumCops = 0 -- How many on duty police required to start
- Config.PoliceJobNames = {
- [1] = {
- job = 'police'
- },
- --[2] = {
- -- job = 'bcso' --If you have multiple police jobs, just uncomment this, and follow the same pattern,
- --},
- --[3] = {
- -- job = 'sasp' --If you have multiple police jobs, just uncomment this, and follow the same pattern,
- --},
- }
- -- Police alert
- RegisterNetEvent('phade-yachtheist:client:AlertOnEnter', function()
- -- exports['ps-dispatch']:YachtRobbery() -- Project-SLoth qb-dispatch
- -- TriggerServerEvent('police:server:policeAlert', 'Yacht Robbery') -- Regular qbcore
- -- These are just examples, you'll have to implement your own police alert system!
- end)
- Config.Cooldown = 180 -- minutes
- Config.ResetYachtOnLeave = false -- if true, the yacht and the cooldown (therefore everything else) will reset, if the code hasn't been input yet and nobody is inside the Polyzone whilst the cooldown is active! (This is to avoid, people starting the robbery, then retreating and locking the yacht for everyone else without ever actually starting the 'robbery' section, till the cooldown is finished)
- -- if false, the cooldown will count down as normal, regardless if the codes have been input.
- Config.FinalItems = {'casinocodes'} -- These are the items you will recieve for completing the heist
- Config.PasswordAttempts = 2 -- How many tries you get to enter the final password before failing the heist
- Config.AlertPoliceOnEnter = false -- true = will alert police when someone enters the zone, false = won't do anything..
- Config.GiveHints = false -- true = gives you hints on what to do, false = have fun finding out how to do the robbery..
- Config.NotifyOfExplosion = true -- true will Notify users if the pressure has dropped low enough.. false will do nothing
- Config.PressureToExplode = 0 -- The pressure will cause the yacht to explode if it gets to or below this number
- Config.ForceAnimation = true -- if true, the player will be forced into an animation, holding certain items
- Config.SendToBeachOnSpawn = true -- TRUE = If the player spawns in at the yacht, it will send them to the beach, false = will do nothing (This is to avoid people exploting by logging and then spawning back on the Yacht at a later time)
- Config.WashUpOnBeach = true -- Wash up on Beach after completing the heist (true = yes, false = no)
- Config.SendBackOnReset = true -- True = You want players to be "wash up on the beach" if they are in the yacht area when the cooldown resets, False = You want nothing to happen to them
- Config.UsingReviveKits = true -- If you want to Revivekits to work then set to true, if you don't want them to have a function, set to false..
- Config.EnableGuards = true -- Enable NPC Guards for Yacht
- Config.RobGuards = true -- true = Lets you third eye the guards to loot them, false = no looting dead guards
- Config.GuardModel = 'mp_m_bogdangoon' --'s_m_y_marine_01' -- The ped model the guards will use
- -- Hacking Settings for the First Symbol
- Config.MainMinigame = 'hacking' -- hacking/mhacking/ps-ui
- if Config.MainMinigame == 'ps-ui' then
- Config.MainBlocks = 4 -- The amount of blocks
- Config.MainTime = 9 -- The amount of time you have to complete the minigame.
- elseif Config.MainMinigame == 'hacking' then
- Config.YachtTime = 10 -- How much time do they have to enter the hack?
- Config.YachtBlocks = 4 -- How many different blocks can the hack have?
- Config.YachtRepeat = 2 -- How many times in a row do they need to hack the system?
- elseif Config.MainMinigame == 'mhacking' then
- Config.MinChar = "3" -- Characters Minimum
- Config.MaxChar = "5" -- Characters Maximum
- Config.Time = "15" -- Time
- end
- Config.SecondaryMinigame = 'hacking' -- ps-ui/memorygame -- Minigames for the (1st if set to ps-ui) 2nd, 3rd and 4th symbol
- if Config.SecondaryMinigame == 'ps-ui' then
- Config.Blocks = 4 -- The amount of blocks
- Config.Time = 9 -- The amount of time you have to complete the minigame.
- elseif Config.SecondaryMinigame == 'memorygame' then
- Config.Blocks = "12" -- Number of correct blocks the player needs to click
- Config.Attempts = "3" -- Number of incorrect blocks after which the game will fail
- Config.Show = "6" -- Time in secs for which the right blocks will be shown
- Config.Time = "45" -- Maximum time after timetoshow expires for player to select the right blocks
- elseif Config.SecondaryMinigame == 'hacking' then
- Config.YachtTime_Two = 10 -- How much time do they have to enter the hack?
- Config.YachtBlocks_Two = 4 -- How many different blocks can the hack have?
- Config.YachtRepeat_Two = 2 -- How many times in a row do they need to hack the system?
- end
- -- How many Attemps you have before failing the heist.
- Config.HackAttempts_1 = 3 -- Attempts
- Config.HackAttempts_2 = 3 -- Attempts
- Config.HackAttempts_3 = 3 -- Attempts
- Config.HackAttempts_4 = 3 -- Attempts
- -- Rewards from Looting Peds
- Config.PistolRewards = {
- "weapon_heavypistol",
- "weapon_pistol",
- "weapon_pistol_mk2"
- }
- Config.RareRewards = {
- "weapon_assaultrifle",
- "weapon_compactrifle",
- "weapon_mg",
- }
- Config.SMGRewards = {
- "weapon_assaultsmg",
- "weapon_minismg",
- "weapon_combatpdw",
- }
- Config.ShotgunRewards = {
- "weapon_sawnoffshotgun",
- "weapon_pumpshotgun",
- "weapon_dbshotgun",
- }
- Config.AmmoRewards = {
- "pistol_ammo",
- "shotgun_ammo",
- "rifle_ammo",
- "smg_ammo",
- }
- Config.MedicRewards = {
- "bandage",
- "reskit",
- }
- -- Settings for the Puzzle -- Please don't mess with it, if you don't understand what you're doing..
- Config.Puzzle = {
- [1] = {
- screens = false,
- },
- [2] = {
- one = false,
- },
- [3] = {
- two = false,
- },
- [4] = {
- three = false,
- },
- [5] = {
- four = false,
- },
- [6] = {
- pressure = 100,
- },
- [7] = {
- bricked = false,
- },
- [8] = {
- word = math.random(1, 4),
- },
- [9] = {
- button = false,
- },
- [10] = {
- vault = false,
- },
- [11] = {
- case = false,
- },
- [12] = {
- codes = false,
- },
- }
- Config.BeachWashupLocation = vector4(-1839.39, -885.44, 1.68, 117.33) -- Where you wash up on the beach after completing the heist
- Config.ScreenLocation_One = vector3(-2086.77, -1019.86, 12.93) -- The location of where the 1st screen is
- Config.ScreenLocation_Two = vector3(-2086.66, -1017.5, 13.0) -- The location of where the 2nd screen is
- Config.ScreenLocation_Three = vector3(-2085.31, -1015.74, 12.87) -- The location of where the 3rd screen is
- Config.UseDataCrack = true -- If you want to use the data crack hack with the screens
- Config.PuzzleStartLocation = vector3(-2029.52, -1033.62, 3.0) -- The location of where the puzzle gets started
- Config.PressureValveLocation = vector3(-2063.6, -1025.01, 2.6) -- The location of where you increase / decrease the pressure
- Config.PressureValveLocation_Two = vector3(-2052.57, -1032.55, 3.39) -- The second location of where you increase / decrease the pressure
- Config.CheckPressureLocation = vector3(-2068.92, -1023.55, 3.2) -- The location to check the pressure
- Config.AttemptPasswordLocation = vector4(-2074.1, -1024.5, 11.92, 251.28) -- The location to input the final code
- Config.RedButtonLocation = vector3(-2030.78, -1037.69, 3.1) -- The location to start the engine once the first half of the codes are input
- Config.EnterVaultLocation = vector3(-2071.36, -1018.63, 3.44) -- The location to enter the vault once its open
- Config.ExitVaultLocation = vector3(-2072.83, -1018.49, 2.92) -- The location to exit the vault once its open
- Config.EnterVaultPlayerCoords = vector4(-2072.94, -1018.59, 1.66, 72.14) -- The location to teleport the player to when entering
- Config.ExitVaultPlayerCoords = vector4(-2071.04, -1018.72, 2.05, 246.56) -- The location to teleport the player to when exiting
- Config.FinalBriefcaseLocation = vector4(-2074.31, -1018.11, 2.11, 72.12) -- The location of the briefcase inside the vault
- -- Hacking Locations for Password..
- Config.HackLocation_1 = vector3(-2079.38, -1015.88, 5.91)
- Config.HackLocation_2 = vector3(-2081.64, -1022.54, 8.78)
- Config.HackLocation_3 = vector3(-2072.3, -1019.0, 11.82)
- Config.HackLocation_4 = vector3(-2072.3, -1021.66, 2.99)
- Config.YachtCodesFirstHalf = "[21-65-31" -- The first half of the codes for yacht heist, or for dynamic version uncomment the one below (will change every restart)
- --Config.YachtCodesFirstHalf = tostring(math.random(10, 99).."-"..tostring(math.random(10, 99).."-"..tostring(math.random(10, 99)))
- Config.CasinoCodesFirstHalf = "[Z892-25B6-14R4-" -- The first half of the codes for yacht heist, or for dynamic version uncomment the one below
- Config.ScreenLocationCenter = vector3(-2055.88, -1027.57, 4.28)-- The center of all the screen symbols
- Config.ScreenPoints = { -- The locations and text for the 4 screens
- [1] = {
- coords = vector3(-2056.33032, -1028.51733, 3.16481071),
- url = '',
- },
- [2] = {
- coords = vector3(-2056.10645, -1027.82825, 3.16481071),
- url = '',
- },
- [3] = {
- coords = vector3(-2055.88232, -1027.13867, 3.16481071),
- url = '',
- },
- [4] = {
- coords = vector3(-2055.6582, -1026.44885, 3.16481071),
- url = '',
- },
- [5] = {
- coords = vector3(-2056.33032, -1028.51733, 2.66788249),
- url = '',
- },
- [6] = {
- coords = vector3(-2056.10645, -1027.82825, 2.66788249),
- url = '',
- },
- [7] = {
- coords = vector3(-2055.88232, -1027.13867, 2.66788249),
- url = '',
- },
- [8] = {
- coords = vector3(-2055.6582, -1026.44885, 2.66788249),
- url = '',
- },
- }
- -- Blip Settings
- Config.Blip = { -- Blip Settings
- Enable = false, -- Change to false to disable the Blip
- Location = vector3(-2031.6, -1038.13, 5.88), -- Change the blip coords here
- Sprite = 455,
- Display = 4,
- Scale = 0.6,
- Colour = 1,
- Name = "Secured Mega Yacht", --Change the name to your liking
- }
- Config.Items = {
- [1] = {
- model = 'prop_champ_01b',
- coords = vector4(-2093.58, -1015.22, 9.09, 63.29),
- item_name = 'expensive_champagne',
- item_label = 'Champagne',
- taken = false,
- networkID = 0,
- },
- [2] = {
- model = 'prop_champ_01b',
- coords = vector4(-2094.71, -1021.18, 8.85, 137.92),
- item_name = 'expensive_champagne',
- item_label = 'Champagne',
- taken = false,
- networkID = 0,
- },
- [3] = {
- model = 'prop_champ_01b',
- coords = vector4(-2097.4, -1017.0, 8.84, 97.6),
- item_name = 'expensive_champagne',
- item_label = 'Champagne',
- taken = false,
- networkID = 0,
- },
- [4] = {
- model = 'prop_champ_01b',
- coords = vector4(-2051.42, -1031.7, 8.90, 213.82),
- item_name = 'expensive_champagne',
- item_label = 'Champagne',
- taken = false,
- networkID = 0,
- },
- [5] = {
- model = 'p_watch_05',
- coords = vector4(-2070.54, -1021.0, 5.77, 161.66),
- item_name = 'rolex',
- item_label = 'Watch',
- taken = false,
- networkID = 0,
- },
- [6] = {
- model = 'p_watch_05',
- coords = vector4(-2050.21, -1032.42, 8.90, 140.04),
- item_name = 'rolex',
- item_label = 'Watch',
- taken = false,
- networkID = 0,
- },
- [7] = {
- model = 'prop_champ_01b',
- coords = vector4(-2085.0, -1021.99, 5.82, 165.17),
- item_name = 'expensive_champagne',
- item_label = 'Champagne',
- taken = false,
- networkID = 0,
- },
- [8] = {
- model = 'prop_ld_int_safe_01', -- The safe is slightly hardcoded
- coords = vector4(-2099.37, -1016.24, 4.8, 160.50),
- taken = false,
- networkID = 0,
- },
- }
- Config.Cabins = {
- [1] = {
- coords = vector4(-2050.86, -1024.12, 8.8, 335.89),
- isSearched = false,
- isBusy = false,
- animDic = 'veh@break_in@0h@p_m_one@',
- animName = 'low_force_entry_ds',
- ['items'] = {
- [1] = {
- item_name = 'rolex',
- item_amount = 1,
- },
- [2] = {
- item_name = 'rolex',
- item_amount = 2,
- },
- }
- },
- [2] = {
- coords = vector4(-2076.09, -1018.72, 8.95, 252.62),
- isSearched = false,
- isBusy = false,
- animDic = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
- animName = 'machinic_loop_mechandplayer',
- ['items'] = {
- [1] = {
- item_name = 'rolex',
- item_amount = 1,
- },
- [2] = {
- item_name = 'rolex',
- item_amount = 2,
- },
- }
- },
- [3] = {
- coords = vector4(-2089.83, -1009.79, 5.76, 70.23),
- isSearched = false,
- isBusy = false,
- animDic = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
- animName = 'machinic_loop_mechandplayer',
- ['items'] = {
- [1] = {
- item_name = 'rolex',
- item_amount = 1,
- },
- [2] = {
- item_name = 'rolex',
- item_amount = 2,
- },
- }
- },
- [4] = {
- coords = vector4(-2085.1, -1015.45, 9.07, 250.98),
- isSearched = false,
- isBusy = false,
- animDic = 'veh@break_in@0h@p_m_one@',
- animName = 'low_force_entry_ds',
- ['items'] = {
- [1] = {
- item_name = 'rolex',
- item_amount = 1,
- },
- [2] = {
- item_name = 'rolex',
- item_amount = 2,
- },
- }
- },
- [5] = {
- coords = vector4(-2071.62, -1024.08, 5.83, 254.6),
- isSearched = false,
- isBusy = false,
- animDic = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
- animName = 'machinic_loop_mechandplayer',
- ['items'] = {
- [1] = {
- item_name = 'rolex',
- item_amount = 1,
- },
- [2] = {
- item_name = 'rolex',
- item_amount = 2,
- },
- }
- },
- }
- Config.CashAndGoldTrays = {
- [1] = {
- coords = vector4(-2099.54, -1020.7, 5.38, 162.57),
- isSearched = false,
- model = 'h4_prop_h4_cash_stack_01a',
- tabel_model = 'prop_office_desk_01',
- min = 5000,
- max = 10000,
- },
- [2] = {
- coords = vector4(-2087.76, -1024.76, 5.38, 161.87),
- isSearched = false,
- model = 'h4_prop_h4_cash_stack_01a',
- tabel_model = 'prop_office_desk_01',
- min = 5000,
- max = 10000,
- },
- [3] = {
- coords = vector4(-2092.7, -1008.2, 4.88, 341.87),
- isSearched = false,
- model = 'h4_prop_h4_cash_stack_01a',
- tabel_model = 'prop_office_desk_01',
- min = 5000,
- max = 10000,
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement