[NEW VER 2.1] NPC Pickup - pickup prostitutes with network-synced animations - [ESX/QBCORE & STANDALONE] [PAID]

A script by bcs19

No reviews yet.
[NEW VER 2.1] NPC Pickup - pickup prostitutes with network-synced animations - [ESX/QBCORE & STANDALONE] [PAID] main image

Full Description

One of the staples of a Grand Theft Auto game… being able to pick up a prostitute and live out your wildest teenage fantasies… of watching the car bob up and down while the camera is locked in place!

With NPC Pickup, the native functionality of being able to pick up a prostitute from GTA V/Online is restored to FiveM.

This includes network-synced animations, ESX and QBCORE support for charging the player money, voice lines, and works with the AI prostitutes that spawn by default around the map. There is a config file included if you wish to add more ped models to the list (instructions are included in the config file).

PURCHASE HERE

CODED IN LUA - NO OBFUSCATION - feel free to play with the code as you please

NEW UPDATE - 2.1 - QBCORE support, uses a cleaner notification system, plus other fixes - new video at the bottom of this post


Version 2.1 Update (25th Jan 2023)

  • Added support for QBCORE
  • Tidied up the code a bit to accommodate multiple frameworks (ESX or QBCORE)

Previous Updates < click here

Version 2.0 Update (24th Nov 2021)

  • New notification system that replaces chat commands (though they can still be re-enabled in the config if you wish)

  • Honk your horn to get the prostitute’s attention

  • You must now turn off your headlights fully before the notification will appear allowing you to select an action

  • Car interior light will now turn on when an action is selected

  • Added an extra failsafe that will disband the prostitute if they fail to enter your vehicle within a set time frame (or are no longer alive)

  • Fixed the animation height slightly

  • Added a number of new customisations to the config file:

  1. Toggle whether you want to use the horn to trigger getting in the car
  2. Set how long you have to hold the horn down
  3. Toggle whether to use the new notification system
  4. Set which keys to use to trigger each action
  5. Toggle whether to use the old chat command system
  6. Show or hide chat messages
  7. Set the text shown in the notification system

Version 1.1 Update (26th Jan 2021)

  • Added ESX compatibility - in the config file, set UseESX to true (by default it is set to false). I have tested this with ESX V1 Final only at present. If your player does not have enough money, it will trigger the /getout command (with a different voice line).

  • When the NPC has exited your vehicle, you will not be able to pick that specific ped up again (to prevent them getting out and then immediately being able to be summoned again)

  • Added check to make sure the NPC is alive

  • Added a timer to prevent the 3D text appearing indefinitely above the NPC’s head in some situations (if they flee before getting in the car)

  • Added a number of new customisations to the config file:

  1. Set price of each action (for ESX only)
  2. Set the 3D text (over the NPC’s head when they are walking to the car)
  3. Set the 3D text timer - prevents the 3D text appearing indefinitely
  4. Set the Chat message content

Version 1.01 Update (15th Jan 2021)

  • Changed animation blend time so the npc moves into position more naturally
  • fixed npc fleeing when /getout command was used - the npc will now get out of the car normally and wander off

Version 1.02 Update (19th Jan 2021)

  • Streamlined the code and removed some unnecessary bits for the relationship groups
  • Fixed a bug that prevented the NPC from getting in the vehicle


How to use:

  • Drive up next to a prostitute, fully stop the car, then honk the horn. They will walk up to the car and get in.
  • Now drive away and find a secluded area. Once you have fully stopped the car, and turned off the headlights (fully), a notification will appear in the top-left of the screen instructing you which key to press to start each action. If using ESX, it will also show the price for each action.

A couple of things to note:

  • you must be in a car (i.e. not a bike, boat, plane, or heli) - this is based on vehicle classes
  • front passenger seat must be free
  • the prostitute ped has a relationship added that makes them an ally to the player, so if you get out of the vehicle, they will follow you around until you use /getout (this is to stop them from fleeing/using other scared ped behaviours)
  • while in an animation, you will not be able to drive the car (hands may be a bit busy!)
  • the interior light will come on when an action is selected
  • the headlights must be turned off for the notification to appear

PURCHASE HERE

(NEW) Video example here (semi-NSFW obviously) - have to use Gdrive now that streamable requires registration:

Code is accessible Yes
Subscription-based No
Lines (approximately) 250
Requirements None (Standalone), or ESX
Support Yes