Documentation

Setup

Install and configure the vehicle lifts.

#Download

Download zyke_vehiclelifts.zip from the latest release.

Download the release .zip, not GitHub's green Code → Download ZIP button. The source code is missing the built files the resource needs.

#Dependencies

Install oxmysql and zyke_lib, and configure the framework provider in zyke_lib. zyke_sounds is optional, for the lift sounds. See Dependencies.

#Resource

Place the resource in your server's resources folder as zyke_vehiclelifts. Keep the folder name as it is. There are no items to install.

#Sounds

The lift sounds are bundled in zyke_sounds 0.7.5 and newer. Keep zyke_sounds up to date and there is nothing to copy. On an older zyke_sounds, copy zyke_vehiclelifts/extras/sounds/vehiclelifts into zyke_sounds/nui/sounds/ and restart zyke_sounds. See Sounds From Other Resources.

#Database

The zyke_vehiclelifts table is created on the first start, so there is no SQL to import. It holds the lifts placed with the placing tool.

#Configuration

Edit shared/config.lua. Review the stop heights, the interaction mode, and the admin command. Use the Config reference for current defaults.

Custom action restrictions belong in client/can_checks.lua and server/can_checks.lua. Enforce trusted restrictions on the server.

#Start Order

Start your configured providers and their dependencies before Vehicle Lifts, and Vehicle Lifts before any resource that uses its exports:

cfg
ensure oxmysql
ensure zyke_lib
ensure zyke_sounds
ensure zyke_vehiclelifts

With interaction = "target", start ox_target or qb-target before Vehicle Lifts as well.

#Place Lifts

Run /vehiclelifts in game to take out the placing tool, aim at the floor, and place a lift with the left mouse button. It is saved in the database and stands again after a restart. See Commands.

A lift needs 3.7 metres of room across and 3.2 metres of headroom, plus room for a car's roof over its sills at 2.2 metres when it is up at high. Lifts that always stand can also go in shared/lifts.lua.

#Verify Gameplay

Drive a car between the posts of a lift and get out. Aim at the marker on a carriage, set all four pads under the car, then raise it at the power unit. See Working a Lift.