Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 SimpleCarlock

A lightweight, standalone vehicle key and locking system for FiveM.


📖 About

SimpleCarlock is a standalone vehicle key and locking system designed to add simple vehicle ownership and security mechanics to FiveM without requiring a framework or database.

Players can claim keys to vehicles, lock and unlock them nearby, transfer ownership to another player, and use an interactive lockpicking minigame to break into locked vehicles. Automatic features such as walk-away locking and speed-based drive locking help make the system feel natural without adding unnecessary complexity.


✨ Features

🔑 Vehicle Keys

  • Claim keys to the vehicle you are currently using
  • Server-managed vehicle ownership
  • Transfer vehicle keys to another player
  • Prevent multiple players from claiming the same vehicle
  • Vehicle ownership is cleaned up when the owner disconnects

🔒 Locking System

  • Lock and unlock owned vehicles while nearby
  • Configurable interaction distance
  • Automatic walk-away locking
  • Automatic vehicle locking when driving above a configurable speed
  • Automatic unlock handling when exiting a locked owned vehicle
  • Synchronized lock states across connected players

💡 Vehicle Feedback

  • Vehicle light flashes when locking or unlocking
  • Custom lock and unlock sounds
  • Configurable sound volume
  • In-game notifications for key and lock actions

🛠️ Lockpicking

  • Interactive NUI lockpicking minigame
  • Configurable lockpick distance
  • Configurable startup delay
  • Configurable number of pins
  • Configurable failed attempts
  • Lockpicking animation while attempting entry
  • Optional emergency vehicle protection

❓ Built-In Help

  • /carhelp opens the included help interface
  • Players receive a one-time reminder when entering a vehicle
  • Commands and core features are available directly in-game

🔄 Version Checker

  • Automatic version check when the resource starts
  • Displays the installed and latest available version
  • Notifies server owners when an update is available
  • Can be disabled from config.lua

📥 Installation

1. Download the Resource

Download the latest version of SimpleCarlock and extract the folder.

2. Add it to Your Server

Place the SimpleCarlock folder inside your FiveM server's resources directory.

For example:

resources/[standalone]/SimpleCarlock

3. Configure the Resource

Open config.lua and adjust the settings to suit your server.

4. Start SimpleCarlock

Add the following to your server.cfg:

ensure SimpleCarlock

Restart your server or start the resource manually.


🎮 Commands

Command Description
/getkeys Claims the keys for the vehicle you are currently inside.
/givekeys <ID> Transfers the keys for your current owned vehicle to another player.
/lockpick Attempts to lockpick the nearest locked vehicle.
/carhelp Opens the built-in SimpleCarlock help menu.

Lock / Unlock Key

The default lock and unlock control is:

E

This can be changed in config.lua using the configured FiveM control ID.


⚙️ Configuration

SimpleCarlock can be configured entirely through config.lua.

Available options include:

  • Emergency vehicle lockpick exemption
  • Lock/unlock control key
  • Vehicle exit control key
  • Walk-away auto-lock distance
  • Lock/unlock interaction distance
  • Sound volume
  • Lockpick startup delay
  • Lockpick interaction distance
  • Number of lockpick pins
  • Number of failed lockpick attempts
  • Drive auto-lock speed
  • Version checker settings

Example:

Config.Settings = {
    ExemptEmergencyVehicles = true,
    lockKey = 38,
    exitKey = 75,
    autolockDistance = 25.0,
    interactionDistance = 7.0,
    soundVolume = 0.4,
    lockpickInitialWait = 2500,
    lockpickDistance = 4.0,
    pinCount = 5,
    pinAttempts = 3,
    driveLockSpeed = 5.0
}

📋 Requirements

  • FiveM server
  • No framework required
  • No database required
  • No additional resource dependencies required

🛠️ Support

When reporting a bug, include any relevant client or server console errors along with clear steps to reproduce the issue.

For support, updates, and other SimpleDevelopments resources, join the community through the Discord button at the top of this page.


🌐 SimpleDevelopments

SimpleCarlock is developed by SimpleDevelopments as a lightweight solution for servers that want vehicle keys, locking, and lockpicking without installing a full framework-based vehicle system.


Keep it Simple. Keep it SimpleDevelopments.

If you find SimpleCarlock useful, consider starring the repository.

About

A simple script that allows you to lock your vehicle and lockpick others that are locked!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages