diff --git a/resources/[cars]/[policecars]/doj_suv/data/carcols.meta b/resources/[cars]/[policecars]/doj_suv/data/carcols.meta new file mode 100644 index 000000000..8a3472abb --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/data/carcols.meta @@ -0,0 +1,596 @@ + + + + + + umk-govcaval3 + + + + + + + VehicleLight_misc_searchlight + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/doj_suv/data/carvariations.meta b/resources/[cars]/[policecars]/doj_suv/data/carvariations.meta new file mode 100644 index 000000000..53aef8428 --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/data/carvariations.meta @@ -0,0 +1,203 @@ + + + + + govcaval3 + + + + 0 + 0 + 0 + 0 + 3 + 156 + + + + + + + + + + + + + + + 112 + 112 + 0 + 0 + 0 + 156 + + + + + + + + + + + + + + + 0 + 112 + 0 + 0 + 0 + 156 + + + + + + + + + + + + + + + 112 + 0 + 0 + 0 + 0 + 156 + + + + + + + + + + + + + + + 0_default_modkit + + + + + + Police guv plate + + + + + + + + + umkcaval3 + + + + 36 + 0 + 1 + 0 + 3 + 156 + + + + + + + + + + + + + + + 34 + 0 + 1 + 0 + 3 + 156 + + + + + + + + + + + + + + + 71 + 0 + 127 + 0 + 3 + 156 + + + + + + + + + + + + + + + 31 + 31 + 30 + 0 + 3 + 156 + + + + + + + + + + + + + + + 546_cavalcade3_modkit + + + + + + Police guv plate + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/doj_suv/data/dlctext.meta b/resources/[cars]/[policecars]/doj_suv/data/dlctext.meta new file mode 100644 index 000000000..22bb4c390 --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/data/dlctext.meta @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/doj_suv/data/handling.meta b/resources/[cars]/[policecars]/doj_suv/data/handling.meta new file mode 100644 index 000000000..2abe13622 --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/data/handling.meta @@ -0,0 +1,67 @@ + + + + + GOVCAVAL3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + AVERAGE + + + + + + 14008000 + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/doj_suv/data/vehicles.meta b/resources/[cars]/[policecars]/doj_suv/data/vehicles.meta new file mode 100644 index 000000000..f2d20a47d --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/data/vehicles.meta @@ -0,0 +1,246 @@ + + + vehshare + + + + govcaval3 + govcaval3 + GOVCAVAL3 + GOVCAVAL3 + ALBANY + null + null + null + null + + null + + LAYOUT_STD_GRANGER2 + CAVALCADE3_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + BOX_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_STANDARD_LONG_REBLA + REDUCED_NEAR_CLIP_POV_CAMERA + + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 15.000000 + 35.000000 + 80.000000 + 160.000000 + 500.000000 + 500.000000 + + + + + + + + + + + SWANKNESS_1 + + FLAG_LAW_ENFORCEMENT FLAG_AVERAGE_CAR FLAG_IS_OFFROAD_VEHICLE FLAG_IS_BULKY + FLAG_RECESSED_HEADLIGHT_CORONAS + FLAG_INCREASE_CAMBER_WITH_SUSPENSION_MOD FLAG_HAS_BULLET_RESISTANT_GLASS + FLAG_HAS_INCREASED_RAMMING_FORCE FLAG_HAS_CAPPED_EXPLOSION_DAMAGE + VEHICLE_TYPE_CAR + VPT_FRONT_AND_BACK_PLATES + VDT_RACE + VC_EMERGENCY + VWT_SUV + + + + + + + + + + + + WHEEL_FRONT_RIGHT_CAMERA + WHEEL_FRONT_LEFT_CAMERA + WHEEL_REAR_RIGHT_CAMERA + WHEEL_REAR_LEFT_CAMERA + + + + + + + CAVALCADE3_FRONT_LEFT + CAVALCADE3_FRONT_RIGHT + CAVALCADE3_REAR_LEFT + CAVALCADE3_REAR_RIGHT + + + + umkcaval3 + umkcaval3 + GOVCAVAL3 + UMKCAVAL3 + ALBANY + null + null + null + null + + null + govcaval3 + LAYOUT_RANGER + CAVALCADE3_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + BOX_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_STANDARD_LONG_REBLA + REDUCED_NEAR_CLIP_POV_CAMERA + + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 15.000000 + 35.000000 + 80.000000 + 160.000000 + 500.000000 + 500.000000 + + + + + + + + + + + SWANKNESS_1 + + FLAG_LAW_ENFORCEMENT FLAG_AVERAGE_CAR FLAG_IS_OFFROAD_VEHICLE FLAG_IS_BULKY + FLAG_RECESSED_HEADLIGHT_CORONAS FLAG_INCREASE_CAMBER_WITH_SUSPENSION_MOD + FLAG_HAS_INCREASED_RAMMING_FORCE FLAG_HAS_CAPPED_EXPLOSION_DAMAGE FLAG_HAS_LIVERY + VEHICLE_TYPE_CAR + VPT_FRONT_AND_BACK_PLATES + VDT_RACE + VC_EMERGENCY + VWT_SUV + + + + + + + + + + + + WHEEL_FRONT_RIGHT_CAMERA + WHEEL_FRONT_LEFT_CAMERA + WHEEL_REAR_RIGHT_CAMERA + WHEEL_REAR_LEFT_CAMERA + + + + + + + CAVALCADE3_FRONT_LEFT + CAVALCADE3_FRONT_RIGHT + CAVALCADE3_REAR_LEFT + CAVALCADE3_REAR_RIGHT + + + + + + vehicles_gendials + govcaval3 + + + vehicles_gendials + umkcaval3 + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/doj_suv/fxmanifest.lua b/resources/[cars]/[policecars]/doj_suv/fxmanifest.lua new file mode 100644 index 000000000..717fceb4a --- /dev/null +++ b/resources/[cars]/[policecars]/doj_suv/fxmanifest.lua @@ -0,0 +1,26 @@ +-- fxmanifest.lua + +fx_version 'cerulean' +game 'gta5' + +author 'Dein Name' +description 'Addon Fahrzeug-Paket' +version '1.0.0' + +files { + 'data/vehicles.meta', + 'data/carvariations.meta', + 'data/carcols.meta', + 'data/handling.meta', + 'data/dlctext.meta' +} + +data_file 'HANDLING_FILE' 'data/handling.meta' +data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta' +data_file 'CARCOLS_FILE' 'data/carcols.meta' +data_file 'VEHICLE_VARIATION_FILE' 'data/carvariations.meta' +data_file 'DLCTEXT_FILE' 'data/dlctext.meta' + +-- Stream für Modelle & Texturen +-- Modelle liegen im stream-Ordner (z.B. .yft, .ytd, .hi.yft) +-- Der stream-Ordner muss nicht extra deklariert werden, wird automatisch erkannt diff --git a/resources/[cars]/[policecars]/doj_suv/stream/govcaval3+hi.ytd b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3+hi.ytd new file mode 100644 index 000000000..41c2924a9 Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3+hi.ytd differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.yft b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.yft new file mode 100644 index 000000000..cb1a43511 Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.yft differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.ytd b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.ytd new file mode 100644 index 000000000..cd0144491 Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3.ytd differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/govcaval3_hi.yft b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3_hi.yft new file mode 100644 index 000000000..e6750c8db Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/govcaval3_hi.yft differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3+hi.ytd b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3+hi.ytd new file mode 100644 index 000000000..585afaa8e Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3+hi.ytd differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.yft b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.yft new file mode 100644 index 000000000..2dc23cd94 Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.yft differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.ytd b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.ytd new file mode 100644 index 000000000..78dfaaa6c Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3.ytd differ diff --git a/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3_hi.yft b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3_hi.yft new file mode 100644 index 000000000..3f7501089 Binary files /dev/null and b/resources/[cars]/[policecars]/doj_suv/stream/umkcaval3_hi.yft differ diff --git a/resources/[cars]/[policecars]/noose_sedan/__resource.lua b/resources/[cars]/[policecars]/noose_sedan/__resource.lua new file mode 100644 index 000000000..11fbd4e3c --- /dev/null +++ b/resources/[cars]/[policecars]/noose_sedan/__resource.lua @@ -0,0 +1,15 @@ +resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' + +files { + 'handling.meta', + 'vehiclelayouts.meta', + 'vehicles.meta', + 'carvariations.meta', + 'carcols.meta', +} + +data_file 'HANDLING_FILE' 'handling.meta' +data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' +data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta' +data_file 'CARCOLS_FILE' 'carcols.meta' +data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta' \ No newline at end of file diff --git a/resources/[cars]/[policecars]/noose_sedan/carcols.meta b/resources/[cars]/[policecars]/noose_sedan/carcols.meta new file mode 100644 index 000000000..2ecdc4ac6 --- /dev/null +++ b/resources/[cars]/[policecars]/noose_sedan/carcols.meta @@ -0,0 +1,779 @@ + + + + + + + + police dual lightbar + + + + + + + VehicleLight_sirenlight + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/noose_sedan/carvariations.meta b/resources/[cars]/[policecars]/noose_sedan/carvariations.meta new file mode 100644 index 000000000..02656cf30 --- /dev/null +++ b/resources/[cars]/[policecars]/noose_sedan/carvariations.meta @@ -0,0 +1,35 @@ + + + + + 22gscrb + + + + 156 + 156 + + + + + + + + + + 0_default_modkit + + + + + + Police guv plate + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/noose_sedan/handling.meta b/resources/[cars]/[policecars]/noose_sedan/handling.meta new file mode 100644 index 000000000..2884c86cb --- /dev/null +++ b/resources/[cars]/[policecars]/noose_sedan/handling.meta @@ -0,0 +1,67 @@ + + + + + + 22gscrb + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + AVERAGE + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.yft b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.yft new file mode 100644 index 000000000..23a880ef0 Binary files /dev/null and b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.yft differ diff --git a/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.ytd b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.ytd new file mode 100644 index 000000000..f80cb7c9b Binary files /dev/null and b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb.ytd differ diff --git a/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb_hi.yft b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb_hi.yft new file mode 100644 index 000000000..13f1acd36 Binary files /dev/null and b/resources/[cars]/[policecars]/noose_sedan/stream/22gscrb_hi.yft differ diff --git a/resources/[cars]/[policecars]/noose_sedan/vehicles.meta b/resources/[cars]/[policecars]/noose_sedan/vehicles.meta new file mode 100644 index 000000000..cac7dedc7 --- /dev/null +++ b/resources/[cars]/[policecars]/noose_sedan/vehicles.meta @@ -0,0 +1,122 @@ + + + vehshare + + + + 22gscrb + 22gscrb + 22gscrb + 22gscrb + 22gscrb + null + null + null + null + + null + BANSHEE + LAYOUT_LOW + GAUNTLET_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + MID_BOX_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_STANDARD + DEFAULT_POV_CAMERA_LOOKAROUND_MID + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 1500.000000 + 3000.000000 + 7000.000000 + 14000.000000 + 50000.000000 + 50000.000000 + + + + + + + + + + + SWANKNESS_3 + + FLAG_HAS_LIVERY FLAG_EXTRAS_REQUIRE FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON FLAG_HAS_INTERIOR_EXTRAS FLAG_ATTACH_TRAILER_ON_HIGHWAY FLAG_ATTACH_TRAILER_IN_CITY + VEHICLE_TYPE_CAR + VPT_FRONT_AND_BACK_PLATES + VDT_TRUCKDIGI + VC_EMERGENCY + VWT_MUSCLE + + + + + + + + + + + + WHEEL_FRONT_RIGHT_CAMERA + WHEEL_FRONT_LEFT_CAMERA + WHEEL_REAR_RIGHT_CAMERA + WHEEL_REAR_LEFT_CAMERA + + + + + + + LOW_GAUNTLET_FRONT_LEFT + LOW_GAUNTLET_FRONT_RIGHT + + + + + + vehicles_bob_brown_interior + 22gscrb + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/swat_suv/__resource.lua b/resources/[cars]/[policecars]/swat_suv/__resource.lua new file mode 100644 index 000000000..11fbd4e3c --- /dev/null +++ b/resources/[cars]/[policecars]/swat_suv/__resource.lua @@ -0,0 +1,15 @@ +resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' + +files { + 'handling.meta', + 'vehiclelayouts.meta', + 'vehicles.meta', + 'carvariations.meta', + 'carcols.meta', +} + +data_file 'HANDLING_FILE' 'handling.meta' +data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' +data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta' +data_file 'CARCOLS_FILE' 'carcols.meta' +data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta' \ No newline at end of file diff --git a/resources/[cars]/[policecars]/swat_suv/carcols.meta b/resources/[cars]/[policecars]/swat_suv/carcols.meta new file mode 100644 index 000000000..b1bf33597 --- /dev/null +++ b/resources/[cars]/[policecars]/swat_suv/carcols.meta @@ -0,0 +1,779 @@ + + + + + + + + police dual lightbar + + + + + + + VehicleLight_sirenlight + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/swat_suv/carvariations.meta b/resources/[cars]/[policecars]/swat_suv/carvariations.meta new file mode 100644 index 000000000..9d23e9c81 --- /dev/null +++ b/resources/[cars]/[policecars]/swat_suv/carvariations.meta @@ -0,0 +1,37 @@ + + + + + swat20suvrb + + + + 5 + 5 + 5 + 156 + + + + + + + + + + 0_default_modkit + + + + + + Police guv plate + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/swat_suv/handling.meta b/resources/[cars]/[policecars]/swat_suv/handling.meta new file mode 100644 index 000000000..1d4262c82 --- /dev/null +++ b/resources/[cars]/[policecars]/swat_suv/handling.meta @@ -0,0 +1,67 @@ + + + + + + swat20suvrb + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + AVERAGE + + + + + + + + + + + \ No newline at end of file diff --git a/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.yft b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.yft new file mode 100644 index 000000000..d4556f58f Binary files /dev/null and b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.yft differ diff --git a/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.ytd b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.ytd new file mode 100644 index 000000000..fb62e6e40 Binary files /dev/null and b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb.ytd differ diff --git a/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb_hi.yft b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb_hi.yft new file mode 100644 index 000000000..e1beba3e4 Binary files /dev/null and b/resources/[cars]/[policecars]/swat_suv/stream/swat20suvrb_hi.yft differ diff --git a/resources/[cars]/[policecars]/swat_suv/vehicles.meta b/resources/[cars]/[policecars]/swat_suv/vehicles.meta new file mode 100644 index 000000000..c8943cdd8 --- /dev/null +++ b/resources/[cars]/[policecars]/swat_suv/vehicles.meta @@ -0,0 +1,144 @@ + + + vehshare + + + + swat20suvrb + swat20suvrb + swat20suvrb + swat20suvrb + + null + null + null + null + + null + BALLER2 + LAYOUT_RANGER_SWAT + SHERIFF_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_MID_HIGH + DEFAULT_POV_CAMERA + + + + + + + + + + + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 500.000000 + 500.000000 + 500.000000 + 500.000000 + 750.000000 + 750.000000 + + + + + + + + + + + SWANKNESS_1 + + FLAG_HAS_LIVERY FLAG_EXTRAS_REQUIRE FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON FLAG_HAS_INTERIOR_EXTRAS FLAG_ATTACH_TRAILER_ON_HIGHWAY FLAG_ATTACH_TRAILER_IN_CITY + VEHICLE_TYPE_CAR + VPT_FRONT_AND_BACK_PLATES + VDT_GENTAXI + VC_EMERGENCY + VWT_MUSCLE + + boattrailer + trailersmall + trailersmall2 + + + + + S_M_Y_Sheriff_01 + + + + + + + + + + + REWARD_WEAPON_PUMPSHOTGUN + REWARD_AMMO_PUMPSHOTGUN_ENTER_VEHICLE + REWARD_STAT_WEAPON + + + WHEEL_FRONT_RIGHT_CAMERA + WHEEL_FRONT_LEFT_CAMERA + WHEEL_REAR_RIGHT_CAMERA + WHEEL_REAR_LEFT_CAMERA + + + + + + + STD_POLICE_FRONT_LEFT + STD_POLICE_FRONT_RIGHT + STD_POLICE_REAR_LEFT + STD_POLICE_REAR_RIGHT + + + + + + + \ No newline at end of file diff --git a/resources/[defaultmaps]/house_nami/fxmanifest.lua b/resources/[defaultmaps]/house_nami/fxmanifest.lua deleted file mode 100644 index 76de25791..000000000 --- a/resources/[defaultmaps]/house_nami/fxmanifest.lua +++ /dev/null @@ -1,5 +0,0 @@ -fx_version 'cerulean' -game 'gta5' -description 'maps' - -this_is_a_map 'yes' \ No newline at end of file diff --git a/resources/[defaultmaps]/house_nami/stream/meta/_manifest.ymf b/resources/[defaultmaps]/house_nami/stream/meta/_manifest.ymf deleted file mode 100644 index e945c6af2..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/_manifest.ymf and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/ch1_occl_00.ymap b/resources/[defaultmaps]/house_nami/stream/meta/ch1_occl_00.ymap deleted file mode 100644 index b5acca6eb..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/ch1_occl_00.ymap and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_0.ybn b/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_0.ybn deleted file mode 100644 index 5df84d4cd..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_0.ybn and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_strm_1.ymap b/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_strm_1.ymap deleted file mode 100644 index 2a558a2c0..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/hei_ch1_02_strm_1.ymap and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/hi@hei_ch1_02_0.ybn b/resources/[defaultmaps]/house_nami/stream/meta/hi@hei_ch1_02_0.ybn deleted file mode 100644 index 95bd01601..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/hi@hei_ch1_02_0.ybn and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/home_1.ymap b/resources/[defaultmaps]/house_nami/stream/meta/home_1.ymap deleted file mode 100644 index 804d7ce40..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/home_1.ymap and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/home_1.ytyp b/resources/[defaultmaps]/house_nami/stream/meta/home_1.ytyp deleted file mode 100644 index 552fa4117..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/home_1.ytyp and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/home_col_1.ybn b/resources/[defaultmaps]/house_nami/stream/meta/home_col_1.ybn deleted file mode 100644 index 0362ccefc..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/home_col_1.ybn and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/meta/light.ymap b/resources/[defaultmaps]/house_nami/stream/meta/light.ymap deleted file mode 100644 index 03b57d090..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/meta/light.ymap and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/ch1_02_build_02.ydr b/resources/[defaultmaps]/house_nami/stream/models/ch1_02_build_02.ydr deleted file mode 100644 index 4526bfbb9..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/ch1_02_build_02.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/fireplace_nami.ydr b/resources/[defaultmaps]/house_nami/stream/models/fireplace_nami.ydr deleted file mode 100644 index 8343cc227..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/fireplace_nami.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_1.ydr deleted file mode 100644 index 285f64bb8..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_armchair_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_armchair_1.ydr deleted file mode 100644 index 8a5fd3a1b..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_armchair_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_1.ydr deleted file mode 100644 index 217a01379..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_3.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_3.ydr deleted file mode 100644 index 223fe1d8a..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_3.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_4.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_4.ydr deleted file mode 100644 index 447ba65a8..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_4.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_5.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_5.ydr deleted file mode 100644 index f4acafba5..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_5.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_6.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_6.ydr deleted file mode 100644 index 57cb5b219..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_6.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_7.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_7.ydr deleted file mode 100644 index 77b02c12a..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_7.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_8.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_8.ydr deleted file mode 100644 index ed4102ffd..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_8.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_9.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail2_9.ydr deleted file mode 100644 index ea63c00a8..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail2_9.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail3_5.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail3_5.ydr deleted file mode 100644 index ca631765d..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail3_5.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_1.ydr deleted file mode 100644 index 9bc6434f6..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_2.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_2.ydr deleted file mode 100644 index ca12bf05c..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_2.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_3.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_3.ydr deleted file mode 100644 index a24c8f07a..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_3.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_4.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_4.ydr deleted file mode 100644 index ab711a557..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_4.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_5.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_5.ydr deleted file mode 100644 index 775bf54b1..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_5.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_6.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_6.ydr deleted file mode 100644 index 86244befb..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_6.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_7.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_7.ydr deleted file mode 100644 index e2e566dcd..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_7.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_8.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_8.ydr deleted file mode 100644 index 56da513d7..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_8.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_detail_9.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_detail_9.ydr deleted file mode 100644 index f8c626df2..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_detail_9.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_exit_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_exit_1.ydr deleted file mode 100644 index 89ec0a1fe..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_exit_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_exit_2.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_exit_2.ydr deleted file mode 100644 index 02d76e68e..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_exit_2.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_kamin.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_kamin.ydr deleted file mode 100644 index 9fbc7d395..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_kamin.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_kitchen.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_kitchen.ydr deleted file mode 100644 index 1310bc90d..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_kitchen.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_left_door.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_left_door.ydr deleted file mode 100644 index 268d27fca..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_left_door.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_right_door.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_right_door.ydr deleted file mode 100644 index 0850fc964..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_right_door.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_rooms_door.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_rooms_door.ydr deleted file mode 100644 index be8e8500c..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_rooms_door.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_sofa_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_sofa_1.ydr deleted file mode 100644 index a71c709f5..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_sofa_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_stairs_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_stairs_1.ydr deleted file mode 100644 index 9100054b3..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_stairs_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/home_table_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/home_table_1.ydr deleted file mode 100644 index fae0a578b..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/home_table_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/light_1.ydr b/resources/[defaultmaps]/house_nami/stream/models/light_1.ydr deleted file mode 100644 index 50da91812..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/light_1.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/mirror_3.ydr b/resources/[defaultmaps]/house_nami/stream/models/mirror_3.ydr deleted file mode 100644 index 85313d265..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/mirror_3.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/mirror_6.ydr b/resources/[defaultmaps]/house_nami/stream/models/mirror_6.ydr deleted file mode 100644 index 0692e1dd8..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/mirror_6.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/mirror_7.ydr b/resources/[defaultmaps]/house_nami/stream/models/mirror_7.ydr deleted file mode 100644 index 98cad3b44..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/mirror_7.ydr and /dev/null differ diff --git a/resources/[defaultmaps]/house_nami/stream/models/mirror_8.ydr b/resources/[defaultmaps]/house_nami/stream/models/mirror_8.ydr deleted file mode 100644 index 07ca44f8a..000000000 Binary files a/resources/[defaultmaps]/house_nami/stream/models/mirror_8.ydr and /dev/null differ diff --git a/resources/[tools]/cfx_nteam_train_scenario/train_interaction.lua b/resources/[tools]/cfx_nteam_train_scenario/train_interaction.lua deleted file mode 100644 index d1e687364..000000000 --- a/resources/[tools]/cfx_nteam_train_scenario/train_interaction.lua +++ /dev/null @@ -1,152 +0,0 @@ --- train_interaction.lua - --- Configuration for the interaction point -local interactionPoint = { - coords = vector3(126.0, -1037.0, 29.3), -- Change to your desired location - radius = 2.0, - text = "Press ~INPUT_CONTEXT~ to use train transportation" -} - --- Available scenarios -local scenarios = { - {name = "Welcome", label = "City Center"}, - {name = "Jail", label = "Prison"}, - {name = "Paleto", label = "Paleto Bay"} -} - --- Variables -local isInMarker = false -local menuOpen = false - --- Function to draw 3D text -function Draw3DText(x, y, z, text) - local onScreen, _x, _y = World3dToScreen2d(x, y, z) - local px, py, pz = table.unpack(GetGameplayCamCoords()) - - SetTextScale(0.35, 0.35) - SetTextFont(4) - SetTextProportional(1) - SetTextColour(255, 255, 255, 215) - SetTextEntry("STRING") - SetTextCentre(1) - AddTextComponentString(text) - DrawText(_x, _y) - local factor = (string.len(text)) / 370 - DrawRect(_x, _y + 0.0125, 0.015 + factor, 0.03, 41, 11, 41, 68) -end - --- Function to open scenario selection menu -function OpenScenarioMenu() - menuOpen = true - - -- Simple menu display - Citizen.CreateThread(function() - local selected = 1 - - while menuOpen do - Citizen.Wait(0) - - -- Draw background - DrawRect(0.5, 0.5, 0.3, 0.5, 0, 0, 0, 200) - - -- Draw title - SetTextFont(4) - SetTextScale(0.5, 0.5) - SetTextColour(255, 255, 255, 255) - SetTextCentre(true) - SetTextEntry("STRING") - AddTextComponentString("Train Transportation") - DrawText(0.5, 0.3) - - -- Draw options - for i, scenario in ipairs(scenarios) do - local y = 0.35 + (i * 0.05) - local color = {r = 255, g = 255, b = 255} - - if selected == i then - color = {r = 255, g = 255, b = 0} - DrawRect(0.5, y, 0.28, 0.04, 41, 41, 41, 200) - end - - SetTextFont(4) - SetTextScale(0.35, 0.35) - SetTextColour(color.r, color.g, color.b, 255) - SetTextCentre(true) - SetTextEntry("STRING") - AddTextComponentString(scenario.label) - DrawText(0.5, y - 0.015) - end - - -- Instructions - SetTextFont(4) - SetTextScale(0.3, 0.3) - SetTextColour(255, 255, 255, 255) - SetTextCentre(true) - SetTextEntry("STRING") - AddTextComponentString("↑/↓: Navigate | ENTER: Select | BACKSPACE: Cancel") - DrawText(0.5, 0.65) - - -- Handle controls - DisableControlAction(0, 172, true) -- UP - DisableControlAction(0, 173, true) -- DOWN - DisableControlAction(0, 176, true) -- ENTER - DisableControlAction(0, 177, true) -- BACKSPACE - - if IsDisabledControlJustPressed(0, 172) then -- UP - selected = selected - 1 - if selected < 1 then selected = #scenarios end - PlaySoundFrontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) - elseif IsDisabledControlJustPressed(0, 173) then -- DOWN - selected = selected + 1 - if selected > #scenarios then selected = 1 end - PlaySoundFrontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) - elseif IsDisabledControlJustPressed(0, 176) then -- ENTER - menuOpen = false - PlaySoundFrontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) - TriggerEvent('train:startscenario', scenarios[selected].name) - elseif IsDisabledControlJustPressed(0, 177) then -- BACKSPACE - menuOpen = false - PlaySoundFrontend(-1, "CANCEL", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) - end - end - end) -end - --- Main thread for checking player position -Citizen.CreateThread(function() - while true do - Citizen.Wait(0) - - local playerPed = PlayerPedId() - local coords = GetEntityCoords(playerPed) - local dist = #(coords - interactionPoint.coords) - - if dist < interactionPoint.radius then - isInMarker = true - Draw3DText(interactionPoint.coords.x, interactionPoint.coords.y, interactionPoint.coords.z + 1.0, interactionPoint.text) - - -- Check for E press - if IsControlJustReleased(0, 38) and not menuOpen then -- 38 is E - OpenScenarioMenu() - end - else - isInMarker = false - if menuOpen then - menuOpen = false - end - end - end -end) - --- Create a blip on the map (optional) -Citizen.CreateThread(function() - local blip = AddBlipForCoord(interactionPoint.coords) - SetBlipSprite(blip, 513) -- Train sprite - SetBlipDisplay(blip, 4) - SetBlipScale(blip, 0.8) - SetBlipColour(blip, 2) - SetBlipAsShortRange(blip, true) - BeginTextCommandSetBlipName("STRING") - AddTextComponentString("Train Transportation") - EndTextCommandSetBlipName(blip) -end) diff --git a/resources/[tools]/cfx_nteam_train_scenario/train_interaction_points.lua b/resources/[tools]/cfx_nteam_train_scenario/train_interaction_points.lua new file mode 100644 index 000000000..a7d039bf0 --- /dev/null +++ b/resources/[tools]/cfx_nteam_train_scenario/train_interaction_points.lua @@ -0,0 +1,133 @@ +-- train_interaction_points.lua + +-- Configuration for interaction points +local interactionPoints = { + { + coords = vector3(126.0, -1037.0, 29.3), -- City center location (change as needed) + scenario = "Welcome", + text = "Press ~INPUT_CONTEXT~ to take train to City Center", + blip = { + sprite = 513, -- Train sprite + color = 2, + name = "Train to City Center" + } + }, + { + coords = vector3(1851.5, 2585.7, 45.67), -- Near prison (change as needed) + scenario = "Jail", + text = "Press ~INPUT_CONTEXT~ to take train to Prison", + blip = { + sprite = 513, -- Train sprite + color = 1, + name = "Train to Prison" + } + }, + { + coords = vector3(-459.9, 5368.5, 81.3), -- Paleto area (change as needed) + scenario = "Paleto", + text = "Press ~INPUT_CONTEXT~ to take train to Paleto Bay", + blip = { + sprite = 513, -- Train sprite + color = 5, + name = "Train to Paleto Bay" + } + } + -- Add more interaction points as needed +} + +-- Variables +local isInMarker = false +local currentPoint = nil +local interactionRadius = 2.0 + +-- Function to draw 3D text +function Draw3DText(x, y, z, text) + local onScreen, _x, _y = World3dToScreen2d(x, y, z) + local px, py, pz = table.unpack(GetGameplayCamCoords()) + + SetTextScale(0.35, 0.35) + SetTextFont(4) + SetTextProportional(1) + SetTextColour(255, 255, 255, 215) + SetTextEntry("STRING") + SetTextCentre(1) + AddTextComponentString(text) + DrawText(_x, _y) + local factor = (string.len(text)) / 370 + DrawRect(_x, _y + 0.0125, 0.015 + factor, 0.03, 41, 11, 41, 68) +end + +-- Main thread for checking player position +Citizen.CreateThread(function() + -- Create blips for all interaction points + for _, point in ipairs(interactionPoints) do + if point.blip then + local blip = AddBlipForCoord(point.coords) + SetBlipSprite(blip, point.blip.sprite) + SetBlipDisplay(blip, 4) + SetBlipScale(blip, 0.8) + SetBlipColour(blip, point.blip.color) + SetBlipAsShortRange(blip, true) + BeginTextCommandSetBlipName("STRING") + AddTextComponentString(point.blip.name) + EndTextCommandSetBlipName(blip) + end + end + + while true do + Citizen.Wait(0) + + local playerPed = PlayerPedId() + local coords = GetEntityCoords(playerPed) + + isInMarker = false + currentPoint = nil + + -- Check if player is near any interaction point + for _, point in ipairs(interactionPoints) do + local dist = #(coords - point.coords) + + if dist < interactionRadius then + isInMarker = true + currentPoint = point + Draw3DText(point.coords.x, point.coords.y, point.coords.z + 1.0, point.text) + + -- Check for E press + if IsControlJustReleased(0, 38) then -- 38 is E + -- Start the specific scenario for this point + TriggerEvent('train:startscenario', point.scenario) + + -- Add a small cooldown to prevent spam + Citizen.Wait(1000) + end + + break + end + end + + -- Optimization: If not near any point, wait longer + if not isInMarker then + Citizen.Wait(500) + end + end +end) + +-- Optional: Add a notification when player enters/exits an interaction zone +Citizen.CreateThread(function() + local wasInMarker = false + + while true do + Citizen.Wait(500) + + if isInMarker and not wasInMarker then + -- Player just entered an interaction zone + -- You can add a notification here if desired + -- TriggerEvent('notification', 'You can take a train from here') + + wasInMarker = true + elseif not isInMarker and wasInMarker then + -- Player just left an interaction zone + wasInMarker = false + end + end +end)