TheBigChief Posted June 25, 2010 Posted June 25, 2010 This is my first mod so please be fair with comments. I created this mod to allow me to set up a decent GTA, User Garage and Races (all of which will come soon) but you can do whatever you want with it. I know there is already a cars mod out there somewhere but to be honest it didn't suit my needs and was kinda dated I think. This mod is an amendment of the cities inbuild mod. [mysql] -- -- Table structure for table `cars` -- CREATE TABLE IF NOT EXISTS `cars` ( `id` int(11) NOT NULL AUTO_INCREMENT, `model` text NOT NULL, `make` text NOT NULL, `value` int(11) NOT NULL, `quantity` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; [/mysql] Open global_func.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. On a new line above that add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create a new file named staff_cars.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And there you have it, the starting point for a multitude of new mods. Please also use this post to make the mod better if you so wish :thumbsup: Quote
TheBigChief Posted June 25, 2010 Author Posted June 25, 2010 Oh and remember to add this to your smenu.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
TheBigChief Posted June 25, 2010 Author Posted June 25, 2010 Just added a little more to this mod: Create a folder named carpics on your file directory. [mysql] -- -- Table structure for table `cars` -- CREATE TABLE IF NOT EXISTS `cars` ( `id` int(11) NOT NULL AUTO_INCREMENT, `model` text NOT NULL, `make` text NOT NULL, `value` int(11) NOT NULL, `quantity` int(11) NOT NULL, `carpics` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; [/mysql] Now using a modified Isomerizer uploadpics.php script create: uploadcarpics.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. on staff_cars.php go to line 21, create a new line and add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Below add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In the editcar function (which if you followed me should be line 62) Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Below add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change line 72 which should be: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And that should be it - you can now have images for your cars too. Quote
MagicStar Posted June 26, 2010 Posted June 26, 2010 Nice I will try this out and post the feedback here. Quote
javance Posted January 14, 2012 Posted January 14, 2012 Parse error: syntax error, unexpected T_STRING in /home/blackeag/public_html/staff_cars.php on line 62 Quote
javance Posted January 14, 2012 Posted January 14, 2012 nevermind and where do ppl go to see there cars and stuff Quote
maplesyrupghost Posted January 24, 2012 Posted January 24, 2012 I can't get this to work. I think the code is totally broken, but I'd be willing to pay someone make this work for my game. PM me. Quote
maplesyrupghost Posted January 24, 2012 Posted January 24, 2012 whats the errors are you getting ? If I try add a new car, I get You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. & thx for fast reply Quote
maplesyrupghost Posted January 24, 2012 Posted January 24, 2012 Plus it's unclear where the people see their cars. Do we have to make a garage manually? Quote
mixmaster Posted January 24, 2012 Posted January 24, 2012 by the looks of it yes you do (bit weird) :p , i would try find a better one if i was you Quote
maplesyrupghost Posted January 24, 2012 Posted January 24, 2012 (edited) by the looks of it yes you do (bit weird) :p , i would try find a better one if i was you Yeahhhh it's a nice mod but lacking features. Edited January 24, 2012 by maplesyrupghost Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.