Mobility Devices

data/mobility_devices.lua

Define mobility devices within this data file.

NOTE: This process is relatively unintuitive, and may lead to errors with modification. It is recommended to avoid altering this file unless you are an experienced developer. Assistance will be given through discord support if curiosity arises.

local mobility_devices = {}

mobility_devices.stretcher = {
    item = "stretcher",
    label = "Stretcher",
    self_powered = false,
    disable_1h_weapons = true,
    disable_2h_weapons = true,

    prop = {
        model = "prop_ld_binbag_01",

        offsets = {            
            -- offset for prop when player is using/pushing it
            spawn = {
                coords = vector3(0.0, 1.25, 0.0),
                rotation = vector3(0.0, 0.0, 270.0),
            },

            attached = {
                coords = vector3(0.0, -0.65, -1.36),
                rotation = vector3(0.0, 16.0, 270.0),
            },

            -- offset when player is detached from prop
            detached = {
                coords = vector3(0.0, 0.8, 0.0),
            },

            -- offset for a prop when player is attached to it
            attached_to = {
                coords = vector3(0.0, 0.0, 2.1),
                rotation = vector3(0.0, 0.0, 90.0),
            },

            -- offset when player is detached from prop
            detached_from = {
                coords = vector3(0.7, 0.0, -1.0),
            },

            -- offset for prop sprite
            prop_sprite = {
                coords = vector3(0.0, 0.0, 1.5),
            }, 

            -- offset for ped sprite
            ped_sprite = {
                coords = vector3(0.0, 0.0, 1.0),
            }, 

            -- offset for bed sprite
            bed_sprite = {
                coords = vector3(0.0, 0.0, 1.0),
            },
        }
    },

    animations = {
        attached = {
            ad = "anim@heists@box_carry@",
            name = "idle",
            flags = 50
        },

        attached_to = {    
            ad = "anim@gangops@morgue@table@",
            name = "ko_front",
            flags = 69
        }
    },

    actions = actions,
}

Last updated