[ESX stasiek_selldrugs] Sell Drugs to NPC +dispatch NEW! 🚓

police
npc
esx
drug
sell

#1

:poland: stasiek_selldrugs (weed, meth, coke, opium) + dispatch :police_car:

It’s 100% WORKING with ESX! Plugin has been created by Stasiek, witch allows player to sell drugs to npc/ped! + police/cops call/dispatch
I would be proud if you send me your language translation!

Waiting for your opinion and feedback guys! :slight_smile: Greetings from poland!
Sorry for my english.

Download

How is plugin working?

To sell drugs you have to get closest NPC and press “E” one time to check your inventory, and if you have drugs (notification is showing up to press “E”) you have to click one more time “E”. Thats all :wink:

Important

Check README in github

ScreenShots

OpenMe!

More


Sell drugs to NPC [ ESX ]
[EssentialMode] [ESX] Sell Drugs to NPCs
[For Developers] [Release] Sell drugs to NPCs
ESX Sell Drugs to NPCs (Weed Only)
Looking for working drugstonpc script ESX
[Release][ESX] Rob NPCs
#2

flagged so it can get moved to the right location


#5

in releases

20charrrr


#8

This script is not working. The console say:

Error loading script locales/pl.lua in resource stasiek_selldrugss: locales/pl.l
ua:12: attempt to index a nil value (global 'Locales')
stack traceback:
        locales/pl.lua:12: in main chunk
Failed to load script locales/pl.lua.
Error loading script locales/en.lua in resource stasiek_selldrugss: locales/en.l
ua:12: attempt to index a nil value (global 'Locales')
stack traceback:
        locales/en.lua:12: in main chunk
Failed to load script locales/en.lua.

#9

Try to download the latest version of plugin. Did you change something in script?


#10

Also change folder name from ‘stasiek_selldrugss’ to ‘stasiek_selldrugs’


#11

No. I tryed more names, nothing is working.


#12

it’s working, just modify __resources.lua :

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

server_scripts {
	'server/main.lua',
}

client_scripts {
	'@es_extended/locale.lua',
	'locales/pl.lua',
	'locales/en.lua',
	'client/main.lua',
	'config.lua'
}

#13

But server need to check Config variables. Is it works?


#14

After a few minutes there was an error, I’ll try with that:

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

server_scripts {
	'server/main.lua',
	'config.lua'
}

client_scripts {
	'@es_extended/locale.lua',
	'locales/pl.lua',
	'locales/en.lua',
	'client/main.lua',
	'config.lua'
}

( it’s works )


#15

Ok thank you. Does dispatch works? You can check this with your friend(police)


#16

No, it does not work :confused:


#17

Give your self a police job and set ‘showcopsmisbehave = true’ in ‘client/main.lua’ at line 199 to true. It work :slight_smile:


#18

Remember dispatch is only 40% chance to work, also when ped ‘REJECT’ your offer! Its important


#19

Ok there was a problem in script, sorry. Now download new version and dispatch schould work perfect! :smiley:


#20

Yes it works, good job!


#21

Give my post a :heart_eyes: please :smiley:


#22

Okay :heart_eyes:, by knowing how to make sure that the police are 100% notified ?


#23

Give me a second I have to edit script to easy change it


#24

!Update! [Download plugin]

Config.CallCopsPercent = 3 – (min1) if 1 cops will be called every time=100%, 2=50%, 3=33%, 4=25%, 5=20%

Config.PedRejectPercent = 2 – (min1) if 1 ped reject offer=100%, 2=50%, 3=33%, 4=25%, 5=20%