Onex
Onex
Home
Products
Documentation
Changelog
Login with FiveM
  • 👋 Welcome
  • Claim Purchase
  • Translations
    • Weaponmeta
    • Voice Interaction
      Integrations
      Installation
      Configuration
      General
      Currency
      Addons
      Features
      Api
Artifacts Tracker
  1. Onex Scripts
  2. Scripts_guides / Npc Lift
Ctrl K

NPC LIFT#

Hail a passing driver by voice for a taxi-style ride. The addon detects nearby vehicles, negotiates with the driver, calculates a fare, and optionally drives you to a waypoint automatically.

NPCLiftConfig.enabled#

TypeDefault
booleantrue

Enable or disable the NPC lift addon entirely.

NPCLiftConfig.debug#

TypeDefault
booleanConfig.AddonDebug

Enable debug logging. Follows the global AddonDebug setting by default.

Detection#

NPCLiftConfig.detectionRadius#

TypeDefault
number10.0

Radius in meters the addon scans for eligible vehicles when the player speaks a hail command.

NPCLiftConfig.interactionRadius#

TypeDefault
number10.0

Maximum distance in meters the player must be from the vehicle to initiate the ride.

NPCLiftConfig.acceptChance#

TypeDefault
number60

Percentage chance (0–100) that an NPC driver accepts the ride request.

Fare Settings#

NPCLiftConfig.fare#

FieldTypeDefaultDescription
enabledbooleantrueCharge the player a fare at the end of the ride
chancenumber75Percentage chance a fare is requested (0 = always free, 100 = always charged)
minAmountnumber100Minimum fare amount in dollars
maxAmountnumber350Maximum fare amount in dollars
moneyTypestring'cash'Payment type — 'cash', 'bank', or 'crypto'
fareTimeoutnumber15000Time in ms the player has to confirm or decline before auto-cancel
NPCLiftConfig.fare = { enabled = true, chance = 75, minAmount = 100, maxAmount = 350, moneyType = 'cash', fareTimeout = 15000, }

Last updated 3 months ago

Quick Links

All DocumentationOur Products