flawwsx / erp-selltonpc Goto Github PK
View Code? Open in Web Editor NEWA script to sell drugs to NPC, optimised client side.
A script to sell drugs to NPC, optimised client side.
This script is spamming events to server for no reason resulting into a disconnect due "Network event overflow".
Just found your resource and wanted to swap it out for the currently sell to drug npc script i'm running , but when installed and started no NPC seems to give the sell to option. I have mythic notification and progress bar installed. No errors in client F8 or in server console. I unzipped installed and started , nothing modified.
Any ideas what could be the problem ?
After selling the last piece of drug from my inventory if I approach another npc i get this error https://prnt.sc/sx0ufs and if i go get some more drugs and try to sell the Press E to sell.... text doesn't appear anymore untill I restart the script.
If i find a NPC to sell and i dont have the drug in my inventory but other person give me the drug, im unable to sell, the 3d text dont appear. I need to look for other NPC that i didnt see before.
After a few days of working perfectly, the E doesn't pop up anymore. Even if I press E nearby an NPCer is does nothing. No error in TXadmin or F8.. What to do? :o
If Config.DistanceCheck = true even if you are really close to them it says (moved far away)....
when i go to sell drugs to a NPC it does the animation but never removes the drugs nor gives money. how can i fix this?
So this is a very minor issue and I'll likely try to make a pull to fix this in the future, but when the script randomizes the amount of drugs that are sold to each ped, it only randomizes it once every time the script starts and not per each sale made. I think it could be fixed just by changing where it checks the Config."Drug"Amount in the server.lua
Hello! I'm using your script and its great! Thank you very much!
I have some suggestions if you dont mind and if you have time to add, edit. Since I'm noob at developing I'm hoping you take these suggestions in consideration to add them.
Would be nice if you freeze npc's location and character location when you press E to sell(because if you bump into them a little bit they walk away while the progress bar is loading), and if they accept they do the same animation or this one mp_safehouselost@package_dropoff. And if they call the cops they take out their phone and make the call animation + run away.
Another suggestion would be specific location selling, like weed on groove street or that area, coke on vinewood at the cinema, and other drugs at other locations...
Appreciate your work! You have a great day!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.