[Release] Tesla Model X [Add-on]

roleplay
addons
add-on
customcars

#1

Hello and thanks for taking the time out of your day to look at this!
All Credit Goes to the Model creator which there will be a link you can find under Original Car
I didn’t make this car I just Converted it
How to install:
Just simply drag the file into your resource folder and type the following into your server.cfg.
Start Teslax




Links
Original Car
Download Link


#2

Like the car itself, although the handling is really sketchy.


#3

you can always change it but many thanks


#4

Tried changing it to KHAMEL but that made the vehicle unable to move :confused: so i guess that won’t work.


#5

yh maybe try a different vehicle


#6

CYCLONE seems to work just fine.
Also, in your __resource.lua you reference a client script “vehicle_names.lua” but you don’t actually have that script, i added that script with this inside, in case you want to use that:

Citizen.CreateThread(function()
    AddTextEntry("teslax", "Tesla Model X")
    AddTextEntry("TESLA", "Tesla,")
end)

And the updated vehicles.meta (also changed the vehicleMakeName)

vehicles.meta
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfo__InitDataList>
  <residentTxd>vehshare</residentTxd>
  <residentAnims />

  <InitDatas>
   <Item>
      <modelName>teslax</modelName>
      <txdName>teslax</txdName>
      <handlingId>CYCLONE</handlingId>
      <gameName>teslax</gameName>
      <vehicleMakeName>TESLA</vehicleMakeName>
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash>VOLTIC</audioNameHash>
      <layout>LAYOUT_STANDARD</layout>
      <coverBoundOffsets>DILETTANTE_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>DEFAULT_VEHICLE_BONNET_CAMERA</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.040000" z="-0.020000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="-0.020000" />
	  <FirstPersonProjectileDriveByIKOffset x="0.055000" y="-0.080000" z="0.000000" />
	  <FirstPersonProjectileDriveByPassengerIKOffset x="-0.120000" y="-0.080000" z="0.000000" />
	  <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.020000" z="0.000000" />
	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.020000" z="0.000000" />
	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="-0.040000" z="0.010000" />
	  <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonMobilePhoneOffset x="0.140000" y="0.285000" z="0.548000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.445000" />
	  <FirstPersonMobilePhoneSeatIKOffset>
		<Item>
			<Offset x="0.136000" y="0.186000" z="0.455000" />
			<SeatIndex value="2" />
		</Item>
		<Item>
			<Offset x="0.136000" y="0.186000" z="0.455000" />
			<SeatIndex value="3" />
		</Item>
	  </FirstPersonMobilePhoneSeatIKOffset> 
      <PovCameraOffset x="0.000000" y="-0.100000" z="0.670000" />
      <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
      <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
      <PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
      <vfxInfoName>VFXVEHICLEINFO_CAR_GENERIC</vfxInfoName>
      <shouldUseCinematicViewMode value="true" />
      <shouldCameraTransitionOnClimbUpDown value="false" />
      <shouldCameraIgnoreExiting value="false" />
      <AllowPretendOccupants value="true" />
      <AllowJoyriding value="true" />
      <AllowSundayDriving value="true" />
      <AllowBodyColorMapping value="true" />
      <wheelScale value="0.203000" />
      <wheelScaleRear value="0.203000" />
      <dirtLevelMin value="0.000000" />
      <dirtLevelMax value="0.850000" />
      <envEffScaleMin value="0.000000" />
      <envEffScaleMax value="1.000000" />
      <envEffScaleMin2 value="0.000000" />
      <envEffScaleMax2 value="1.000000" />
      <damageMapScale value="1.000000" />
      <damageOffsetScale value="0.550000" />
      <diffuseTint value="0x00FFFFFF" />
      <steerWheelMult value="0.700000" />
      <HDTextureDist value="5.000000" />
      <lodDistances content="float_array">
        15.000000
        30.000000	
        70.000000	
        140.000000	
        500.000000	
        500.000000
      </lodDistances>
      <minSeatHeight value="0.871" />
      <identicalModelSpawnDistance value="100" />
      <maxNumOfSameColor value="10" />
      <defaultBodyHealth value="1000.000000" />
      <pretendOccupantsScale value="1.000000" />
      <visibleSpawnDistScale value="1.000000" />
      <trackerPathWidth value="2.000000" />
      <weaponForceMult value="2.000000" />
      <frequency value="100" />
      <swankness>SWANKNESS_5</swankness>
      <maxNum value="999" />
      <flags> FLAG_HAS_INTERIOR_EXTRAS FLAG_SPORTS FLAG_COUNT_AS_FACEBOOK_DRIVEN FLAG_RICH_CAR</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
	  <dashboardType>VDT_RACE</dashboardType>
      <vehicleClass>VC_COMPACT</vehicleClass>
      <wheelType>VWT_SPORT</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers />
      <extraIncludes />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="true" />
      <needsRopeTexture value="false" />
      <requiredExtras />
      <rewards />
      <cinematicPartCamera>
        <Item>WHEEL_FRONT_RIGHT_CAMERA</Item>
        <Item>WHEEL_FRONT_LEFT_CAMERA</Item>
        <Item>WHEEL_REAR_RIGHT_CAMERA</Item>
        <Item>WHEEL_REAR_LEFT_CAMERA</Item>
      </cinematicPartCamera>
      <NmBraceOverrideSet />
      <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
      <buoyancySphereSizeScale value="1.000000" />
      <pOverrideRagdollThreshold type="NULL" />
	  <firstPersonDrivebyData>
        <Item>STD_DILETTANTE_FRONT_LEFT</Item>
        <Item>STD_DILETTANTE_FRONT_RIGHT</Item>
        <Item>STD_DILETTANTE_REAR_LEFT</Item>
        <Item>STD_DILETTANTE_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>
 </InitDatas>

  <txdRelationships>
    <Item>
      <parent>vehicles_jet_interior</parent>
      <child>f117</child>
    </Item>
  </txdRelationships>

</CVehicleModelInfo__InitDataList>

#7

Anyway to change the speed?


#8

wow, amazing pictures!


#9

Hi, give me a link to another drive, say mega, please:}


#10

try this https://mega.nz/#F!tskDgSIK!WL730AMaFbJySN4y1GzNgw


#11

error: could load resource
what to do?


#12

how can we make the car electric ?
It use gaz on my side lol …


#13

Like actual sounds or your fuel script


#14

pretty sure he means the fuel script.


#15

No I mean that the Tesla X need gas… but my Tesla Model S doesn’t need gas…
how to make the Tesla X to use no Gas


#16

Elaborate?
Do you mean like your fuel script requires you to go to the gas station and fill it up, or does it like make engine sounds etc…?


#17

You should use AdvancedFuel and have the vehicle name under electric. (I believe)


#18

that is if he stills has AdvancedFuel that download was taken down a few months ago.


#19

That isn’t really helpful, considering AdvancedFuel was discontinued a while back. I don’t the code is public anywhere.
You could probably modify FRFuel and then build it.


#20

Negative it isn’t although you can look at the owner’s github and under his Development repository you can view the commits and browse those files he removed. but i’m pretty sure they wouldn’t be the updated ones because he never published the last updated version to that. plus i think he removed from the repository because he didn’t want anyone copying his resource.