kewiiNNN Posted February 19, 2015 Share Posted February 19, 2015 how to change this script so cars will spawn with custom handling? like i paste the code of a handling somewhere? local cars = { {429}, {402}, {541}, {415}, {480}, {562}, {587}, {565}, {411}, {559}, {603}, {560}, {506}, {451}, {558}, {555}, {477} } carmarker = createMarker( -2670.2495117188,632.93334960938,13.5, "cylinder", 1.5, 0, 0, 255, 210, root ) createBlipAttachedTo(carmarker,25) theVehicle = {} function carmarkerhit(hitElement) if isElement(theVehicle[hitElement]) then return destroyElement(theVehicle[hitElement]) end if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then randomcar = math.random(#cars) carid = cars[randomcar][1] theVehicle[hitElement] = createVehicle(carid, -2674.5383300781,630.00115966797,13.862801551819, 0, 0, 90) warpPedIntoVehicle(hitElement,theVehicle[hitElement]) end end addEventHandler("onMarkerHit", carmarker, carmarkerhit) Link to comment
JR10 Posted February 19, 2015 Share Posted February 19, 2015 You can use setVehicleHandling on theVehicle[hitElement] just below createVehicle. setVehicleHandling Link to comment
kewiiNNN Posted February 19, 2015 Author Share Posted February 19, 2015 i want to paste code like this 1040.0 4000.1 1.3 0.0 0.1 -0.8 75 0.70 0.80 0.47 5 400.0 65.0 5.0 R P 8.0 0.45 0 65.0 1.4 0.15 0.0 0.20 -0.04 0.6 0.4 0.80 0.10 35000 40002800 200000 0 2 0 not like i have to change that all cause i dont know how much is mass and that stuff Link to comment
JR10 Posted February 19, 2015 Share Posted February 19, 2015 This might help: http://www.gtamodding.com/wiki/Handling ... an_Andreas Link to comment
kewiiNNN Posted February 19, 2015 Author Share Posted February 19, 2015 this is so hard Link to comment
#MFGR7OM Posted February 19, 2015 Share Posted February 19, 2015 this is so hard Use Script Mr.Tn6el Link to comment
JR10 Posted February 19, 2015 Share Posted February 19, 2015 Check this out: https://wiki.multitheftauto.com/wiki/Handling.cfg There is instructions on how to load a custom handling.cfg, you can also edit it so that it converts your line into several setVehicleHandling funcitons. My bad, I should have suggested it first. 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