1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-30 00:27:25 +02:00
parent 00910d1237
commit 0f392143e5
11 changed files with 329 additions and 14 deletions

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfoVarGlobal>
<Kits>
</Kits>
<Lights>
</Lights>
</CVehicleModelInfoVarGlobal>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfoVariation>
<variationData>
<Item>
<modelName>schlagengt4</modelName>
<colors>
<Item>
<indices content="char_array">
111
0
156
89
0
111
</indices>
<liveries>
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
</colors>
<kits>
<Item>0_default_modkit</Item>
</kits>
<windowsWithExposedEdges />
<plateProbabilities>
<Probabilities>
<Item>
<Name>Standard White</Name>
<Value value="100" />
</Item>
</Probabilities>
</plateProbabilities>
<lightSettings value="1203" />
<sirenSettings value="0" />
</Item>
</variationData>
</CVehicleModelInfoVariation>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CExtraTextMetaFile>
<hasGlobalTextFile value="true"/>
<hasAdditionalText value="false"/>
<isTitleUpdate value="false"/>
</CExtraTextMetaFile>

View file

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<CHandlingDataMgr>
<HandlingData>
<Item type="CHandlingData">
<handlingName>schlagengt4</handlingName>
<fMass value="2000.000000" />
<fInitialDragCoeff value="10.4270" />
<fPercentSubmerged value="85.000000" />
<vecCentreOfMassOffset x="0.000000" y="-0.125000" z="-0.2000000" />
<vecInertiaMultiplier x="1.000000" y="1.600000" z="1.700000" />
<fDriveBiasFront value="0.400000" />
<nInitialDriveGears value="7" />
<fInitialDriveForce value="0.365000" />
<fDriveInertia value="1.000000" />
<fClutchChangeRateScaleUpShift value="7.000000" />
<fClutchChangeRateScaleDownShift value="6.000000" />
<fInitialDriveMaxFlatVel value="325.500000" />
<fBrakeForce value="3.30000" />
<fBrakeBiasFront value="0.60000" />
<fHandBrakeForce value="0.500000" />
<fSteeringLock value="40.000000" />
<fTractionCurveMax value="2.275000" />
<fTractionCurveMin value="2.20000" />
<fTractionCurveLateral value="22.500000" />
<fTractionSpringDeltaMax value="0.150000" />
<fLowSpeedTractionLossMult value="1.00000" />
<fCamberStiffnesss value="0.000000" />
<fTractionBiasFront value="0.500000" />
<fTractionLossMult value="1.000000" />
<fSuspensionForce value="2.250000" />
<fSuspensionCompDamp value="1.500000" />
<fSuspensionReboundDamp value="2.2500000" />
<fSuspensionUpperLimit value="0.050000" />
<fSuspensionLowerLimit value="-0.0750000" />
<fSuspensionRaise value="0.000000" />
<fSuspensionBiasFront value="0.500000" />
<fAntiRollBarForce value="0.700000" />
<fAntiRollBarBiasFront value="0.400000" />
<fRollCentreHeightFront value="0.240000" />
<fRollCentreHeightRear value="0.240000" />
<fCollisionDamageMult value="0.700000" />
<fWeaponDamageMult value="1.000000" />
<fDeformationDamageMult value="0.700000" />
<fEngineDamageMult value="1.500000" />
<fPetrolTankVolume value="65.000000" />
<fOilVolume value="5.000000" />
<fSeatOffsetDistX value="0.000000" />
<fSeatOffsetDistY value="0.000000" />
<fSeatOffsetDistZ value="0.000000" />
<nMonetaryValue value="35000" />
<strModelFlags>441010</strModelFlags>
<strHandlingFlags>20002</strHandlingFlags>
<strDamageFlags>0</strDamageFlags>
<AIHandling>AVERAGE</AIHandling>
<SubHandlingData>
<Item type="NULL" />
<Item type="NULL" />
<Item type="NULL" />
</SubHandlingData>
</Item>
</HandlingData>
</CHandlingDataMgr>

View file

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfo__InitDataList>
<residentTxd>vehshare</residentTxd>
<residentAnims />
<InitDatas>
<Item>
<modelName>schlagengt4</modelName>
<txdName>schlagengt4</txdName>
<handlingId>schlagengt4</handlingId>
<gameName>schlagengt4</gameName>
<vehicleMakeName>Benefactor</vehicleMakeName>
<expressionDictName>null</expressionDictName>
<expressionName>null</expressionName>
<animConvRoofDictName>null</animConvRoofDictName>
<animConvRoofName>null</animConvRoofName>
<animConvRoofWindowsAffected />
<ptfxAssetName>null</ptfxAssetName>
<audioNameHash>xa21</audioNameHash>
<layout>LAYOUT_STANDARD</layout>
<coverBoundOffsets>NEON_COVER_OFFSET_INFO</coverBoundOffsets>
<explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
<scenarioLayout />
<cameraName>FOLLOW_CHEETAH_CAMERA</cameraName>
<aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
<bonnetCameraName>VEHICLE_BONNET_CAMERA_LOW</bonnetCameraName>
<povCameraName>REDUCED_NEAR_CLIP_POV_CAMERA</povCameraName>
<FirstPersonDriveByIKOffset x="0.070000" y="-0.100000" z="-0.050000" />
<FirstPersonDriveByUnarmedIKOffset x="-0.020000" y="-0.100000" z="0.000000" />
<FirstPersonProjectileDriveByIKOffset x="0.050000" y="-0.090000" z="-0.070000" />
<FirstPersonProjectileDriveByPassengerIKOffset x="-0.002000" y="-0.100000" z="-0.050000" />
<FirstPersonProjectileDriveByRearLeftIKOffset x="-0.070000" y="-0.040000" z="-0.040000" />
<FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="-0.040000" z="-0.040000" />
<FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="-0.020000" z="-0.030000" />
<FirstPersonDriveByRightPassengerIKOffset x="-0.050000" y="-0.080000" z="-0.060000" />
<FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.010000" z="0.000000" />
<FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="-0.125000" z="0.000000" />
<FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="-0.125000" z="0.000000" />
<FirstPersonMobilePhoneOffset x="0.130000" y="0.208000" z="0.514000" />
<FirstPersonPassengerMobilePhoneOffset x="0.200000" y="0.118000" z="0.426000" />
<FirstPersonMobilePhoneSeatIKOffset>
<Item>
<Offset x="0.190000" y="0.118000" z="0.436000" />
<SeatIndex value="2" />
</Item>
<Item>
<Offset x="0.190000" y="0.118000" z="0.436000" />
<SeatIndex value="3" />
</Item>
</FirstPersonMobilePhoneSeatIKOffset>
<PovCameraOffset x="0.000000" y="-0.200000" z="0.585000" />
<PovCameraVerticalAdjustmentForRollCage value="0.000000" />
<PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
<PovRearPassengerCameraOffset x="0.000000" y="-0.025000" z="0.020000" />
<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.277300" />
<wheelScaleRear value="0.277300" />
<dirtLevelMin value="0.000000" />
<dirtLevelMax value="0.300000" />
<envEffScaleMin value="0.000000" />
<envEffScaleMax value="1.000000" />
<envEffScaleMin2 value="0.000000" />
<envEffScaleMax2 value="1.000000" />
<damageMapScale value="0.3" />
<damageOffsetScale value="0.3" />
<diffuseTint value="0x00FFFFFF" />
<steerWheelMult value="0.700000" />
<HDTextureDist value="5.000000" />
<lodDistances content="float_array">
500.000000
500.000000
500.000000
500.000000
500.000000
500.000000
</lodDistances>
<identicalModelSpawnDistance value="20" />
<maxNumOfSameColor value="10" />
<defaultBodyHealth value="1000.000000" />
<pretendOccupantsScale value="1.000000" />
<visibleSpawnDistScale value="1.000000" />
<trackerPathWidth value="2.000000" />
<weaponForceMult value="1.000000" />
<frequency value="50" />
<swankness>SWANKNESS_2</swankness>
<maxNum value="50" />
<flags>FLAG_AVERAGE_CAR FLAG_POOR_CAR </flags>
<type>VEHICLE_TYPE_CAR</type>
<plateType>VPT_BACK_PLATES</plateType>
<dashboardType>VDT_GENTAXI</dashboardType>
<vehicleClass>VC_SPORT</vehicleClass>
<wheelType>VWT_SPORT</wheelType>
<trailers />
<additionalTrailers />
<drivers />
<extraIncludes />
<doorsWithCollisionWhenClosed />
<driveableDoors />
<bumpersNeedToCollideWithMap value="false" />
<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_NEON_FRONT_LEFT</Item>
<Item>STD_NEON_FRONT_RIGHT</Item>
<Item>STD_NEON_REAR_LEFT</Item>
<Item>STD_NEON_REAR_RIGHT</Item>
</firstPersonDrivebyData>
</Item>
</InitDatas>
<txdRelationships>
<Item>
<parent>vehicles_poltax_interior</parent>
<child>schlagengt4</child>
</Item>
</txdRelationships>
</CVehicleModelInfo__InitDataList>

View file

@ -0,0 +1,18 @@
fx_version 'adamant'
game 'gta5'
files {
'**/**.meta',
'**/**.meta',
'**/**.meta',
'**/**.meta',
'**/**.meta',
}
data_file 'HANDLING_FILE' '**/**.meta'
data_file 'VEHICLE_METADATA_FILE' '**/**.meta'
data_file 'CARCOLS_FILE' '**/**.meta'
data_file 'VEHICLE_VARIATION_FILE' '**/**.meta'
data_file 'VEHICLE_LAYOUTS_FILE' '**/**.meta' -- Not Required

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -712,32 +712,57 @@ RegisterNetEvent('vending:client:startRobbery', function(coords)
end
end)
-- Police alert
RegisterNetEvent('vending:client:policeAlert', function(coords, streetName)
local alert = {
title = "Verkaufsautomat Aufbruch",
coords = coords,
description = "Ein Verkaufsautomat wird aufgebrochen in " .. streetName
}
-- Police alert with ox_lib notification and blinking blip
RegisterNetEvent('vending:client:policeAlert', function(alertData)
-- Extract data
local coords = alertData.coords
local locationName = alertData.locationName
-- Add blip
-- Create a blinking blip
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 161)
SetBlipColour(blip, 1)
SetBlipScale(blip, 1.0)
SetBlipSprite(blip, 161) -- Robbery icon
SetBlipColour(blip, 1) -- Red color
SetBlipScale(blip, 1.2)
SetBlipAsShortRange(blip, false)
-- Make the blip flash
SetBlipFlashes(blip, true)
SetBlipFlashInterval(blip, 200) -- Flash interval in milliseconds
-- Set blip name
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("Verkaufsautomat Aufbruch")
EndTextCommandSetBlipName(blip)
-- Create route to the robbery
SetBlipRoute(blip, true)
SetBlipRouteColour(blip, 1) -- Red route
-- Show ox_lib notification
if lib and lib.notify then
lib.notify({
title = 'Verkaufsautomat Aufbruch',
description = 'Ein Verkaufsautomat wird aufgebrochen bei ' .. locationName,
type = 'error',
icon = 'fas fa-mask',
position = 'top-right',
duration = 8000
})
else
-- Fallback to QBCore notification if ox_lib is not available
QBCore.Functions.Notify('Verkaufsautomat Aufbruch gemeldet: ' .. locationName, 'error', 8000)
end
-- Play alert sound
PlaySound(-1, "Lose_1st", "GTAO_FM_Events_Soundset", 0, 0, 1)
-- Remove blip after 5 minutes
SetTimeout(300000, function()
RemoveBlip(blip)
end)
QBCore.Functions.Notify('Verkaufsautomat Aufbruch gemeldet: ' .. streetName, 'error', 8000)
end)
-- Management menu (alternative opening method)
RegisterNetEvent('vending:client:openManagement', function(machine)
-- Fast check for management permissions

View file

@ -523,10 +523,20 @@ RegisterNetEvent('vending:server:startRobbery', function(coords)
-- Alert police - use a generic location name instead of street name
local locationName = "Verkaufsautomat #" .. machineId
-- Get player position for more accurate location
local playerPos = GetEntityCoords(GetPlayerPed(src))
-- Alert police with enhanced data
local alertData = {
coords = coords,
locationName = locationName,
machineId = machineId
}
local players = QBCore.Functions.GetQBPlayers()
for k, v in pairs(players) do
if v.PlayerData.job.name == 'police' and v.PlayerData.job.onduty then
TriggerClientEvent('vending:client:policeAlert', v.PlayerData.source, coords, locationName)
TriggerClientEvent('vending:client:policeAlert', v.PlayerData.source, alertData)
end
end
@ -550,6 +560,7 @@ RegisterNetEvent('vending:server:startRobbery', function(coords)
TriggerClientEvent('vending:client:startRobbery', src, coords)
end)
-- Complete robbery
RegisterNetEvent('vending:server:completeRobbery', function(coords, success)
local src = source