[FREE][ESX] AP GARAGE | (Search Features, Custom Vehicle Name, Transfer Vehicle Key, Transfer Vehicle) Full Working Features!

ap_garage

AP GARAGE - PUBLIC, PRIVATE AND JOB GARAGE


Perview Youtube


DEPENDENCIES

IMAGE MENU

gambar
gambar
gambar
gambar
log

CONFIG

AP = {}
AP.ServerName = 'AP GARAGE' -- Title Notif and Discord Log
AP.Translate = 'en' -- Sorry, only this available 'en' and 'id'
AP.AccessType = 'textui' -- Available =  textui, radial, target. [DEFAULT = textui]
-- If you are using 'radial', you will need a qb-radialmenu that has been converted to ESX, Maybe I'll share later :)


-- ########### TEXT UI ###########
AP.TextUIPos = 'right-center' -- Available = 'right-center' or 'left-center' or 'top-center' [DEFAULT = 'right-center']
AP.TextUIColor = '#f06595' -- Change color in here : https://www.rapidtables.com/web/color/RGB_Color.html [DEFAULT = '#48BB78']
AP.TextUIColorText = 'black' -- Recommended, 'white' and 'black' [DEFAULT = 'black']

-- ########### FEATURE ###########
AP.CopyPlate = true -- Displays copy plate menu in the garage manu (false = Hide Menu). [DEFAULT = true]
AP.CustomName = true -- Displays Custom Vehicle Name menu on a garage menu (false = Hide Menu). [DEFAULT = true]
AP.SearchFeature = true -- Displays the search menu above itself in the garage menu (false = Hide Menu). [DEFAULT = true]
AP.SelectPayment = true -- Select garage payment before the vehicle is released (false = Pay directly with cash). [DEFAULT = true]
AP.TransferKey = true -- Displays transfer Key menu in garage menu (false = Hide Menu). [DEFAULT = true]
AP.UseTaxTransfer = true -- Provides taxes to Players who transfer vehicles (false = Not subject to tax). [DEFAULT = true]
AP.TransferVeh = true -- Displays transfer vehicle menu in garage menu (false = Hide Menu). [DEFAULT = true]
AP.SplitBlipsName = false -- true = name of the garage label will be separate in map according to the label you created. [DEFAULT = false]
AP.AutoTeleportToVehicle = true -- automatically get on the vehicle (false = Vehicle will spawn at the location provided). [DEFAULT = true]

-- ########### VEHICLE IMAGE IN MENU ###########
AP.ShowImageInMenu = true -- Displays vehicle image in menu (false = Hide image). [DEFAULT = true]
AP.NullImageVeh = 'https://www.pngitem.com/pimgs/m/53-534462_car-icons-pdf-car-icon-pdf-hd-png.png' -- If the vehicle does not have an image, then this image will be a replacement, change it to your taste, or better use your server logo

-- ########### FINANCE ###########
AP.FeeCustomName = 10 -- * AP.VehicleFee (Payment for changing a vehicle's name is multiplied depending on the class of the vehicle) [DEFAULT = 10]
AP.FeeResetName = 20 -- * AP.VehicleFee (Payment for changing a vehicle's name is multiplied depending on the class of the vehicle) [DEFAULT = 20]
AP.TaxTransferVeh = 500 -- * AP.VehicleFee (Payment for changing a vehicle's name is multiplied depending on the class of the vehicle) [DEFAULT = 500]
AP.PayWith = 'money' -- [money or bank] Works if (AP.SelectPayment = false) . [DEFAULT = money]

-- ########### KEY ###########
AP.KeyLock = 'G' -- To lock or unlock vehicle. [DEFAULT = G]
AP.AutoLock = true -- false = The first time the vehicle is released, it will not lock automatically. [DEFAULT = true]
AP.KeyFeature = true -- false = Turns off the keylock feature. [DEFAULT = true]
AP.LockCommand = 'lock_vehicle' -- Command for key lock. [DEFAULT = 'lock_vehicle']

-- ########### ANCHOR ###########
AP.KeyAnchor = 'X' -- To Lifting / Installing Boat Anchors. [DEFAULT = X]
AP.AnchorFeature = true -- false = Turns off the anchor feature on the boat. [DEFAULT = true]
AP.AnchorCommand = 'anchor' -- Command for Lifting / Installing Boat Anchors. [DEFAULT = 'anchor']

AP.RadiusGarage_Impound = 3.0 -- Only works when you set textui or radial. [DEFAULT = 3.0]
AP.RadiusSave_Garage = 5.0 -- Only works when you set textui or radial. [DEFAULT = 5.0]
AP.UseLogData = false -- Sending logs TRANSFER VEHICLE, TRANSFER KEY, DELETE KEY, CHANGE VEHICLE NAME AND RESET VEHICLE NAME (false = Turns off discord log). [DEFAULT = false]
AP.Webhook = 'WEBHOOK_HERE' -- Discord Webhook


-- ########### PED GARAGE AND IMPOUND ########### Change Ped in here : https://docs.fivem.net/docs/game-references/ped-models/
AP.PedsGarage = {
    'cs_floyd', -- GARAGE
    's_m_m_dockwork_01' -- IMPOUND
}

-- ########### BLIPS ###########
AP.Blips = {
    Garages = {
        aircraft = {Sprite = 359, Colour = 38, Display = 2, Scale = 0.6},
        car = {Sprite = 357, Colour = 38, Display = 2, Scale = 0.6},
        boats = {Sprite = 356, Colour = 38, Display = 2, Scale = 0.6}

    },
    Impounds = {
        aircraft = {Sprite = 359, Colour = 66, Display = 2, Scale = 0.6},
        car = {Sprite = 357, Colour = 66, Display = 2, Scale = 0.6},
        boats = {Sprite = 356, Colour = 66, Display = 2, Scale = 0.6}
    }
}

-- ########### GARAGE ###########
AP.Garages = {
    OlympicFreeway = { -- Garage key to be insert into [parking] database.
        Label = 'Olympic Freeway Garage', -- Label that will appear in MENU, TARGET, TEXT UI or RADIAL MENU
        Type = 'car', -- Only Works 'car', 'aircraft' and 'boats'
        Blip = true, -- Show / Hide BLIPS in map
        NotFree = true, -- false = Free
        Coords = vector4(357.1, -1169.24, 29.29, 3.6), -- Location for PED, BLIPS and access garage
        Players = { -- PRIVATE GARAGE (Leave this if you want to make this a PUBLIC GARAGE)
            -- Example If Using License: {'1234567890xxxxxxxxxxx'} or {'steam:xxxxxxxxxxxx'}
        },
        Groups = { -- JOB GARAGE (Leave this if you want to make this a PUBLIC GARAGE)
            -- Example : {'police'}, {'ambulance'}, {'mechanic'}
        },
        SpawnPoint = { -- Spawn Vehicle Point
            {Pos = vector4(359.92, -1162.78, 28.29, 82.15)},
            {Pos = vector4(359.71, -1159.58, 28.29, 97.18)},
            {Pos = vector4(359.65, -1156.63, 28.29, 90.36)},
            {Pos = vector4(359.41, -1153.69, 28.29, 91.6)},
            {Pos = vector4(346.28, -1153.9, 28.29, 271.53)},
            {Pos = vector4(346.65, -1156.84, 28.29, 272.7)},
            {Pos = vector4(346.56, -1159.99, 28.29, 278.4)},
            {Pos = vector4(346.69, -1162.9, 28.29, 273.56)},
            {Pos = vector4(346.77, -1165.87, 28.29, 272.27)},
        },
        DeletePoint = { -- Delete Vehicle Point
            {Pos = vector3(353.83, -1159.26, 29.29)}
        }
    }
}

-- ########### IMPOUND ###########
AP.Impound = {
    SandyShores = {  -- Impound key to be insert into [parking] database.
        Label = 'Impound Olympic Freeway', -- Label that will appear in MENU, TARGET, TEXT UI or RADIAL MENU
        Type = 'car', -- Only Works 'car', 'aircraft' and 'boats'
        IsDefaultImpound = true, -- When Resource starts, the vehicle will enter this impound
        Blip = true, -- Show / Hide BLIPS in map
        NotFree = true, -- false = Free
        Coords = vector4(334.4, -1168.42, 29.34, 1.97), -- Location for PED, BLIPS and access impound
        SpawnPoint = { -- Location Spawn Vehicle
            {Pos = vector4(331.99, -1161.73, 29.29, 3.95)}, -- Add a spawn location here, change the coordinates
            -- {Pos = vector4(258.5054, 2590.7029, 44.4424, 10.3867)}, -- Add a spawn location here, change the coordinates
            -- {Pos = vector4(258.5054, 2590.7029, 44.4424, 10.3867)}, -- Add a spawn location here, change the coordinates
            -- {Pos = vector4(258.5054, 2590.7029, 44.4424, 10.3867)}, -- Add a spawn location here, change the coordinates
            -- {Pos = vector4(258.5054, 2590.7029, 44.4424, 10.3867)}, -- Add a spawn location here, change the coordinates
        }
    }
}

:warning:DOWNLOAD FREE:warning:

Download Github

:arrow_down: Check my other released scripts :arrow_down:

Job center with garage

Simple Starter Pack

Code is accessible Yes
Requirements Requirements
Support No
12 Likes

Does this have livery and extra option for job garages?

1 Like

Just wait for the next update :smiley:

1 Like

how do you change the color of ox lib to pink?

1 Like

Read the ox_lib DEPENDENCIES above

I suppose by rebuilding the UI with edited colors?

1 Like

No, just enter color, check in the ox document

add support for qbcore :slight_smile:

1 Like

Wait bro, I’m still learning :slight_smile:

Are you going to support ox radial menu so its not only qbcore radialmenu but also the one from overextended?

if the player dont have any vehicle in owned_vehicles table the script is not working

Does an error appear on client side / server side?
try sharing the picture

No the player just face towards the npc and just is stuck their.

1 Like

cancel the emot with the script you have, usually /hu or X. after that it’s safe :slight_smile:

if I use use key X im still freezed

Hello i find a problem. when you create multiple car impounds u can get your can only from one random impound and not from all the impounds

1 Like

Yes, normally that’s how it is :slight_smile:
And this is very good for roleplay

Hi, is it possible to turn off impounds?

1 Like

Sorry can not :smiley:

was no ownedvehicles in owned_vehicles table fixed?