Jump to content

[REL] New vehicle modshop


DennisUni

Recommended Posts

I know there's already a cool modshop around on the community, however I think this modshop is easier to use and uses alot less code, but does the same.

NOTE: The core file is compilled due people being c*nts and re-uploading the script while it's not theirs.

All the other files including the server file are not compilled!

The colorpicker was made by Aiboforcen

Features:

- Let players upgrade their vehicles around SA, there are already a couple modshops mapped

- A nice looking dx UI, uses only dx drawing no GUI and no images (except for the colorpicker)

- Camera rotating around the vehicle

- Supports vehicle headlight colors as well

- Prices and names are easy to edit

- You can see wich upgrades you already have set and remove them easily

- Player can't be jacked while modding a car

- Handles everything when the car gets destroyed or when a player disconnects/dies while modding

Exported functions:

- (Serverside) isVehicleModding( vehicle ) - Returns a bool

- (Serverside) isPlayerModding( player ) - Returns a bool

- (Clientside) getUpgradePrice( upgradeid ) - Returns a number or bool

- (Clientside) getUpgradeName( upgradeid ) - Returns a string or bool

Events:

- onVehicleFinishedModding

* Parameters: table mods, table colors, int paintjob, int price

* source: The source of the event is the vehicle that finished modding

How to install:

Unzip the resource and upload it to the server, start it, and enjoy!

How can I edit the prices, names or add modshops?:

NOTE: This requires some scripting knowledge!

If you want to edit the prices, names or some other settings check the 'client.lua' file.

New modshops can be added in 'server.lua', there's a table wich contains the positions.

Download:

https://community.multitheftauto.com/index.php?p= ... ls&id=7001

THIS IS VERSION 1! IF YOU SEE ANY BUGS PLEASE REPORT THEM, I WILL FIX THEM ASAP!

10813.png

10812.png

10811.png

10810.png

Edited by Guest
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...