Tebex [4.20€]: https://www.msk-scripts.de/
Images: https://imgur.com/a/PnGtQhI
Description
- Set as many Garages and Impounds as you want
- You can park in and park out a vehicle if you have a Key *[VehicleKeyChain required] [You can set it to false in config]*
- At the Impound you can set a Waypoint to your vehicle or you can transfer it to the Impound *[AdvancedParking required]*
- Set your own Notifications
- Set NPCs or Markers with 3D Text
- Support for okokTextUI and esx_textUI
- Set if you want park out vehicles where you parked it in or if you want to park out vehicles everywhere
- Set your own Fuel System *[default: LegacyFuel]*
- Set Jobs and Grades who can access the Garage or Impound
- Set if its a car, boat or air Garage *[default: all Categories]*
- You can set as many parkout Spots as you want
- Set the Blip you want or deactivate the Blip
Config
Code
Config = {}
----------------------------------------------------------------
Config.Locale = 'de' -- 'de', 'en'
Config.Debug = true
Config.VersionChecker = true
----------------------------------------------------------------
Config.Hotkey = 38 -- default: 38 = E // Change the Key in translation.lua too
Config.npcVoice = true -- The NPC will say something to you
Config.textUI = {
type = 'default', -- 'default', 'esx' or 'okok'
color = 'darkblue', -- Only for okokTextUI
position = 'left', -- Only for okokTextUI
esx = 'info' -- Only for esx_textUI
}
Config.MySQL = { -- Look at your owned_vehicles table and correct this
type = "type", -- vehicle type (car, boat, air)
job = "job",
stored = "stored",
}
Config.Parking = 'specific' -- 'all' = Park out every vehicle everywhere // 'specific' = Park out your vehicle where you parked it in.
Config.Distance = 20.0 -- The max distance to vehicles for parking in
-- With this Feature you can park in and park out Vehicles if you are not the owner but have a second key
-- Not working at Impounds only at Garages
Config.VehicleKeyChain = true -- Set to false if you dont want to use this // https://forum.cfx.re/t/release-vehicle-key-chain/3319563
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
-- Look for type == 'client' and type == 'server'
Config.Notification = function(src, type, xPlayer, message) -- xPlayer = ESX.GetPlayerFromId(src)
if type == 'client' then -- clientside
ESX.ShowNotification(message) -- replace this with your Notify // example: exports['okokNotify']:Alert('Crafting', message, 5000, 'info')
elseif type == 'server' then -- serverside
xPlayer.showNotification(message) -- replace this with your Notify // example: TriggerClientEvent('okokNotify:Alert', src, 'Crafting', message, 5000, 'info')
end
end
----------------------------------------------------------------
-- !!! This function is clientside ONLY !!!
Config.SetFuel = function(vehicle, fuel)
-- LegacyFuel
exports['LegacyFuel']:SetFuel(vehicle, fuel)
-- FiveM Native
-- SetVehicleFuelLevel(vehicle, fuel)
end
Config.GetFuel = function(vehicle)
-- LegacyFuel
return exports["LegacyFuel"]:GetFuel(vehicle)
-- FiveM Native
-- return GetVehicleFuelLevel(vehicle)
end
----------------------------------------------------------------
-- !!! This function is clientside ONLY !!!
Config.VehicleSpawned = function(vehicle, plate, fuel, props) -- This will be triggered when you spawn a vehicle, you can add extra events here.
-- Add your own code here.
end
Config.VehicleParked = function(vehicle, plate, fuel, props) -- This will be triggered after you have stored a vehicle, you can add extra events here.
-- Add your own code here.
end
----------------------------------------------------------------
Config.Impounds = {
["impound"] = {
label = 'Impound',
type = "all", -- "all", "car", "boat", "aircraft", "helicopter" // Look into you database for that
jobs = false, -- "police" or false to disable
grade = 0, -- default: 0 and all grades above
pedmodel = 'csb_trafficwarden', -- 'mp_m_shopkeep_01' or false to use a Marker instead
text3d = {enable = true, label = '~g~Open Impound', size = 0.8},
marker = {enable = true, type = 27, size = {a = 1.0, b = 1.0, c = 1.0}, color = {a = 255, b = 255, c = 255}},
blip = {enable = true, id = 524, color = 5, scale = 0.8},
locations = { -- Only for NPC and Marker
{x = -2129.4, y = 2833.66, z = 32.81, h = 2.15},
},
park_dist = 5.0, -- Distance between Parkout Spots // Don't change this if you don't know what this is
park_out = { -- You can set multiple locations
{x = -2123.89, y = 2834.6, z = 32.81, h = 5.71},
{x = -2118.38, y = 2834.84, z = 32.81, h = 9.43},
},
warp = false, -- Set false if you don't want to warp into the vehicle
},
}
----------------------------------------------------------------
Config.Garages = {
["A"] = { -- This is the Garage ID insert into database
id = 'A', -- This is the Garage ID insert into database
label = 'Garage A',
type = "all", -- "all", "car", "boat", "aircraft", "helicopter" // Look into you database for that
jobs = false, -- "police" or false to disable
grade = 0, -- default: 0 and all grades above
pedmodel = 'csb_trafficwarden', -- 'mp_m_shopkeep_01' or false to use a Marker instead
text3d = {enable = true, label = '~g~Open Garage', size = 0.8},
marker = {enable = true, type = 27, size = {a = 1.0, b = 1.0, c = 1.0}, color = {a = 255, b = 255, c = 255}},
blip = {enable = true, id = 524, color = 26, scale = 0.8},
locations = { -- Only for NPC and Marker
{x = -2155.84, y = 2855.95, z = 32.81, h = 334.81},
},
park_dist = 5.0, -- Distance between Parkout Spots // Don't change this if you don't know what this is
park_out = { -- You can set multiple locations
{x = -2159.35, y = 2866.37, z = 32.81, h = 239.04},
{x = -2157.37, y = 2871.42, z = 32.81, h = 239.78},
},
warp = false, -- Set false if you don't want to warp into the vehicle
},
["B"] = { -- This is the Garage ID insert into database
id = 'B', -- This is the Garage ID insert into database
label = 'Garage B',
type = "all", -- "all", "car", "boat", "aircraft", "helicopter" // Look into you database for that
jobs = false, -- "police" or false to disable
grade = 0, -- default: 0 and all grades above
pedmodel = 'csb_trafficwarden', -- 'mp_m_shopkeep_01' or false to use a Marker instead
text3d = {enable = true, label = '~g~Open Garage', size = 0.8},
marker = {enable = true, type = 27, size = {a = 1.0, b = 1.0, c = 1.0}, color = {a = 255, b = 255, c = 255}},
blip = {enable = true, id = 524, color = 26, scale = 0.8},
locations = { -- Only for NPC and Marker
{x = -2201.86, y = 2881.84, z = 32.81, h = 325.95},
},
park_dist = 5.0, -- Distance between Parkout Spots // Don't change this if you don't know what this is
park_out = { -- You can set multiple locations
{x = -2159.35, y = 2866.37, z = 32.81, h = 239.04},
{x = -2157.37, y = 2871.42, z = 32.81, h = 239.78},
},
warp = false, -- Set false if you don't want to warp into the vehicle
},
}
Alles anzeigen
Optional Requirements
- VehicleKeyChain (https://forum.cfx.re/t/release-vehicle-key-chain/3319563)
Requirements
- ESX 1.2 and above
- NativeUI
- oxmysql
My other Scripts
Paid
- https://forum.cfx.re/t/esx-msk…tiple-armor-vests/4812243
- https://forum.cfx.re/t/release…ing-with-nativeui/4859560
- https://forum.cfx.re/t/esx-msk…ing-with-nativeui/4898261
- https://forum.cfx.re/t/esx-msk…alistic-handcuffs/4885324
- https://forum.cfx.re/t/esx-msk-savecoordmenu/4898218
- https://forum.cfx.re/t/release…-database-feature/4853593
- https://forum.cfx.re/t/esx-qbc…-your-phonenumber/4847008
- https://forum.cfx.re/t/release…-components-tints/4793783
Free
- https://forum.cfx.re/t/esx-bac…-chezza-inventory/4805469
- https://forum.cfx.re/t/esx-msk…ed-in-mymultichar/4863428
- https://forum.cfx.re/t/re-release-enginetoggle/4793840
- https://github.com/Musiker15/msk_givevehicle
- https://github.com/MSK-Scripts/msk_rgbHeadlights
- https://forum.cfx.re/t/esx-qbc…lips-with-an-item/4795682
- https://github.com/MSK-Scripts/msk_weaponammoitems