adding train script

This commit is contained in:
KingMcDonalds
2025-08-14 13:35:16 -07:00
parent 472301ed1c
commit b1202e6689
199 changed files with 63172 additions and 3 deletions
Binary file not shown.
@@ -0,0 +1,232 @@
<?xml version="1.0"?>
<AudioWaveContainer>
<Version value="1"/>
<ChunkIndices value="True"/>
<Streams>
<Item>
<Name>brakesqueal</Name>
<FileName>brakesqueal.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="66206"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="1501"/>
<LoopPoint value="1501"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>derailloop</Name>
<FileName>derailloop.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="1489194"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="33769"/>
<LoopPoint value="33769"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>endhorn</Name>
<FileName>endhorn.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="14665"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="0"/>
<LoopPoint value="-1"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>starthorn</Name>
<FileName>starthorn.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="6262"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="0"/>
<LoopPoint value="-1"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>loophorn</Name>
<FileName>loophorn.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="23037"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="522"/>
<LoopPoint value="522"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>wheelnoise</Name>
<FileName>wheelnoise.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>PCM</Codec>
<Samples value="66069"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="1498"/>
<LoopPoint value="1498"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>metrostart</Name>
<FileName>metrostart.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>PCM</Codec>
<Samples value="10517"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="0"/>
<LoopPoint value="-1"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>metroloop</Name>
<FileName>metroloop.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>PCM</Codec>
<Samples value="80434"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="1824"/>
<LoopPoint value="1824"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
<Item>
<Name>metroend</Name>
<FileName>metroend.wav</FileName>
<Chunks>
<Item>
<Type>peak</Type>
</Item>
<Item>
<Type>data</Type>
</Item>
<Item>
<Type>format</Type>
<Codec>ADPCM</Codec>
<Samples value="15338"/>
<SampleRate value="48000"/>
<Headroom value="-100"/>
<PlayBegin value="0"/>
<PlayEnd value="0"/>
<LoopBegin value="0"/>
<LoopEnd value="0"/>
<LoopPoint value="-1"/>
<Peak unk="0"/>
</Item>
</Chunks>
</Item>
</Streams>
</AudioWaveContainer>
@@ -0,0 +1,153 @@
<?xml version="1.0"?>
<Dat54>
<Version value="7314721"/>
<ContainerPaths>
<Item>audiodirectory\train_sounds</Item>
</ContainerPaths>
<Items>
<Item type="SimpleSound">
<Name>brakesqueal_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>brakesqueal</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>derailloop_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>derailloop</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>endhorn_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>scripted</Category>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>endhorn</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>starthorn_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>starthorn</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>loophorn_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>loophorn</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>wheelnoise_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>wheelnoise</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>metrostart_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>metrostart</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>metroloop_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>metroloop</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SimpleSound">
<Name>metroend_sp</Name>
<Header>
<Flags value="0x00008004"/>
<Volume value="7000"/>
<Category>vehicles_planes_extras_loud</Category>
</Header>
<ContainerName>audiodirectory/train_sounds</ContainerName>
<FileName>metroend</FileName>
<WaveSlotNum value="0"/>
</Item>
<Item type="SoundSet">
<Name>bdtrain_soundset</Name>
<Header>
<Flags value="0xAAAAAAAA"/>
</Header>
<SoundSets>
<Item>
<ScriptName>brakesqueal</ScriptName>
<ChildSound>brakesqueal_sp</ChildSound>
</Item>
<Item>
<ScriptName>derailloop</ScriptName>
<ChildSound>derailloop_sp</ChildSound>
</Item>
<Item>
<ScriptName>endhorn</ScriptName>
<ChildSound>endhorn_sp</ChildSound>
</Item>
<Item>
<ScriptName>starthorn</ScriptName>
<ChildSound>starthorn_sp</ChildSound>
</Item>
<Item>
<ScriptName>loophorn</ScriptName>
<ChildSound>loophorn_sp</ChildSound>
</Item>
<Item>
<ScriptName>wheelnoise</ScriptName>
<ChildSound>wheelnoise_sp</ChildSound>
</Item>
<Item>
<ScriptName>metrostart</ScriptName>
<ChildSound>metrostart_sp</ChildSound>
</Item>
<Item>
<ScriptName>metroloop</ScriptName>
<ChildSound>metroloop_sp</ChildSound>
</Item>
<Item>
<ScriptName>metroend</ScriptName>
<ChildSound>metroend_sp</ChildSound>
</Item>
</SoundSets>
</Item>
</Items>
</Dat54>
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<CHandlingDataMgr>
<HandlingData>
<Item type="CHandlingData">
<handlingName>FREIGHT</handlingName>
<fMass value="25084.000000" />
<fInitialDragCoeff value="1.000000" />
<fPercentSubmerged value="90.000000" />
<vecCentreOfMassOffset x="0.000000" y="0.000000" z="1.000000" />
<vecInertiaMultiplier x="1.000000" y="1.000000" z="1.000000" />
<fDriveBiasFront value="0.000000" />
<nInitialDriveGears value="4" />
<fInitialDriveForce value="0.200000" />
<fDriveInertia value="1.000000" />
<fClutchChangeRateScaleUpShift value="1.300000" />
<fClutchChangeRateScaleDownShift value="1.300000" />
<fInitialDriveMaxFlatVel value="80.000000" />
<fBrakeForce value="5.000000" />
<fBrakeBiasFront value="0.500000" />
<fHandBrakeForce value="0.700000" />
<fSteeringLock value="35.000000" />
<fTractionCurveMax value="2.500000" />
<fTractionCurveMin value="0.800000" />
<fTractionCurveLateral value="8.000000" />
<fTractionSpringDeltaMax value="0.150000" />
<fLowSpeedTractionLossMult value="0.000000" />
<fCamberStiffnesss value="0.000000" />
<fTractionBiasFront value="0.500000" />
<fTractionLossMult value="1.000000" />
<fSuspensionForce value="0.400000" />
<fSuspensionCompDamp value="1.300000" />
<fSuspensionReboundDamp value="1.000000" />
<fSuspensionUpperLimit value="0.350000" />
<fSuspensionLowerLimit value="-0.100000" />
<fSuspensionRaise value="0.000000" />
<fSuspensionBiasFront value="0.500000" />
<fAntiRollBarForce value="0.000000" />
<fAntiRollBarBiasFront value="0.000000" />
<fRollCentreHeightFront value="0.000000" />
<fRollCentreHeightRear value="0.000000" />
<fCollisionDamageMult value="1.000000" />
<fWeaponDamageMult value="1.000000" />
<fDeformationDamageMult value="0.800000" />
<fEngineDamageMult value="1.500000" />
<fPetrolTankVolume value="0.000000" />
<fOilVolume value="0.000000" />
<fSeatOffsetDistX value="0.000000" />
<fSeatOffsetDistY value="0.000000" />
<fSeatOffsetDistZ value="0.000000" />
<nMonetaryValue value="110000" />
<strModelFlags>40008008</strModelFlags>
<strHandlingFlags>C008840</strHandlingFlags>
<strDamageFlags>20</strDamageFlags>
<AIHandling>AVERAGE</AIHandling>
<SubHandlingData>
<Item type="NULL" />
<Item type="NULL" />
<Item type="NULL" />
</SubHandlingData>
</Item>
<Item type="CHandlingData">
<handlingName>FREIGHTCAR</handlingName>
<fMass value="25084.000000" />
<fInitialDragCoeff value="1.000000" />
<fPercentSubmerged value="90.000000" />
<vecCentreOfMassOffset x="0.000000" y="0.000000" z="0.000000" />
<vecInertiaMultiplier x="1.000000" y="1.000000" z="1.000000" />
<fDriveBiasFront value="0.000000" />
<nInitialDriveGears value="4" />
<fInitialDriveForce value="0.200000" />
<fDriveInertia value="1.000000" />
<fClutchChangeRateScaleUpShift value="1.300000" />
<fClutchChangeRateScaleDownShift value="1.300000" />
<fInitialDriveMaxFlatVel value="80.000000" />
<fBrakeForce value="5.000000" />
<fBrakeBiasFront value="0.500000" />
<fHandBrakeForce value="0.700000" />
<fSteeringLock value="35.000000" />
<fTractionCurveMax value="2.500000" />
<fTractionCurveMin value="0.800000" />
<fTractionCurveLateral value="8.000000" />
<fTractionSpringDeltaMax value="0.150000" />
<fLowSpeedTractionLossMult value="0.000000" />
<fCamberStiffnesss value="0.000000" />
<fTractionBiasFront value="0.500000" />
<fTractionLossMult value="1.000000" />
<fSuspensionForce value="0.400000" />
<fSuspensionCompDamp value="1.300000" />
<fSuspensionReboundDamp value="1.000000" />
<fSuspensionUpperLimit value="0.350000" />
<fSuspensionLowerLimit value="-0.100000" />
<fSuspensionRaise value="0.000000" />
<fSuspensionBiasFront value="0.500000" />
<fAntiRollBarForce value="0.000000" />
<fAntiRollBarBiasFront value="0.000000" />
<fRollCentreHeightFront value="0.000000" />
<fRollCentreHeightRear value="0.000000" />
<fCollisionDamageMult value="1.000000" />
<fWeaponDamageMult value="1.000000" />
<fDeformationDamageMult value="0.800000" />
<fEngineDamageMult value="1.500000" />
<fPetrolTankVolume value="0.000000" />
<fOilVolume value="0.000000" />
<fSeatOffsetDistX value="0.000000" />
<fSeatOffsetDistY value="0.000000" />
<fSeatOffsetDistZ value="0.000000" />
<nMonetaryValue value="110000" />
<strModelFlags>40008008</strModelFlags>
<strHandlingFlags>8840</strHandlingFlags>
<strDamageFlags>20</strDamageFlags>
<AIHandling>AVERAGE</AIHandling>
<SubHandlingData>
<Item type="NULL" />
<Item type="NULL" />
<Item type="NULL" />
</SubHandlingData>
</Item>
</HandlingData>
</CHandlingDataMgr>
+182
View File
@@ -0,0 +1,182 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<!-- **********************************************************************************************************************
NOTE AND WARNING
If you do not know how this file works, just close it and leave it alone. One wrong line and you will crash the trains
script. I do not support crashes of your script if you make changes so change it at your own risk.
*************************************************************************************************************************** -->
<train_configs version = "1">
<!-- PASSENGER CONSISTS -->
<train_config name = "passenger_config01" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" carriage_gap = "-0.2">
<carriage model_name = "streakcoaster" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.64" repeat_count = "1" />
<carriage model_name = "streakc" max_peds_per_carriage = "7" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "9" /> <!--BD SKIN-->
</train_config>
<train_config name = "passenger_config02" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" carriage_gap = "-0.2">
<carriage model_name = "streakcoaster" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.64" repeat_count = "1" />
<carriage model_name = "streakc" max_peds_per_carriage = "7" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "2" /> <!--BD SKIN-->
</train_config>
<!-- FREIGHT CONSISTS -->
<train_config name = "freight_config01" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightboxlarge" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "5" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "3" /> <!--BD SKIN-->
<carriage model_name = "freightcaboose" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
</train_config>
<train_config name = "freight_config02" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightboxlarge" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "9" /> <!--BD SKIN-->
</train_config>
<train_config name = "freight_config03" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "9" /> <!--BD SKIN-->
</train_config>
<train_config name = "freight_config04" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "6" /> <!--BD SKIN-->
<carriage model_name = "freightflat" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "3" />
</train_config>
<train_config name = "freight_config05" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freighttankbulk" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "2" />
<carriage model_name = "freighttanklong" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "2" />
<carriage model_name = "freighttankbulk" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "2" />
<carriage model_name = "freighttanklong" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "3" />
</train_config>
<train_config name = "freight_config06" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freighttanklong" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "9" />
</train_config>
<train_config name = "freight_config07" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightflattank" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "9" />
</train_config>
<train_config name = "freight_config08" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightcoal" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "9" />
</train_config>
<train_config name = "freight_config09" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightflatlogs" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "9" />
</train_config>
<train_config name = "freight_config10" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "3" /> <!--BD SKIN-->
<carriage model_name = "freightbeamc" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "4" />
<carriage model_name = "freightbeam" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "2" />
</train_config>
<train_config name = "freight_config11" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "3" /> <!--BD SKIN-->
<carriage model_name = "freightstack" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.7" repeat_count = "5" /> <!--BD SKIN-->
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" /> <!--BD SKIN-->
</train_config>
<train_config name = "freight_config12" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightgondola" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "3" />
<carriage model_name = "freightgraincar" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "4" />
<carriage model_name = "freighthopper" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
</train_config>
<train_config name = "freight_config13" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightbox" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "4" /> <!--BD SKIN-->
<carriage model_name = "foxbox" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = ".99" repeat_count = "1" />
<carriage model_name = "freightbox" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "3" /> <!--BD SKIN-->
<carriage model_name = "freightcaboose" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
</train_config>
<train_config name = "freight_config14" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "false" carriage_gap = "-0.2">
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" /> <!--BD SKIN-->
<carriage model_name = "freightrack" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "9" /> <!--BD SKIN-->
</train_config>
<!-- METRO/SUBWAY CONSISTS -->
<train_config name = "metro_config01" populate_train_dist = "40.0" announce_stations = "true" doors_beep = "true" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "true" carriage_gap = "-0.5">
<carriage model_name = "metrotrain" max_peds_per_carriage = "4" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "0.4" repeat_count = "1" />
<carriage model_name = "metrotrain" max_peds_per_carriage = "4" flip_model_dir = "true" do_interior_lights = "true" carriage_vert_offset = "0.4" repeat_count = "1" />
</train_config>
<!-- These are all the train engines and cars avilable to use. You should copy and paste from this template into your consists to get the parameters correct because each has its own parameters. -->
<!--
<train_config name = "freight_config_template" populate_train_dist = "40.0" announce_stations = "false" doors_beep = "false" carriages_hang = "false" carriages_swing = "false" link_tracks_with_adjacent_stations = "false" no_random_spawn = "true" carriage_gap = "-0.2">
ENGINES
<carriage model_name = "freightc" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightdef" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "gevo" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "sd70mac" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "streak" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "streak42" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.64" repeat_count = "1" />
<carriage model_name = "streakclassic" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "streakcoaster" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.64" repeat_count = "1" />
CARS
<carriage model_name = "freightbeam" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightbeamc" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightbox" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightboxlarge" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightcaboose" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightcoal" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightcont" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightflat" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightflatlogs" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightflattank" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freightgondola" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightgraincar" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freighthopper" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightrack" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freightstack" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.65" repeat_count = "1" />
<carriage model_name = "freighttankbulk" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "freighttanklong" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.55" repeat_count = "1" />
<carriage model_name = "streakc" max_peds_per_carriage = "7" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "1" />
<carriage model_name = "streakcab" max_peds_per_carriage = "7" flip_model_dir = "true" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "1" />
<carriage model_name = "streakcoasterc" max_peds_per_carriage = "10" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "3" />
<carriage model_name = "streakcoastercab" max_peds_per_carriage = "7" flip_model_dir = "true" do_interior_lights = "true" carriage_vert_offset = "1.76" repeat_count = "1" />
<carriage model_name = "foxbox" max_peds_per_carriage = "0" flip_model_dir = "false" do_interior_lights = "true" carriage_vert_offset = ".99" repeat_count = "1" />
</train_config>
-->
<train_config_group name = "passenger_group">
<train_config_ref name = "passenger_config01" />
<train_config_ref name = "passenger_config02" />
</train_config_group>
<train_config_group name = "freight_group">
<train_config_ref name = "freight_config01" />
<train_config_ref name = "freight_config02" />
<train_config_ref name = "freight_config03" />
<train_config_ref name = "freight_config04" />
<train_config_ref name = "freight_config05" />
<train_config_ref name = "freight_config06" />
<train_config_ref name = "freight_config07" />
<train_config_ref name = "freight_config08" />
<train_config_ref name = "freight_config09" />
<train_config_ref name = "freight_config10" />
<train_config_ref name = "freight_config11" />
<train_config_ref name = "freight_config12" />
<train_config_ref name = "freight_config13" />
<train_config_ref name = "freight_config14" />
</train_config_group>
<train_config_group name = "metro_group">
<train_config_ref name = "metro_config01" />
</train_config_group>
</train_configs>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+49
View File
@@ -0,0 +1,49 @@
fx_version 'bodacious'
game 'gta5'
name "Trains (Overhauled Version)"
author "Big Daddy"
description "Add trains and metros with ticket purchase"
version '3.01'
lua54 "yes"
this_is_a_map 'yes'
replace_level_meta 'gta5'
client_scripts{
"settings.ini",
"*.Client.net.dll",
"Newtonsoft.Json.dll"
}
server_scripts {
"settings.ini",
"server.lua",
"*.Server.net.dll",
"Newtonsoft.Json.dll"
}
files {
'gta5.meta',
'data/trains.xml',
'data/vehicles.meta',
'data/handling.meta',
'data/vehiclelayouts.meta',
'data/bdtrain_sounds.dat54.rel',
'audiodirectory/train_sounds.awc',
'data/trainstations.json',
'stream/*.ytyp',
}
data_file 'TRAINCONFIGS_FILE' 'data/trains.xml'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'data/vehiclelayouts.meta'
data_file 'AUDIO_WAVEPACK' 'audiodirectory'
data_file 'AUDIO_SOUNDDATA' 'data/bdtrain_sounds.dat'
data_file 'DLC_ITYP_REQUEST' 'stream/*.ytyp'
File diff suppressed because it is too large Load Diff
+206
View File
@@ -0,0 +1,206 @@
framework = 'bigdaddy' --VALUES CAN BE 'nat', 'qb', 'esx', 'nd', 'bigdaddy' or 'custom'
reason = 'Train Ticket Purchase' --reason for the transaction will notify using framework methods
useSociety = false
toSocietyaccount = ''
local currencySymbol = '$'
if framework == 'nat' then
print('Framework set to nat')
elseif framework == 'qb' then
QBCore = exports['qb-core']:GetCoreObject()
elseif framework == 'esx' then
ESX = exports["es_extended"]:getSharedObject()
elseif framework == 'nd' then
NDCore = exports.ND_Core:GetCoreObject()
elseif framework == 'bigdaddy' then
print('Framework set to Big Daddy')
elseif framework == 'custom' then
print('LOAD CORE OBJECT HERE IF REQUIRED, if not then you may disregard this statement.')
else
print('FRAMEWORK IS NOT SET PROPERLY FOR RESOURCE! Check server.lua in ' .. GetCurrentResourceName() .. ' for money events. The current value is set to ' .. framework .. ', and this is not a valid selection.' )
end
RegisterNetEvent('BigDaddy-Trains:Pay', function(amount, playerId)
local src = source
if framework == 'nat' then
local account = exports.money:getaccount(src)
if (tonumber(account.bank) >= tonumber(amount)) then
local newbalance = tonumber(account.bank) - tonumber(amount)
exports.money:updateaccount(src, {cash = account.amount, bank = newbalance})
exports.money:bankNotify(src, reason .. ' ' .. currencySymbol .. amount )
end
elseif framework == 'qb' then
local Player = QBCore.Functions.GetPlayer(src)
if (Player.Functions.GetMoney(bank) >= tonumber(amount)) then
Player.Functions.RemoveMoney('bank', tonumber(amount), reason)
if (useSociety) then
exports['qb-management']:AddMoney(toSocietyaccount, tonumber(amount))
end
TriggerClientEvent('QBCore:Notify', src, reason, 'primary', 5000)
end
elseif framework == 'esx' then
local xPlayer = ESX.GetPlayerFromId(src)
if (xPlayer.getAccount("bank") >= tonumber(amount)) then
xPlayer.removeAccountMoney('bank', tonumber(amount))
xPlayer.showNotification(reason)
end
elseif framework == 'nd' then
local Player = NDCore.Functions.GetPlayer(src)
if (Player.bank >= amount) then
NDCore.Functions.DeductMoney(amount, src, 'bank', reason)
end
elseif framework == 'bigdaddy' then
local account = exports['BigDaddy-Money']:GetAccounts(src, playerId, -1)
local data = json.decode(account)
if (tonumber(data.bank) >= tonumber(amount)) then
local newbalance = tonumber(data.bank) - tonumber(amount)
exports['BigDaddy-Money']:UpdateTotals(src, newbalance, data.cash, data.dirty, -1)
TriggerClientEvent("BigDaddy-Money:Notify", src, 'Paid ' .. currencySymbol .. string.format("%.2f", amount) .. ' ' .. reason)
end
elseif framework == 'custom' then
--INSERT CUSTOM CODE HERE FOR CASH MANAGEMENT
else
print('FRAMEWORK IS NOT SET PROPERLY FOR RESOURCE! Check server.lua in ' .. GetCurrentResourceName() .. ' for money events. The current value is set to ' .. framework .. ', and this is not a valid selection.' )
end
end)
RegisterNetEvent('BigDaddy-Trains:PayTo', function(amount, playerId, toPlayerId)
local src = source
if framework == 'nat' then
local account = exports.money:getaccount(src)
if (tonumber(account.bank) >= tonumber(amount)) then
local newbalance = tonumber(account.bank) - tonumber(amount)
exports.money:updateaccount(src, {cash = account.amount, bank = newbalance})
exports.money:bankNotify(src, reason .. ' ' .. currencySymbol .. amount )
end
elseif framework == 'qb' then
local Player = QBCore.Functions.GetPlayer(src)
if (Player.Functions.GetMoney(bank) >= tonumber(amount)) then
Player.Functions.RemoveMoney('bank', tonumber(amount), reason)
if (useSociety) then
exports['qb-management']:AddMoney(toSocietyaccount, tonumber(amount))
end
TriggerClientEvent('QBCore:Notify', src, reason, 'primary', 5000)
end
elseif framework == 'esx' then
local xPlayer = ESX.GetPlayerFromId(src)
if (xPlayer.getAccount("bank") >= tonumber(amount)) then
xPlayer.removeAccountMoney('bank', tonumber(amount))
xPlayer.showNotification(reason)
end
elseif framework == 'nd' then
local Player = NDCore.Functions.GetPlayer(src)
if (Player.bank >= amount) then
NDCore.Functions.DeductMoney(amount, src, 'bank', reason)
end
elseif framework == 'bigdaddy' then
local account = exports['BigDaddy-Money']:GetAccounts(src, playerId, -1)
local data = json.decode(account)
if (tonumber(data.bank) >= tonumber(amount)) then
local newbalance = tonumber(data.bank) - tonumber(amount)
exports['BigDaddy-Money']:UpdateTotals(src, newbalance, data.cash, data.dirty, -1)
TriggerClientEvent("BigDaddy-Money:Notify", src, 'Paid ' .. currencySymbol .. string.format("%.2f", amount) .. ' ' .. reason)
end
if toPlayerId > -1 then
local toaccount = exports['BigDaddy-Money']:GetAccounts(toPlayerId, toPlayerId, -1)
local todata = json.decode(toaccount)
local newtobalance = tonumber(todata.bank) + tonumber(amount)
exports['BigDaddy-Money']:UpdateTotals(toPlayerId, newtobalance, todata.cash, todata.dirty, -1)
TriggerClientEvent("BigDaddy-Money:Notify", toPlayerId, 'Received ' .. currencySymbol .. string.format("%.2f", amount) .. ' ' .. reason)
end
elseif framework == 'custom' then
--INSERT CUSTOM CODE HERE FOR CASH MANAGEMENT
else
print('FRAMEWORK IS NOT SET PROPERLY FOR RESOURCE! Check server.lua in ' .. GetCurrentResourceName() .. ' for money events. The current value is set to ' .. framework .. ', and this is not a valid selection.' )
end
end)
RegisterNetEvent('BigDaddy-Trains:GetPaid', function(amount, toPlayerId)
local src = source
if framework == 'nat' then
local account = exports.money:getaccount(src)
if (tonumber(account.bank) >= tonumber(amount)) then
local newbalance = tonumber(account.bank) - tonumber(amount)
exports.money:updateaccount(src, {cash = account.amount, bank = newbalance})
exports.money:bankNotify(src, reason .. ' ' .. currencySymbol .. amount )
end
elseif framework == 'qb' then
local Player = QBCore.Functions.GetPlayer(src)
if (Player.Functions.GetMoney(bank) >= tonumber(amount)) then
Player.Functions.RemoveMoney('bank', tonumber(amount), reason)
if (useSociety) then
exports['qb-management']:AddMoney(toSocietyaccount, tonumber(amount))
end
TriggerClientEvent('QBCore:Notify', src, reason, 'primary', 5000)
end
elseif framework == 'esx' then
local xPlayer = ESX.GetPlayerFromId(src)
if (xPlayer.getAccount("bank") >= tonumber(amount)) then
xPlayer.removeAccountMoney('bank', tonumber(amount))
xPlayer.showNotification(reason)
end
elseif framework == 'nd' then
local Player = NDCore.Functions.GetPlayer(src)
if (Player.bank >= amount) then
NDCore.Functions.DeductMoney(amount, src, 'bank', reason)
end
elseif framework == 'bigdaddy' then
if toPlayerId > -1 then
local toaccount = exports['BigDaddy-Money']:GetAccounts(toPlayerId, toPlayerId, -1)
local todata = json.decode(toaccount)
local newtobalance = tonumber(todata.bank) + tonumber(amount)
exports['BigDaddy-Money']:UpdateTotals(toPlayerId, newtobalance, todata.cash, todata.dirty, -1)
TriggerClientEvent("BigDaddy-Money:Notify", toPlayerId, 'Received ' .. currencySymbol .. string.format("%.2f", amount) .. ' ' .. reason)
end
elseif framework == 'custom' then
--INSERT CUSTOM CODE HERE FOR CASH MANAGEMENT
else
print('FRAMEWORK IS NOT SET PROPERLY FOR RESOURCE! Check server.lua in ' .. GetCurrentResourceName() .. ' for money events. The current value is set to ' .. framework .. ', and this is not a valid selection.' )
end
end)
RegisterServerEvent('BigDaddy-Trains:GetAccounts')
AddEventHandler('BigDaddy-Trains:GetAccounts', function()
local src = source
if framework == 'nat' then
local account = exports.money:getaccount(src)
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, tonumber(account.bank));
elseif framework == 'qb' then
local Player = QBCore.Functions.GetPlayer(src)
if Player ~= nil then
local money = Player.Functions.GetMoney(bank)
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, money);
else
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, 0);
end
elseif framework == 'esx' then
local xPlayer = ESX.GetPlayerFromId(src)
if xPlayer ~= nil then
local money = xPlayer.getAccount('bank').money
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, money);
else
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, 0);
end
elseif framework == 'nd' then
local Player = NDCore.Functions.GetPlayer(src)
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, Player.bank);
elseif framework == 'bigdaddy' then
local account = exports['BigDaddy-Money']:GetAccounts(src, playerId, -1)
local data = json.decode(account)
TriggerClientEvent("BigDaddy-Trains:SetAccounts", src, data.bank);
elseif framework == 'custom' then
--INSERT CUSTOM CODE HERE FOR CASH MANAGEMENT
else
print('FRAMEWORK IS NOT SET PROPERLY FOR RESOURCE! Check server.lua in ' .. GetCurrentResourceName() .. ' for money events. The current value is set to ' .. framework .. ', and this is not a valid selection.' )
end
end)
+53
View File
@@ -0,0 +1,53 @@
[licensing]
key1=U1toTgrRaW7Nc04lJSj16J%2beBiC8OlYUGYrQ3cuR2foKqjPjUb7rww%3d%3d
[settings]
;if you want each type to spawn then = true (NOTE: this can and will be overridden by setting allowDriving=true below)
spawnMetro=true
spawnFreight=true
;spawnPassenger=false ; this is not implemented yet
;how often the trains will spawn in minutes
metroFrequency=7
freightFrequency=15
;allow spawning and driving of trains (disables auto spawn if used, so there aren't collisions/conflicts')
allowDriving=true
;set to whatever you want a ticket to cost
ticketPrice=25
passengerTicketPrice=75
;set to false to not have the metro stations on the map
showTrainBlips=true
;set to false to just "pretend" to charge money - if set to true, use the server.lua to setup your money framework
useMoney=true
;for derailments and fires from sparks 0 = none and 100 means always
riskChance=20
;set to true to allow a chance of derailing if going too fast
autoDerail=true
;the script tries to auto determine what index your trains are
;it is rare that these need to be used so just leave them
metroTrainIndex=15
freightTrainIndexes=2,14
passengerTrainIndexes=0,1
;do not change this unless asked to do so by Big Daddy support
disableAutoIndexing=false
;don't change this line or it'll break your trains
customTrains=true
;set this to false to use km/h
MPH=true
[locales]
hasTicket=You have a ticket and may enter the metro
currentStation=Current Station
nextStation=The next station is
noPassenger=No passenger trains available in the standard version of this script
invalidTrain=Invalid train type
;DO NOT change the ~INPUT_CONTEXT~ because you'll break ticket purchases
toBuyTicket=Press ~INPUT_CONTEXT~ to to buy a metro ticket
alreadyHaveTicket=You already have a ticket to ride, go get on a train
alreadyHaveTicket2=You already have a valid Metro Ticket, please go to one of the stations and board the Metro
information=Information
thankYouRide=Thank you for riding with LSTI today
invalidateOnExit=Your one time use ticket is now void after this ride
noTicket=You do not have a ticket to ride the metro. Please exit and purchase a ticket
trainSpeed=Train Speed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More