Skip to content

jalallinux/FiveM-Car-Lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FiveM-Car-Lock

Simple vehicle lock/unlock system for FiveM linux server. (The development of this script continues)

Features

Pess U or your Custom key to Lock or Unlock your vehicle.


Download & Installation

Using Git

cd resources
git clone https://github.com/jalallinux/FiveM-Car-Lock [jalallinux]/jl_carlock
  • Add to your server.cfg file start jl_carlock

Manually


Config

In resources folder, edit /[jalallinux]/jl_carlock/config.lua with your settings :

Config = {}

Config.CarLock = { 
    ControlKey          = 303,      -- Which button for Open and Lock vehicle ? 303 = U
    NotCarFound         = "Your vehicle was not ~r~detected~w~",
    CarLocked           = "Your vehicle is ~r~Locked~s~",
    CarOpen             = "Your vehicle is ~g~Open~s~",
    LimiterIsOn         = "Limiter switched ~b~On",
    LimiterIsOff        = "Limiter switched ~b~Off",
    SearchAreaRadius    = 20.0,
    BlinkingLightsON    = true,     -- Flashing Headlights on Opening and Closing vehicle
    CarBleepOnOpen      = true,     -- Bleep at Open vehicle
    CarBleepOnClose     = true,     -- Bleep at Close vehicle
    CarBleepDistance    = 5.0,      -- Radius how far the sound is audible to other players
    CarBleepVolume      = 0.5,      -- Volume of the sound / MAX = 1.0 / MIN = 0.1
    SpeedLimiter        = false,     -- Option to turn a speedlimiter on or off
    SpeedLimiterKey     = 29,       -- Which button for the limiter? default: 29 = B
}

Screenshots

Lock Vehicle . Open Vehicle

Packages

No packages published

Languages