MX-CarLock is a FiveM script designed to provide a convenient way to lock and unlock cars in your server. It supports the latest version of ESX and utilizes a config file for customization. Please note that this script has a dependency on the ox_lib library.
- Lock and unlock cars
- Compatibility with the latest version of ESX
- Customizable configuration options
Before using MX-CarLock, make sure you have the following prerequisites:
- Clone the MX-CarLock repository to your Server:
-
Copy the
MX-CarLock
folder into your FiveM resource directory. -
Add
ensure MX-CarLock
to yourserver.cfg
file. -
Download and install the latest version of ESX.
-
Install the
ox_lib
library by following the instructions in its repository.
-
Open the
config.lua
file located in theMX-CarLock
folder. -
Customize the following options based on your preferences:
- Locale (now support EN/CZ language)
We go to es_extended --> client --> functions.lua We look for this function: function ESX.ShowNotification We rewrite the entire function to:
Then you go to fxmanifest.lua in es_extended where you add this line to the shared_scripts section:
`'@ox_lib/init.lua',`
Once MX-CarLock is installed and configured, you can use the following key bindings in your FiveM server:
- By pressing F10 you can lock/unlock your vehicle. You have to own the vehicle, otherwise it won't work ;)
-
Contributions to MX-CarLock are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request in the GitHub repository.
-
Or join my discord server ;) Discord
MX-CarLock is licensed under the MIT License.