Exports

Exports - Client

addActionsCategory- Adds a new option to F6 job menu.

exports['lunar_jobscreator']:addActionsCategory({
    name = 'objects',
    label = 'Objects',
    icon = 'cone',
    onSelect = function()
        -- Open your menu here
    end
})

removeActionsCategory- Removes a option from F6 job menu.

exports['lunar_jobscreator']:removeActionsCategory(name) -- Pass the category name in

isCuffed- Returns true if the localplayer is handcuffed.

exports['lunar_jobscreator']:isCuffed()

isDragged - Returns true if the localplayer is dragged.

exports['lunar_jobscreator']:isDragged()

steal - Opens the target player inventory.

exports['lunar_jobscreator']:steal(targetPed) -- Pass in the target player ped 

handcuff - Handcuffs the player with handcuffs/zipties.

drag - Drag the handcuffed player.

carry - Used to carry a player on your shoulder.

put_in_vehicle- Puts the dragged player to the target vehicle.

out_the_vehicle- Takes the last cuffed player out of the vehicle.

hijack- Unlocks the target vehicle.

repair- Repairs the target vehicle.

clean- Cleans the target vehicle.

impound- Impounds the target vehicle (Deletes it basically)

Exports - Server

uncuff- Uncuffs the target player.

getVehicleFromDatabase- Fetches the vehicle from the lunar_unijob_vehicles table. More info in config/sv_edit.lua

setJobGradeSalary- Sets the grade's salary and saves it into the database.

Last updated