LUNAR SCRIPTS
  • HOME
    • INFO
  • BRIDGE MODULE
    • lunar_bridge
      • Dependencies
      • Installation
      • Exports
  • PAID SCRIPTS
    • lunar_illegalbusinesses
      • Dependencies
      • Installation
    • lunar_heistcontracts
      • Dependencies
      • Installation
      • Exports and Events
    • lunar_jobscreator
      • Dependencies
      • Installation
      • Community Jobs
      • Exports
    • lunar_drugscreator
      • Dependencies
      • Installation
    • lunar_reports
      • Dependencies
      • Installation
    • lunar_drugs
      • Dependencies
      • Installation
    • lunar_cryptomining
      • Dependencies
      • Installation
    • lunar_robbery
      • Dependencies
      • Installation
    • lunar_interactions
      • Dependencies
      • Installation
      • Exports
    • lunar_multijob
      • Dependencies
      • Installation
      • Exports
    • lunar_trafficking
      • Dependencies
      • Installation
    • lunar_truckerjob
      • Dependencies
      • Installation
  • FREE SCRIPTS
    • lunar_garage
Powered by GitBook
On this page
  • Exports - Client
  • Exports - Server
  1. PAID SCRIPTS
  2. lunar_interactions

Exports

Exports - Client

isHandcuffed - Returns true if the localplayer is handcuffed.

exports['lunar_interactions']:isHandcuffed()

isDragged - Returns true if the localplayer is dragged.

exports['lunar_interactions']:isDragged()

steal - Opens the target player inventory.

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

handcuff - Handcuffs the player with handcuffs/zipties.

exports['lunar_interactions']:handcuff(targetPed) -- Pass in the target player ped 

drag - Drag the handcuffed player.

if IsPedCuffed(targetPed) then -- Check if the target ped is handcuffed
    exports['lunar_interactions']:drag(targetPed) -- Pass in the target player ped
end

carry - Used to carry a player on your shoulder.

exports['lunar_interactions']:carry(targetPed) -- Pass in the target player ped

take_hostage- Takes the target player as a hostage.

exports['lunar_interactions']:take_hostage(targetPed) -- Pass in the target player ped

put_in_vehicle- Puts the dragged player to the target vehicle.

exports['lunar_interactions']:put_in_vehicle(vehicle) -- Pass the target vehicle

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

exports['lunar_interactions']:out_the_vehicle(vehicle) -- Pass the target vehicle

hijack- Unlocks the target vehicle.

exports['lunar_interactions']:hijack(vehicle) -- Pass the target vehicle

repair- Repairs the target vehicle.

exports['lunar_interactions']:repair(vehicle) -- Pass the target vehicle

clean- Cleans the target vehicle.

exports['lunar_interactions']:clean(vehicle) -- Pass the target vehicle

impound- Impounds the target vehicle (Deletes it basically)

exports['lunar_interactions']:impound(vehicle) -- Pass the target vehicle

Exports - Server

uncuff- Uncuffs the target player.

exports['lunar_interactions']:uncuff(targetId) -- Pass the player server ID

getPlayerDragState - Gets the drag state of the target player.

exports['lunar_interactions']:getPlayerDragState(targetId) -- Returns the server ID of the dragger, or false if not being dragged

setPlayerDragState - Sets the drag state of the target player and syncs with the client.

exports['lunar_interactions']:setPlayerDragState(targetId, draggerId) -- Set draggerId to start dragging, or nil/false to stop

getPlayerHandcuffedState - Gets the handcuffed state of the target player.

exports['lunar_interactions']:getPlayerHandcuffedState(targetId) -- Returns the handcuff type or false if not cuffed

setPlayerHandcuffedState - Sets the handcuffed state of the target player and syncs with the client.

exports['lunar_interactions']:setPlayerHandcuffedState(targetId, state, type) -- state: true/false, type: 'handcuff'/'ziptie'/etc.
PreviousInstallationNextlunar_multijob

Last updated 1 month ago