Jump to content

[REL] Grotti Car Shop System 0.1 - RaysMTA

Recommended Posts


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.


• 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,


<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,
Edited by FlyingSpoon
Version: 0.25d
  • Like 1
Link to comment
  • 2 years later...
  • 4 weeks later...
  • 1 month later...
  • 6 months later...
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
  • 1 year later...
  • 1 month later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...