Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
chore: update usage information
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed May 15, 2022
1 parent a53916c commit b7212e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# luke_garages

This resource now only supports ESX Legacy, other versions of the framework **will not** work without modifying the resource.
This resource only supports ESX Legacy, other versions of the framework **will not** work without modifying the resource.

Alongside cars, aircrafts and boats are also fully supported with them having their own separate garages and impounds.

The impound has checks in place to prevent vehicle duping.

I used esx_vehicleshop, but the resource should work with anything that follows that databse structure in `owned_vehicles` table.

[Updated Video Showcase](https://www.youtube.com/watch?v=GT2u5uoz7Tc)
[Video Showcase](https://www.youtube.com/watch?v=GT2u5uoz7Tc) (From 2.0.0 version)

### Dependencies

- [PolyZone](https://github.com/mkafrin/PolyZone)
- [qtarget](https://github.com/QuantusRP/qtarget)
- [zf_context](https://github.com/zf-development/zf_context)
- [qtarget](https://github.com/overextended/qtarget)
- [ox_lib](https://github.com/overextended/ox_lib)
- Server game build 1868 or newer\*

Make sure to follow the well detailed installation instructions on qtarget.
Make sure to download the release zip for [ox_lib](https://github.com/overextended/ox_lib/releases/latest) (ox_lib.zip).

### Installation

Expand All @@ -29,7 +29,7 @@ Make sure to follow the well detailed installation instructions on qtarget.

If you wish to add more garages or impounds make sure to follow the provided template and examples in the config.lua file.

Custom vehicles are now fully supported, for each custom vehicle you have to add a text entry of it's model and make name (if there isn't one already) into the vehicle_names.lua file which is located in the client folder. I provided an example of this that I used on the GTR in the video.
Custom vehicles are fully supported, for each custom vehicle you have to add a text entry of it's model and make name (if there isn't one already) into the vehicle_names.lua file which is located in the client folder. I provided an example of this that I used on the GTR in the video.

For any issues or bugs that may occur please open an Issue in the repository. Make sure to describe the issue in detail and how to reproduce it.

Expand Down
3 changes: 2 additions & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Config.Garages = {
{
label = 'MRPD Police Garage',
type = 'car',
job = {['police'] = 0, ['mechanic'] = 1},
job = {['police'] = 0},
ped = `s_m_y_cop_01`,
pedCoords = vector4(450.6633, -1027.3324, 27.5732, 5.1321),
zone = {name = 'mrpd', x = 439.36, y= -1021.04, z = 28.83, l = 20, w = 40, h = 0, minZ = 27.03, maxZ = 31.03},
Expand Down Expand Up @@ -231,6 +231,7 @@ Config.Garages = {
label = '', -- name that will be displayed in menus
type = 'car', -- can be 'car', 'boat' or 'aircraft',
job = 'jobName', -- Set garage to be only accessed and stored into by a job (Optional)
-- If you want multiple jobs and grades you can do job = {['police'] = 0, ['mechanic'] = 3}
ped = `ped_model_name`, -- Define the model model you want to use for the garage (Optional)
pedCoords = vector4(x, y, z, h), -- Ped MUST be inside the create zone
zone = {name = 'somename', x = X, y = X, z = X, l = X, w = X, h = X, minZ = X, maxZ = x}, -- l is length of the box zone, w is width, h is heading, take all walues from generated zone from /pzcreate
Expand Down

0 comments on commit b7212e8

Please sign in to comment.