FlyingSpoon Posted April 9, 2015 Share Posted April 9, 2015 (edited) Grotti Cars (Carshop & Vehicle System) This was a very old script that I had made a while back, but sadly didn't finish. However, today I present to you the very first Development BETA of this Script. The GUI has been switched to Multi Theft Auto's Standard GUI System. However, I do plan on moving to a more advance Dx Library if it manages to reach a certain number of downloads/votes. The Script is written in plain Lua, and requires the 2 resources called 'cpicker' (Colour Picker) and 'notifications' for side-notifications that appear when toggling certain events for the vehicle. The Carshop was originally inspired from a Standard RPG Server, it includes a few features and gives the player to ability to a own a permanent car. The previous Grotti Carshop that was under development was basic, allowing you to purchase a vehicle without any standard vehicle adjustments. This however has been updated. Features • Gives you the ability to purchase a car. • Gives you the ability to set a colour of your choice. • Checks if you have the correct money amount and if you are logged in. • Generates a vehicle number plate for the car. • Allows you to toggle the engine with the command /engine - This is permanent and remains after a resource restart. • Allows you to toggle the handbrake with the command /handbrake - This is permanent and remains after a resource restart. • Allows you to park your vehicle with the command /park - This saves the location permanently and can be changed, if not parked it returns back to the carshop. Automatic Vehicle Theft Prevention • Basic feature that only lets the Owner of the Vehicle drive it, anyone else that attempts to enter as a Driver the event is cancelled. How can I install this resource? In order to install this resource, simply download it either from either the Direct Download or MTA Community's Download Link. Once download follow the steps below, 1) Download the resource. 2) Move all the contents and required resources into, MTA San Andreas (OR Your Server Directory) -> mods -> deathmatch -> resources (Place In Here) 3) Locate the mtaserver.conf that is within, MTA San Andreas (OR Your Server Directory) -> mods -> deathmatch -> mtaserver.conf 4) Add in the following lines, <resource src="cpicker" startup="1" protected="0" /> <resource src="grotticars" startup="1" protected="0" /> <resource src="notifications" startup="1" protected="0" /> Make sure the order is like above when starting the resources to prevent bugs. No special permissions are required for this resource. How can I modify this resource? In order to modify this resource locate to, vehicles.xml In here you'll find a basic XML Sheet that includes a few vehicles with their prices. Currently, you are only able to add in vehicles to the carshop as the rest of the carshop is currently compiled. To add a new vehicle all you have to do is add in this line, Example: <vehicle name="Blade" price="20000" /> The resource automatically generates the vehicle from it's name, so enter the name using Multi Theft Auto's Wikipedia. It is crucial the name is spelt correctly to prevent bugs; and enter a price that you'd wish for the player to pay in order to obtain this vehicle. You can find the correct vehicle names here, https://wiki.multitheftauto.com/wiki/Vehicle_IDs Download Resource & Components Edited November 28, 2019 by FlyingSpoon Version: 0.25d 1 Link to comment
FlyingSpoon Posted April 9, 2015 Author Share Posted April 9, 2015 Front Minor - Remember The Name, I was using the clean version. Link to comment
3B00DG4MER Posted April 10, 2015 Share Posted April 10, 2015 Nice job Try to make it, if is he hovering on button that Glow or Change color or Something like that Cuz there's who don't know Link to comment
FlyingSpoon Posted April 10, 2015 Author Share Posted April 10, 2015 Well I need help to do that, Any specific function that I can use? Link to comment
Et-win Posted April 10, 2015 Share Posted April 10, 2015 Well I need help to do that,Any specific function that I can use? https://wiki.multitheftauto.com/wiki/OnClientCursorMove Then check if the mouse goes over a button. (And if you used an invisible GUI, then you can just use onClientMouseEnter/Leave) Link to comment
JR10 Posted April 10, 2015 Share Posted April 10, 2015 You're better off using getCursorPosition since you're using dx and onClientRender. Link to comment
Et-win Posted April 10, 2015 Share Posted April 10, 2015 You're better off using getCursorPosition since you're using dx and onClientRender. Then check if the mouse goes over a button. Actually what I meant, but maybe it wasn't really clear Link to comment
FlyingSpoon Posted April 2, 2018 Author Share Posted April 2, 2018 Bump, Added new script, released to public. Link to comment
Anarchia Posted April 30, 2018 Share Posted April 30, 2018 Hi! pls add new version save los santos custom tuning. thx. Great job! Link to comment
FlyingSpoon Posted May 1, 2018 Author Share Posted May 1, 2018 @Anarchia Can you explain it in a little more detail? Link to comment
Anarchia Posted May 2, 2018 Share Posted May 2, 2018 there are 1 resources which is called Los santos Custom and if I am restart the Grotti Car shop then those tunings will disappear from the cars. It is also good if you write 1 resourcot that is tuning Link to comment
FlyingSpoon Posted December 31, 2018 Author Share Posted December 31, 2018 On 02/05/2018 at 16:05, Anarchia said: there are 1 resources which is called Los santos Custom and if I am restart the Grotti Car shop then those tunings will disappear from the cars. It is also good if you write 1 resourcot that is tuning I'll do that now. On 08/06/2018 at 17:56, WuziMu03 said: How to change place ? I'm remaking the code to make it more expandable for you guys. Link to comment
FlyingSpoon Posted January 1, 2019 Author Share Posted January 1, 2019 https://github.com/FlyingSpoo9/vehicle-system An update on my previous code, I've remade the system added in new features. I'm working on the tuning system as you read, it'll be done and ready by tomorrow. All current features are listed on the README.md, if you have any questions or need help please leave me a message. Link to comment
FlyingSpoon Posted January 1, 2019 Author Share Posted January 1, 2019 New Github: https://github.com/FlyingSpoo9/vehicle-system Link to comment
DreaM40BG Posted February 2, 2020 Share Posted February 2, 2020 (edited) It can't ajust color when buying and it gives error that it needs to adjust the color. Please help! Edited February 2, 2020 by DreaM40BG Link to comment
GameSoft Posted March 9, 2020 Share Posted March 9, 2020 On 02/02/2020 at 18:16, DreaM40BG said: I say when I want to buy a car it says change the color of the car, I say it doesn't work. Then check if the mouse goes over a button. (And if you used an invisible GUI, then you can just use onClientMouseEnter/Leave Plase Help Then check if the mouse goes over a button. (And if you used an invisible GUI, then you can just use onClientMouseEnter/Leave Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now