1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/fh_detailer/config.lua
2025-07-09 15:19:44 +02:00

117 lines
9.5 KiB
Lua

Config = {} -- If you have questions, join our discord https://discord.gg/p7wvZRnWcH or write in the cfx forum post.
Config.qbtarget = true -- If set to false this script will use ox_target
Config.FrameworkName = 'qb-core'
Config.RangeLimit = 8.0 -- How close you need to be to the bucket to perform waxing and cleaning tasks
Config.Volume = 0.90 -- Volume of the sound effects
Config.SoundRange = 6 -- How far you can be away and still hear the sound.
Config.SoundFiles = 3 -- The Nummber of random soundfiles for the washing effect. You may add more but have to declare them in the fxmanifest.lua
-- Progress Bar --
-- We highly recommend using the progress bar. It looks clean and shows most notifications the script needs in one spot.
Config.ProgressBar = true -- Wether you want to use the progress bar
Config.HideBarAfter = 5 -- After how many seconds without interaction the progressbar should be hidden.
Config.ProgressColor = '#4eb3de' -- Here you can edit the progress color to your likings. https://g.co/kgs/qpnR1M
Config.FinishedColor = '#4ede83' -- Here you can edit the finished color to your likings. https://g.co/kgs/qpnR1M
Config.InfoColor = '#ede174' -- Here you can edit the color for the wax notification to your likings. https://g.co/kgs/qpnR1M
Config.WrongColor = '#eb584d' -- Here you can edit the color for the wrong action to your likings. https://g.co/kgs/qpnR1M
Config.EnableCommand = true -- Enable /cardirt command for testing
Config.StepMessage = false -- Enable if you want to have the messages shown when a step is completed or in wrong order
Config.UseMissiontext = false -- If false the script uses notifications from notifications.lua if true uses the "mission-passed-style text"
Config.TextTimer = 0.7 -- How long these messages should be shown
Config.EffectRange = 50.0 -- From how far the particle effects of the washing can be seen. If too high might bring 'Object does not exist' warnings for players.
Config.JobRestriction = true -- If you want the cleaning and waxing be restricted to jobs
Config.AllowedJobs = {["detailer"] = 0, ["bennys"] = 0, ["mechanic"] = 0} -- Here you can put the jobs that are allowed to clean and wax the cars
-- Wash Options
Config.InteractDistance = 2.5 -- How close you need to be to pick up a bucket
Config.BucketModel = 'prop_cleaning_trolly' -- The bucket model (hash) that should spawn and be interactive https://forge.plebmasters.de/objects/prop_cs_mopbucket_01
Config.WashDistance = 2.0 -- From how far away you can get the target option to wash a vehicle (might need to be higher for big trucks etc.)
Config.HandwashDuration = 10 -- How long in seconds one instance of handwashing is
Config.CleaningFactor = 0.5 -- How much dirt should be washed off the car per second when using the sponge. (Maximum car dirtyness in GTA is 15.0)
Config.CleanCooldown = 120 -- How long a vehicle can be left aside until you need to start the cleaning over again (default 120 seconds)
Config.CleanEffect = 30 -- How long (in minutes) the car should be kept clean after the wash (no wax)
Config.SpongeCleaningIncrement = 30 -- The higher the number the faster this stage of cleaning is done. (sponging) Default: 0.15
-- Hose Options
Config.HoseDB = true -- If you want to use in-game placed hoses. You need to create hose_list table in your database.
Config.InteractDistance2 = 2.5 -- How close you need to be to pick up a hose
Config.HoseModel = 'prop_hose_3' -- The model (hash) where you can pick up the hose https://forge.plebmasters.de/objects/prop_hose_3
Config.HoseLength = 10.0 -- How far you can pull the hose
Config.FoamCleaningFactor = 0.0 -- How much the foaming should actually clean the car per second (if unwanted set to 0)
Config.RinseCleaningFactor = 0.0 -- How much the rinsing should actually clean the car per second (if unwanted set to 0)
Config.HoseCleaningIncrement = 10 -- How long (in seconds) you need to spray foam or rinse the car (default 10)
Config.SameSpotWarning = true -- If the player should be noticed about cleaning the same spot (not moving while spraying)
Config.SameSpotNotificationTime = 1 -- After how many seconds the player should be noticed that he is cleaning only one spot
Config.sprayTypes = {}
--Config.sprayTypes[1] = {fxDict = 'scr_xs_celebration', fxName = 'scr_xs_champagne_spray', fxRotation = vector3(0.0, 90.0, 0.0), sound1 = "fh_detailer_foam1", sound2 = "fh_detailer_foam2"}
--Config.sprayTypes[2] = {fxDict = 'core', fxName = 'water_cannon_jet', fxRotation = vector3(0.0, 0.0, -90.0), sound = nil}
Config.sprayTypes[1] = {fxDict = 'scr_carwash', fxName = 'ent_amb_car_wash_jet_soap', fxRotation = vector3(0.0, 90.0, 0.0), sound1 = "fh_detailer_foam1", sound2 = "fh_detailer_foam2"}
Config.sprayTypes[2] = {fxDict = 'scr_carwash', fxName = 'ent_amb_car_wash_jet', fxRotation = vector3(0.0, 90.0, 0.0), sound1 = "fh_detailer_rinse1", sound2 = "fh_detailer_rinse2"}
-- Wax Options
Config.WaxDuration = 25 -- How long (in seconds) it should take to apply wax
Config.WaxEffect = 120 -- How long (in minues) the car is protected from dirt after using the wax
Config.WaxLocationRestriction = true -- If the wax should only be applyable near a car wash station
Config.NeedWax = true -- True if the player should need the wax-item to apply it
Config.WaxConsume = true -- If you want the wax-item to be consumed
Config.WaxName = 'car_wax' -- The name of the wax in your items table
Config.Interval = 10 -- How often in seconds should the wax check if the car has gotten dirty and if so lose the dirt. More time = less resmon.
-- Hose Placement
-- If you don't want to use this just don't use the hose_reel item.
Config.HoseInstallJob = true -- If only person with certain jobs can install hoses. false = everybody can
Config.HoseInstaller = {["admin"] = 0, ["mechanic"] = 3} -- Jobs that are allowed to place a hose if Config.HoseInstallJob = true
Config.HoseConsume = true -- Wether the hose reel should be deducted from the players inventory after placing it
Config.HosePersistent = true
-- Second hose
Config.HoseInstallJob2 = false -- If you need a certain job to place this hose. false = everybody can
Config.HoseInstaller2 = {["admin"] = 0, ["mechanic"] = 1} -- If you enable Config.HoseInstallJob2 these are the jobs that can place one
Config.HoseModel2 = 'prop_hose_1' -- The model for the second hose
Config.Hose2Persistent = false -- If the placed hose should spawn again after server restart
Config.InHandPosition2 = vector3(0.0, 0.0, -0.5) -- If you are using a diffrent model for the hose you might need to adjust these. These are for the position while carrying the hose.
Config.InHandRotation2 = vector3(15.0, 0.0, 180.0) -- If you are using a diffrent model for the hose you might need to adjust these. These are for the rotation while carrying the hose.
-- Inventory Buckets
Config.PersistentBucket = true -- If false the bucket only stays until server restart
Config.BucketPlaceJob = true -- If only person with certain jobs can install buckets or use them. false = everybody can
Config.BucketPlacer = {'mechanic'} -- Jobs that are allowed to place a bucket if Config.BucketPlaceJob = true
Config.BucketConsume = true -- If true the bucket will be deducted from the inventory on use
Config.InHandPosition = vector3(0.0, 0.0, 0.0) -- If you are using a diffrent model for the hose you might need to adjust these. These are for the position while carrying the hose.
Config.InHandRotation = vector3(195.0, 0.0, 0.0) -- If you are using a diffrent model for the hose you might need to adjust these. These are for the rotation while carrying the hose.
Config.BucketPlaceJob2 = false -- If you need a certain job for placing/using the second (public?) bucket
Config.BucketPlacer = {'mechanic'} -- The jobs you need if you need a job
Config.PlaceBucket2 = false -- If true you place a bucket on the ground which can be interacted with multiple times. If false you just get the bucket into your hands temporary.
Config.PersistentBucket2 = false -- If true the bucket will spawn again after server restart. If false it will be deleted on restart.
Config.BucketModel2 = 'prop_cs_bucket_s' -- The model for the second bucket if you choose to place it on the ground.
-- System
Config.DeleteRunOuts = true -- If true it deletes run out wax effects from the database to keep it clean
Config.DeleteRunOutsInterval = 30 -- How often the cleansing of run out wax-entries should take place (default: every 30 min)
Config.SpawnDelay = 10 -- How long (in seconds) after the first player connects the props should spawn
Config.Locations = {
vector4(173.88, -1716.98, 29.38-0.98, 53.85), --Location 1
vector4(168.27, -1712.62, 29.27-0.98, 240.94), --Location 2
vector4(171.96, -1739.85, 29.27-0.98, 238.11),
vector4(31.160442, -1405.068115, 28.33, 212.598419)
}
--If it is more convenient for you, you can delete all entries from Config.HoseLocation and place them in-game (you need to create hose_list table in your database)
Config.HoseLocations = {
vector4(175.02, -1740.38, 29.48, 180.00), --Location 1
vector4(174.165, -1716.62, 29.29, 228.18),
vector4(33.87, -1404.00, 29.33, 0),
vector4(39.784618, -1405.898926, 29.347290, 272.125977)
}