[ESX] stasiek_selldrugs | stasiek_selldrugsv2 - selling drugs to NPCs

Download new v2

/dealer command

Download old v1

press [E] to sell

Requirements

es_extended

Demonstration

stasiek_selldrugsv2

video

stasiek_selldrugs

23 Likes

flagged so it can get moved to the right location

in releases

20charrrr

2 Likes

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.

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

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

No. I tryed more names, nothing is working.

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'
}

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

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 )

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

No, it does not work :confused:

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

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

1 Like

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

Yes it works, good job!

2 Likes

Give my post a :heart_eyes: please :smiley:

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

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

1 Like

!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%