rytrak.fr Documentation
  • 🛡️FiveM Assets Escrow
    • You lack the required entitlement
    • Failed to verify protected resource
    • Error parsing script / Failed to load script
  • ❓Store FAQ
    • Do you accept orders to create a custom script
    • Do you give decrypted scripts
    • What payment methods are accepted for the purchase of your scripts?
    • Do you offer discounts or special offers on your scripts?
    • Can I modify or customize your scripts to meet my needs
    • Are your scripts compatible with frameworks
    • Do you provide development assistance?
  • FiveM Scripts
    • 🚒Firefighter SCBA System
      • General Configuration
      • Adapt your EUP
      • General Exports
      • General Events
      • ❓FAQ
        • No such export IsFireNearby in resource SmartFires
      • Test it now
    • 👮‍♂️Advanced Police Grab Ped
      • General Configuration
      • General Exports
      • General Events
      • Compatibility with esx_policejob
      • Test it now
    • 🚿Advanced Pepper Spray
      • General Configuration
      • General Exports
      • Anticheat
      • Test it now
    • 📣Advanced Megaphone System
      • General Configuration
      • General Exports
      • Compatibility with pma-voice
      • Compatibility with mumble-voip
      • Compatibility with saltychat
      • ❓FAQ
        • I can't hear my voice through the megaphone
      • Test it now
    • 🚁Advanced Helicopter Bucket
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 🔗Advanced Remote Restraint
      • General Configuration
      • General Exports
      • Test it now
    • 🚗Advanced Extrication System
      • General Configuration
      • General Exports
      • Adapt a vehicle to the roof system
      • List of vehicles compatible with the roof system
      • 🔐Test it now
    • 🔗Advanced Handcuffs System
      • General Configuration
      • General Exports
      • Make ESX compatible
      • Make QBCore compatible
      • Make OX-Inventory compatible
      • 🔐Test it now
    • ✈️Advanced Aerial Firefighting
      • General Configuration
      • Adapt our script with ToxicFire
      • General Exports
      • 🔐Test it now
    • 💣Advanced Tactical Gas System
      • General Configuration
      • Test it now
  • RedM Scripts
    • 🤠Advanced Sheriff Grab Ped
      • General Configuration
      • General Exports
  • Framework compatibility
    • Add a custom weapon on ESX
    • Add a custom weapon on QBCore
    • Add a custom weapon on OX Inventory
  • 🚀Test our resources for free with Zap-Hosting
Powered by GitBook
On this page
  • 1. Exports Overview
  • 2. Example Usage
  1. FiveM Scripts
  2. Advanced Remote Restraint

General Exports

This page explains the available exports for the r_bolawrap script and how to use them. These client-side exports allow you to interact programmatically with the rope system from other resources.


1. Exports Overview

1.1 Remove Ropes

exports['r_bolawrap']:RemoveRopes(targetServerId)

Description: Removes both the upper and lower rope states from a specific player.

Parameters:

  • targetServerId: The server ID of the target player to remove ropes from.


1.2 Set Recharge

exports['r_bolawrap']:SetRecharge(ammo)

Description: Sets the internal recharge count (rope ammo) of the bolawrap device for the local player.

Parameters:

  • ammo: Number of rope charges to assign.


1.3 Check Rope State

exports['r_bolawrap']:IsBolawrap(targetServerId)

Description: Returns the current rope state applied to the specified player.

Parameters:

  • targetServerId: The server ID of the player to check for rope state.

Returns:

  • 'both': If the player has both upper and lower ropes applied.

  • 'upper': If only the upper body of the player is tied.

  • 'lower': If only the lower body of the player is tied.

  • 'nothing': If no ropes are applied to the player.


2. Example Usage

Here is a basic example of how to use the rope exports:

-- Remove all ropes from player with ID 18
exports['r_bolawrap']:RemoveRopes(18)

-- Set recharge (ammo) of the Bolawrap device to 2
exports['r_bolawrap']:SetRecharge(2)

-- Check the rope state of the player with ID 15
local ropeState = exports['r_bolawrap']:IsBolawrap(15)

if ropeState == 'both' then
    print("Player is fully tied!")
elseif ropeState == 'upper' then
    print("Player's upper body is restrained.")
elseif ropeState == 'lower' then
    print("Player's legs are tied.")
else
    print("Player is free.")
end
PreviousGeneral ConfigurationNextTest it now

Last updated 1 month ago

🔗