Setting up

This guide will help you setup your Advanced Recovery Truck

Smart Vehicle Setup

Setting up this vehicle with Smart Vehicle is easy. First of all, download the vehicle from your Cfx Portal account and install it as a new resource in your server.

Installing Resources

Make sure you do not rename either the Smart Vehicle resource folder or the vehicle resource folder after downloading from Cfx Portal, as this may prevent the resource from working.

Demonstration Video

This video will show you how to use the Advanced Recovery Truck.

Spawn Code

The spawn code for this vehicle is recovery for the Non-ELS version and recoveryels for the ELS version.

Setting up the vehicle

To begin using the vehicle, firstly spawn in the vehicle and jump in the drivers seat. This will activate automatic setup via Smart Vehicle, installing the props in.

Controlling the vehicle

To begin controlling the vehicle, jump out and walk nearby to side. An on-screen prompt will appear asking you to press X to begin controlling the vehicle.

Advanced Recovery Truck features a working control panel, allowing you to control all elements of the recovery truck without having to use the keybinds. By default, the menu will work provided you have named the Recovery Truck resource "recoverytruck" or "recoverytruckels" for the ELS version, and Smart Vehicle is fully up to date.

The resource is configured to automatically open the menu when you start controlling the vehicle, however this can be disabled in the recovery.lua file within the Smart Vehicle vehicles folder.

menu = { 
        enabled = true,
        resourceName = "recoverytruck",
        menuControls = {
            openAuto = true,
            openMenuKey = 311,
            -- Export to open menu should be named openMenu()
        }
    },

Within the menu section you are able to enable/disable the menu, set whether it opens automatically when a player starts controlling and also set the key to open the menu (if you didn't have it open automatically or a player later closes it and wants to reopen).

Editing the menu

To edit the menu, you'll need prior knowledge of HTML/CSS/JS to edit the necessary files. To find these files, open your vehicle resource folder and open the nui folder.

Here you will find the HTML, CSS and JS files which allow you to make changes. For more information on how the menu needs to be setup, see our development documentation on this.

Vehicle Control Menus

Using Keybinds

If you want to use the keybinds one time (rather than permanently disabling the menu) you can press Close Menu and then use the controls seen below.

To re-open the menu, just press K at any time whilst controlling.

Controls

  • K - open or close the recovery truck control panel

  • W/S - Up / down for first rotating piece

  • G - Pick up and drop vehicle

  • A/D- Left and right for base piece

  • Arrow Up/Arrow Down - up/down for second rotating piece

  • Arrow L/Arrow R - Spin the hook

  • Shift/Ctrl - Extending pieces

  • Page Up/Page Down - Outriggers in/out

  • Home/Insert - Outrigger feet up/down

  • H/Y - Tilt the hook

  • F10 / F11 - Move bed up / down

  • + - Extend and retract bed

  • B - Attach vehicle to bed (whilst controlling)

  • E - Attach Vehicle (whilst inside a vehicle you have driven on)

These controls can be edited in the recoverytruck.lua or recoverytruckels.lua files.

Stop Controlling

To stop controlling, you'll firstly need to close the menu using the button (if open) before pressing X.

Editing the Smart Vehicle Controls

All Smart Vehicles are controlled by their own data files, such as recovery.lua. These can be found in the Smart Vehicle resource within the vehicles folder.

To change the controls of your relevant vehicle or the speed of various prop movements, you can make the relevant changes within the lua file here.

For more guidance on editing this data lua file, see our documentation for developers below. Please note, this documentation is not designed to be read without prior knowledge of vehicle development.

Information for Developers

Last updated

Was this helpful?