[Release][vRP2] Sell Drugs to NPCs

Sell Drugs to NPCs for vRP2

This mod allows you to sell drugs or if you want to modify it to any other item to npcs.
The client side is done, but the server side needs to be worked on to work with your framework (be it ESX or ESX2 your custom build). There is also a random rejection percentage that triggers police dispatch, modify it in your police dispatch event to trigger a police report.

Required:

  • pNotify

Features:

  • Random Payments
  • Random Quantity up to 5

How to
Walk up to civilians after obtaining drugs and press H to sell it

Download
https://github.com/sisanc6/vrp_drugstonpc

2 Likes

What’s the performance of this script? One look at the code and it seems like you GetPlayerPed quite a few times every second.

question, Im getting resource file vrp_drugstonpc/server.lua not found" is there something I am missing?
thank you

everything is included

You can modify the code to improve performance, the only thing I did was translate the script to vrp2 and make it functional.

Everything is included, but the server.lua is not loading, even after modifying the __resource.lua to actually add the server.lua to the server side load. (it’s left out). The script works up until that point. Also get a line 9 on server.lua attempt to call nil value, stack trace back to line 9 again on server.lua.

vrp2 support has ended, reason: upgrade to ESX