diff --git a/resources/7728/__resource.lua b/resources/7728/__resource.lua new file mode 100644 index 000000000..e85b41837 --- /dev/null +++ b/resources/7728/__resource.lua @@ -0,0 +1,20 @@ +resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' + +files { + 'vehicles.meta', + 'carvariations.meta', + 'carcols.meta', + 'handling.meta', + 'vehiclelayouts.meta', -- Not Required +} + +data_file 'HANDLING_FILE' 'handling.meta' +data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta' +data_file 'CARCOLS_FILE' 'carcols.meta' +data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta' +data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' -- Not Required + + +client_script { + 'vehicle_names.lua' -- Not Required +} \ No newline at end of file diff --git a/resources/7728/carcols.meta b/resources/7728/carcols.meta new file mode 100644 index 000000000..c70260682 --- /dev/null +++ b/resources/7728/carcols.meta @@ -0,0 +1,1382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VehicleLight_car_standardmodern + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + interceptorutility + + + + + + 7728 + + + + + + + VehicleLight_sirenlight + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/7728/carvariations.meta b/resources/7728/carvariations.meta new file mode 100644 index 000000000..69e8f9f9c --- /dev/null +++ b/resources/7728/carvariations.meta @@ -0,0 +1,38 @@ + + + + + + 7728 + + + + 0 + 0 + 0 + 0 + 28 + 0 + + + + + + + + 0_default_modkit + + + + + + Police guv plate + + + + + + + + + \ No newline at end of file diff --git a/resources/7728/handling.meta b/resources/7728/handling.meta new file mode 100644 index 000000000..28cfef3cd --- /dev/null +++ b/resources/7728/handling.meta @@ -0,0 +1,69 @@ + + + + + + + 16CHALLENGER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + SPORTS_CAR + + + + + + + + + + + + + diff --git a/resources/7728/stream/7728.yft b/resources/7728/stream/7728.yft new file mode 100644 index 000000000..381b46edf --- /dev/null +++ b/resources/7728/stream/7728.yft @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a82e8fbb5eafc07f55cf47478569203f7c453c606f57a5616ece65ed8179f2f8 +size 9721765 diff --git a/resources/7728/stream/7728.ytd b/resources/7728/stream/7728.ytd new file mode 100644 index 000000000..65080db6a --- /dev/null +++ b/resources/7728/stream/7728.ytd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b75acd57f2073fcd1411a5d5d002de6c8783d112fec14fb8c219e326012103ba +size 8096081 diff --git a/resources/7728/stream/7728_hi.yft b/resources/7728/stream/7728_hi.yft new file mode 100644 index 000000000..8e6464858 --- /dev/null +++ b/resources/7728/stream/7728_hi.yft @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbdafe45e235c8ffa98f873c310ff010255d51abe833b7bd16ee489bb6f3a72f +size 9721788 diff --git a/resources/7728/ulc.lua b/resources/7728/ulc.lua new file mode 100644 index 000000000..260a8a1a7 --- /dev/null +++ b/resources/7728/ulc.lua @@ -0,0 +1,56 @@ + +--[[ + Ultimate Lighting Controller Config + the ULC resource is required to use this configuration + get the resource here: https://github.com/Flohhhhh/ultimate-lighting-controller/releases/latest + To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview +]] + +return {names = {"7728"}, + steadyBurnConfig = { + forceOn = false, useTime = false, + disableWithLights = false, + sbExtras = {} + }, + parkConfig = { + usePark = true, + useSync = false, + syncWith = {"7728","615", "376", "gpd7", "640", "128", "704", "st23tahoe", "24sub", "24ramambo", "23sierrafire", "23gmcleoslick", "23gmcleo", "ccso1", "gpdchief1" }, + pExtras = {10}, + dExtras = {11} + }, + hornConfig = { + useHorn = false, + hornExtras = {}, + }, + brakeConfig = { + useBrakes = false, + speedThreshold = 3, + brakeExtras = {}, + disableExtras = {} + }, + reverseConfig = { + useReverse = false, + reverseExtras = {} + }, + doorConfig = { + useDoors = true, + driverSide = {enable = {6}, disable = {}}, + passSide = {enable = {7}, disable = {}}, + trunk = {enable ={}, disable = {}} + }, + buttons = { + {label = "Drive Pattern", key = 1, color = "green", extra = 1, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Park Pattern", key = 2, color = "green", extra = 2, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Cruise Lights", key = 3, color = "green", extra = 3, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Flood Lights", key = 4, color = "green", extra = 4, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Alley Lights", key = 5, color = "green", extra = 5, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Driver Alley", key = 6, color = "green", extra = 6, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false}, + {label = "Pass. Alley", key = 7, color = "green", extra = 7, linkedExtras = {}, oppositeExtras = {}, offExtras = {}, repair = false} + }, + defaultStages = { + useDefaults = false, + enableKeys = {}, + disableKeys = {} + } +} \ No newline at end of file diff --git a/resources/7728/vehicles.meta b/resources/7728/vehicles.meta new file mode 100644 index 000000000..2abf2d740 --- /dev/null +++ b/resources/7728/vehicles.meta @@ -0,0 +1,138 @@ + + + vehshare + + + + 7728 + 7728 + 16CHALLENGER + WHEEL_FRONT_RIGHT_CAMERA + 7728 + null + null + null + null + + null + lg81hcredeye + LAYOUT_STANDARD + BUFFALO_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + BOX_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_STANDARD + DEFAULT_POV_CAMERA_LOOKAROUND + + + + + + + + + + + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 500.000000 + 500.000000 + 500.000000 + 500.000000 + 500.000000 + 500.000000 + + + + + + + + + + + SWANKNESS_1 + + FLAG_USE_INTERIOR_RED_LIGHT FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON FLAG_HAS_LIVERY + VEHICLE_TYPE_CAR + VPT_FRONT_AND_BACK_PLATES + VDT_RACE + VC_EMERGENCY + VWT_SPORT + + + + + + + + + + + + WHEEL_FRONT_RIGHT_CAMERA + WHEEL_FRONT_LEFT_CAMERA + WHEEL_REAR_RIGHT_CAMERA + WHEEL_REAR_LEFT_CAMERA + + + + + + + STD_POLICE3_FRONT_LEFT + STD_POLICE3_FRONT_RIGHT + STD_POLICE2_REAR_LEFT + STD_POLICE2_REAR_RIGHT + + + + + + vehicles_race_interior + vehicles_race_generic + + + vehicles_race_generic + 7728 + + + \ No newline at end of file diff --git a/resources/Postal-Map/__resource.lua b/resources/Postal-Map/__resource.lua index 9fe9976e6..ab3f5c77e 100644 --- a/resources/Postal-Map/__resource.lua +++ b/resources/Postal-Map/__resource.lua @@ -1,4 +1,3 @@ -resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' +resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' - -client_script 'client.lua' \ No newline at end of file +client_script "client.lua" \ No newline at end of file diff --git a/resources/Postal-Map/client.lua b/resources/Postal-Map/client.lua index c433c1460..b8cb5839c 100644 --- a/resources/Postal-Map/client.lua +++ b/resources/Postal-Map/client.lua @@ -1,9 +1,9 @@ Citizen.CreateThread(function() - SetMapZoomDataLevel(0, 0.96, 0.9, 0.08, 0.0, 0.0) -- Level 0 - SetMapZoomDataLevel(1, 1.6, 0.9, 0.08, 0.0, 0.0) -- Level 1 - SetMapZoomDataLevel(2, 8.6, 0.9, 0.08, 0.0, 0.0) -- Level 2 - SetMapZoomDataLevel(3, 12.3, 0.9, 0.08, 0.0, 0.0) -- Level 3 - SetMapZoomDataLevel(4, 22.3, 0.9, 0.08, 0.0, 0.0) -- Level 4 + SetMapZoomDataLevel(0, 0.96, 0.9, 0.08, 0.0, 0.0) + SetMapZoomDataLevel(1, 1.6, 0.9, 0.08, 0.0, 0.0) + SetMapZoomDataLevel(2, 8.6, 0.9, 0.08, 0.0, 0.0) + SetMapZoomDataLevel(3, 12.3, 0.9, 0.08, 0.0, 0.0) + SetMapZoomDataLevel(4, 22.3, 0.9, 0.08, 0.0, 0.0) end) Citizen.CreateThread(function() diff --git a/resources/Postal-Map/stream/minimap_0_0.ytd b/resources/Postal-Map/stream/minimap_0_0.ytd index e8817511b..da4cb4f92 100644 --- a/resources/Postal-Map/stream/minimap_0_0.ytd +++ b/resources/Postal-Map/stream/minimap_0_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6d82e5eb7d4979c77097b4437a7d503059623a69267bfbdd3f7403363119841d -size 3075607 +oid sha256:9bbb056423514d780fc80445eac6909255e67bce550817cd872d74a3132c9ff2 +size 1045246 diff --git a/resources/Postal-Map/stream/minimap_0_1.ytd b/resources/Postal-Map/stream/minimap_0_1.ytd index 567dc3436..74da35770 100644 --- a/resources/Postal-Map/stream/minimap_0_1.ytd +++ b/resources/Postal-Map/stream/minimap_0_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:49450bfd0dca4dfa318792c60f7c87603c0ec182bee196b78170b88ae92db2dd -size 3957239 +oid sha256:1889bf7cd4572816c0fb0fc7e5361f140ac5a2d1dc39598b40b748d8706ce370 +size 1219286 diff --git a/resources/Postal-Map/stream/minimap_1_0.ytd b/resources/Postal-Map/stream/minimap_1_0.ytd index b97b4849a..30fa4726d 100644 --- a/resources/Postal-Map/stream/minimap_1_0.ytd +++ b/resources/Postal-Map/stream/minimap_1_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dcc412fd72aa80733f66ca5a4e9cfc087fb284ffda0b2b1917d2702e32485707 -size 4620993 +oid sha256:6aec917205786825049bcf018ef7956fef43ec3bf7a557a2e088aa419fb2c506 +size 1749184 diff --git a/resources/Postal-Map/stream/minimap_1_1.ytd b/resources/Postal-Map/stream/minimap_1_1.ytd index 2f487504c..2df72bf8e 100644 --- a/resources/Postal-Map/stream/minimap_1_1.ytd +++ b/resources/Postal-Map/stream/minimap_1_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e5cda2a3190bb555f23d2f469009c2eb3314642127214ca1321eb5c1d32ba662 -size 4587091 +oid sha256:c6ea4959387495962b8502399994e40377f057124a8bde52d78d253ec958c58d +size 1606210 diff --git a/resources/Postal-Map/stream/minimap_2_0.ytd b/resources/Postal-Map/stream/minimap_2_0.ytd index 84d06f1fb..bbf86ef79 100644 --- a/resources/Postal-Map/stream/minimap_2_0.ytd +++ b/resources/Postal-Map/stream/minimap_2_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:024847dd1d504519bb6535f648912b7bd1ce6fb2320b0a6bae6095badf04d570 -size 2470422 +oid sha256:2d32fe2c9b911e928299f9350125afcc3ddad8becbe74852a88e379beb6016ac +size 1002537 diff --git a/resources/Postal-Map/stream/minimap_2_1.ytd b/resources/Postal-Map/stream/minimap_2_1.ytd index c584aa34f..7dc9a41f6 100644 --- a/resources/Postal-Map/stream/minimap_2_1.ytd +++ b/resources/Postal-Map/stream/minimap_2_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f23336070644ee799b133d3104ee30e76b1659ec22b3e7064cf70d9309d43a12 -size 2769960 +oid sha256:34e8626dded9895f7b76dca1a1677336c16efe2563e9c9f5ffc5c46cd14797d6 +size 1027346 diff --git a/resources/Postal-Map/stream/minimap_lod_128.ytd b/resources/Postal-Map/stream/minimap_lod_128.ytd index 27cced165..a6ba6af32 100644 --- a/resources/Postal-Map/stream/minimap_lod_128.ytd +++ b/resources/Postal-Map/stream/minimap_lod_128.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fd82579b60ec6d3325b49b8b370aee4621c62a9764c0917c79124bd0447752fb -size 13197 +oid sha256:eefe77f4a73ed1a8aa4138b23e081ec4e735163e1d04c5126df9464d66b424d7 +size 8779 diff --git a/resources/Postal-Map/stream/minimap_sea_0_0.ytd b/resources/Postal-Map/stream/minimap_sea_0_0.ytd index 8ca7eb86c..e455fdf97 100644 --- a/resources/Postal-Map/stream/minimap_sea_0_0.ytd +++ b/resources/Postal-Map/stream/minimap_sea_0_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ccaa184ef056d298ca1453c7fbce1d177a6d3d792b4fd5249cea5336c4689130 -size 3075524 +oid sha256:c6ac6bab29da556af2c5910f3ff67aafdce1770260e961d03b8c7243c2e6e9a5 +size 2887069 diff --git a/resources/Postal-Map/stream/minimap_sea_0_1.ytd b/resources/Postal-Map/stream/minimap_sea_0_1.ytd index 2875d8ca7..58957f968 100644 --- a/resources/Postal-Map/stream/minimap_sea_0_1.ytd +++ b/resources/Postal-Map/stream/minimap_sea_0_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cb1877de835c7ccf8c651e41a87607b67a16764809122f00f3b490469db9b52f -size 3953458 +oid sha256:6c7802dc2c0d0caf1cf1d5dde6a0a3d351bc91983401418dfde3a28871040b15 +size 3210432 diff --git a/resources/Postal-Map/stream/minimap_sea_1_0.ytd b/resources/Postal-Map/stream/minimap_sea_1_0.ytd index 98b67e158..7cfb72c2e 100644 --- a/resources/Postal-Map/stream/minimap_sea_1_0.ytd +++ b/resources/Postal-Map/stream/minimap_sea_1_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c083d8a24d5e1dde515b073ff696330df3156dba41ad60b9c7a1e458177e9465 -size 4620999 +oid sha256:7bcbe232bb512747743613426c5ef1cf6230419e7db7efbef73ca518a0f87874 +size 3634459 diff --git a/resources/Postal-Map/stream/minimap_sea_1_1.ytd b/resources/Postal-Map/stream/minimap_sea_1_1.ytd index c2a907c33..ecd026d1c 100644 --- a/resources/Postal-Map/stream/minimap_sea_1_1.ytd +++ b/resources/Postal-Map/stream/minimap_sea_1_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1c877e4888f73874c33681ebe13894e3387a571a1a81b61e64a3867de81895d3 -size 4587032 +oid sha256:8e11f22174748a7f6845ae77cd029dc230ad904e2de159a7812919a58c3156ed +size 3596582 diff --git a/resources/Postal-Map/stream/minimap_sea_2_0.ytd b/resources/Postal-Map/stream/minimap_sea_2_0.ytd index b41575ba6..95a550e77 100644 --- a/resources/Postal-Map/stream/minimap_sea_2_0.ytd +++ b/resources/Postal-Map/stream/minimap_sea_2_0.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8d0c025cfa4490428dbd39702d08dc90617877b711991339f4214ceb36a83437 -size 2470426 +oid sha256:db167cb9ca7227fdc358366539ce14830944013ea7273ee1273d2ec6ddfd3b1a +size 2426643 diff --git a/resources/Postal-Map/stream/minimap_sea_2_1.ytd b/resources/Postal-Map/stream/minimap_sea_2_1.ytd index b5d1a87ad..e2fc8d689 100644 --- a/resources/Postal-Map/stream/minimap_sea_2_1.ytd +++ b/resources/Postal-Map/stream/minimap_sea_2_1.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9329447eb4f903648b58aa3955f9f2f4beae3c587af76173d89d923dfafaafe4 -size 2769965 +oid sha256:0d658ea1a8bff2abb1b0cbff869782b595ce8b452512f64d0e5ab74b4616f29f +size 2614990 diff --git a/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1/handling.meta b/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1/handling.meta index 679f970fc..a85fb73cf 100644 --- a/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1/handling.meta +++ b/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1/handling.meta @@ -11,17 +11,17 @@ - - - - - - + + + + + + - - + + @@ -51,7 +51,7 @@ 440010 0 - 0 + 50 AVERAGE diff --git a/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1canine/handling.meta b/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1canine/handling.meta index 1cd2269ca..b787384bc 100644 --- a/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1canine/handling.meta +++ b/resources/[EGRP-CarPacks]/EGRP-Emergency/data/justice1canine/handling.meta @@ -11,17 +11,17 @@ - - - - - - + + + + + + - - + + @@ -51,7 +51,7 @@ 440010 0 - 0 + 50 AVERAGE diff --git a/resources/e450ambo/stream/e450ambo+hi.ytd b/resources/e450ambo/stream/e450ambo+hi.ytd index 539062863..f959dd311 100644 --- a/resources/e450ambo/stream/e450ambo+hi.ytd +++ b/resources/e450ambo/stream/e450ambo+hi.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:970f44ee884d1d6798f166a869423cfeb28b27996071fd489530b1938b7bd127 -size 4227300 +oid sha256:2a2eb8468b455e32d3f6d06896e8df2da2d6d2511c5887420c2b30e464594859 +size 4397642 diff --git a/resources/e450ambo/stream/e450ambo.ytd b/resources/e450ambo/stream/e450ambo.ytd index d5d3854f2..8321a45ba 100644 --- a/resources/e450ambo/stream/e450ambo.ytd +++ b/resources/e450ambo/stream/e450ambo.ytd @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff93c8da63df5aa593f9488c7349faf97c6284d99b82f5ad09899ec2bbeec561 -size 4698009 +oid sha256:7209c3c9ec4042921fd83895796f5062142cac65a4e026300352c41d98f4dbec +size 4963138 diff --git a/resources/fzt_fov-main/LICENSE b/resources/fzt_fov-main/LICENSE new file mode 100644 index 000000000..12d4ca74d --- /dev/null +++ b/resources/fzt_fov-main/LICENSE @@ -0,0 +1,407 @@ +Attribution-NonCommercial 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-NonCommercial 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-NonCommercial 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. NonCommercial means not primarily intended for or directed towards + commercial advantage or monetary compensation. For purposes of + this Public License, the exchange of the Licensed Material for + other material subject to Copyright and Similar Rights by digital + file-sharing or similar means is NonCommercial provided there is + no payment of monetary compensation in connection with the + exchange. + + j. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + k. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + l. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part, for NonCommercial purposes only; and + + b. produce, reproduce, and Share Adapted Material for + NonCommercial purposes only. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties, including when + the Licensed Material is used other than for NonCommercial + purposes. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database for NonCommercial purposes + only; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. \ No newline at end of file diff --git a/resources/fzt_fov-main/README.md b/resources/fzt_fov-main/README.md new file mode 100644 index 000000000..fa1ca0646 --- /dev/null +++ b/resources/fzt_fov-main/README.md @@ -0,0 +1,121 @@ +# Images + +## FOV 1st person Car +Driver: +![image](https://github.com/user-attachments/assets/a1d41139-0131-4b20-85ab-d97034338c0d) + +Passenger: +![image](https://github.com/user-attachments/assets/39bd59f7-9372-4dd9-9441-dc5e16ad7cbb) + + +## Blur on your back + +![image](https://github.com/user-attachments/assets/509ea5f4-d853-4780-ac6e-de4ab7db0e04) + +## Myopia + +without Glasses: +![image](https://github.com/user-attachments/assets/9d66003e-bf49-42fc-ac18-6a7fc61f39a7) + +With Glasses: + +![image](https://github.com/user-attachments/assets/b435f3f7-9d3a-4a12-b76d-ea4283fd0b24) + +## Resmon + +![image](https://github.com/user-attachments/assets/c4359860-61c1-445e-a96a-f2ce204a02fc) + + +## Important + +EN: If you use qb-radialmenu, you must make the following change for the glasses to work properly + +ESP: Si usas qb-radialmenu, debes realizar el siguiente cambio para que funcione bien las gafas + +Line/Linea [908] - qb-radialmenu/client/clothing.lua + +``` +function ToggleProps(whic) + local which = whic + if type(whic) == 'table' then + which = tostring(whic.id) + end + Wait(50) + if Cooldown then return end + + local Prop = Props[which] + local Ped = PlayerPedId() + local Cur = { + Id = Prop.Prop, + Ped = Ped, + Prop = GetPedPropIndex(Ped, Prop.Prop), + Texture = GetPedPropTextureIndex(Ped, Prop.Prop), + } + + local isGlasses = Prop.Prop == 1 + + if not Prop.Variants then + if Cur.Prop ~= -1 then + PlayToggleEmote(Prop.Emote.Off, function() + LastEquipped[which] = Cur + ClearPedProp(Ped, Prop.Prop) + + if isGlasses then + TriggerServerEvent("fzt_fov:updateGlasses", 0, 0) + end + end) + return true + else + local Last = LastEquipped[which] -- Si el jugador ya quitó el prop, vuélvelo a equipar + if Last then + PlayToggleEmote(Prop.Emote.On, function() + SetPedPropIndex(Ped, Prop.Prop, Last.Prop, Last.Texture, true) + + if isGlasses then + TriggerServerEvent("fzt_fov:updateGlasses", Last.Prop, Last.Texture) + end + end) + LastEquipped[which] = false + return true + end + end + Notify(Lang:t('info.nothing_to_remove')) + return false + else + local Gender = IsMpPed(Ped) + if not Gender then + Notify(Lang:t('info.wrong_ped')) + return false + end + variations = Prop.Variants[Gender] + for k, v in pairs(variations) do + if Cur.Prop == k then + PlayToggleEmote(Prop.Emote.On, function() + SetPedPropIndex(Ped, Prop.Prop, v, Cur.Texture, true) + + -- Actualizar metadatos y notificar al cliente si son lentes + if isGlasses then + TriggerServerEvent("fzt_fov:updateGlasses", v, Cur.Texture) + end + end) + return true + end + end + Notify(Lang:t('info.no_variants')) + return false + end +end + +``` + + +## License/Licencia +EN: +This project is protected under the [Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0) License](LICENSE). +It is strictly prohibited to sell or monetize this software. +For more details, see the [LICENSE](LICENSE) file. + +ESP: +Este proyecto está protegido bajo la [Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0)](LICENSE). +Está estrictamente prohibido vender o monetizar este software. +Para más detalles, consulta el archivo [LICENSE](LICENSE). diff --git a/resources/fzt_fov-main/client/fovdriver.lua b/resources/fzt_fov-main/client/fovdriver.lua new file mode 100644 index 000000000..8ebd41d26 --- /dev/null +++ b/resources/fzt_fov-main/client/fovdriver.lua @@ -0,0 +1,43 @@ +-- Este archivo es parte del proyecto fzt_Fov. +-- Copyright (c) 2025 fourztL. Todos los derechos reservados. +-- Este proyecto está distribuido bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). +-- Para más detalles, consulta el archivo LICENSE. + +local cameraActive = false +local cam = nil +local pitch, offsetYaw = 0.0, 0.0 + +Citizen.CreateThread(function() + while true do + Citizen.Wait(5) + local ped = PlayerPedId() + local vehicle = GetVehiclePedIsIn(ped, false) + + if vehicle ~= 0 and GetPedInVehicleSeat(vehicle, -1) == ped and GetFollowVehicleCamViewMode() == 4 then + if not cameraActive then + cameraActive = true + cam = CreateCam("DEFAULT_SCRIPTED_CAMERA", true) + AttachCamToPedBone(cam, ped, GetPedBoneIndex(ped, 12844), 0.0, 0.0, 0.65, 0.0) + SetCamFov(cam, 90.0) + SetCamNearClip(cam, 0.09) + RenderScriptCams(true, true, 1000, true, true) + end + + DisableControlAction(0, 1, true) + DisableControlAction(0, 2, true) + + local mouseX, mouseY = GetDisabledControlNormal(0, 1), GetDisabledControlNormal(0, 2) + offsetYaw = math.max(-90.0, math.min(90.0, offsetYaw - mouseX * 5.0)) + pitch = math.max(-40.0, math.min(40.0, pitch - mouseY * 5.0)) + + SetCamRot(cam, pitch, 0.0, GetEntityHeading(vehicle) + offsetYaw, 2) + else + if cameraActive then + cameraActive = false + RenderScriptCams(false, false, 0, true, false) + DestroyCam(cam, false) + cam = nil + end + end + end +end) \ No newline at end of file diff --git a/resources/fzt_fov-main/client/lookaround.lua b/resources/fzt_fov-main/client/lookaround.lua new file mode 100644 index 000000000..74b9a1733 --- /dev/null +++ b/resources/fzt_fov-main/client/lookaround.lua @@ -0,0 +1,71 @@ +-- Este archivo es parte del proyecto fzt_Fov. +-- Copyright (c) 2025 fourztL. Todos los derechos reservados. +-- Este proyecto está distribuido bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). +-- Para más detalles, consulta el archivo LICENSE. + +local minDistance, maxDistance = 0.20, 20.0 + + +entidadAtras = function(entity) + local playerPed = PlayerPedId() + local playerCoords = GetEntityCoords(playerPed) + local playerHeading = GetEntityHeading(playerPed) + + local entityCoords = GetEntityCoords(entity) + local direction = GetEntityForwardVector(playerPed) + + local toEntity = vector3(entityCoords.x - playerCoords.x, entityCoords.y - playerCoords.y, 0.0) + local dotProduct = direction.x * toEntity.x + direction.y * toEntity.y + return dotProduct < 0.0 +end + +aplicarTransparencia = function(entity, alpha) + if DoesEntityExist(entity) then + SetEntityAlpha(entity, alpha, false) + end +end + +resetVisibilidad = function(entity) + if DoesEntityExist(entity) then + ResetEntityAlpha(entity) + end +end + +Citizen.CreateThread(function() + while true do + Citizen.Wait(200) + local playerPed = PlayerPedId() + local playerCoords = GetEntityCoords(playerPed) + local nearbyEntities = {} + + for _, ped in ipairs(GetGamePool('CPed')) do + if ped ~= playerPed and DoesEntityExist(ped) and not IsPedAPlayer(ped) then + table.insert(nearbyEntities, ped) + end + end + + for _, playerId in ipairs(GetActivePlayers()) do + local otherPed = GetPlayerPed(playerId) + if otherPed ~= playerPed and DoesEntityExist(otherPed) then + table.insert(nearbyEntities, otherPed) + end + end + + for _, entity in ipairs(nearbyEntities) do + local distance = #(GetEntityCoords(entity) - playerCoords) + + if entidadAtras(entity) then + if distance <= minDistance then + aplicarTransparencia(entity, 220) + elseif distance <= maxDistance then + local alpha = 220 * (1 - (distance - minDistance) / (maxDistance - minDistance)) + aplicarTransparencia(entity, math.floor(math.max(0, math.min(220, alpha)))) + else + aplicarTransparencia(entity, 0) + end + else + resetVisibilidad(entity) + end + end + end +end) diff --git a/resources/fzt_fov-main/client/miope.lua b/resources/fzt_fov-main/client/miope.lua new file mode 100644 index 000000000..a40fae7aa --- /dev/null +++ b/resources/fzt_fov-main/client/miope.lua @@ -0,0 +1,62 @@ +-- Este archivo es parte del proyecto fzt_Fov. +-- Copyright (c) 2025 fourztL. Todos los derechos reservados. +-- Este proyecto está distribuido bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). +-- Para más detalles, consulta el archivo LICENSE. + + +local blurEffectEnabled = false +local wearingGlasses = false + + +-- Función para aplicar el efecto de visión borrosa +ApplyBlurEffect = function(enabled) + if enabled then + SetTimecycleModifier("Drunk") + SetTimecycleModifierStrength(0.8) + TriggerScreenblurFadeIn(3500) -- Desenfoque de pantalla + --print("Efecto de visión borrosa activado.") + else + ClearTimecycleModifier() + TriggerScreenblurFadeOut(500) -- Quitar el desenfoque de pantalla + --print("Efecto de visión borrosa desactivado.") + end +end + +-- Función para verificar si el jugador está usando lentes +IsWearingGlasses = function() + local ped = PlayerPedId() + local drawable = GetPedPropIndex(ped, 1) + local texture = GetPedPropTextureIndex(ped, 1) + + return drawable ~= 0 and drawable ~= -1 +end + +-- Evento para recibir el estado inicial de miopía +RegisterNetEvent("fzt_fov:setMiopia", function(esMiope) + --print("Estado de miopía recibido:", esMiope) + blurEffectEnabled = esMiope + ApplyBlurEffect(blurEffectEnabled and not wearingGlasses) +end) + +-- Evento para recibir el estado inicial de los lentes +RegisterNetEvent("fzt_fov:setGlassesState", function(isWearingGlasses) + --print("Estado de los lentes recibido:", isWearingGlasses) + wearingGlasses = isWearingGlasses + ApplyBlurEffect(blurEffectEnabled and not wearingGlasses) +end) + +TriggerServerEvent("fzt_fov:checkGlasses") + + +-- Monitorear cambios en el equipamiento del jugador +Citizen.CreateThread(function() + while true do + Citizen.Wait(1000) + if blurEffectEnabled then + wearingGlasses = IsWearingGlasses() + ApplyBlurEffect(blurEffectEnabled and not wearingGlasses) + else + Citizen.Wait(5000) + end + end +end) \ No newline at end of file diff --git a/resources/fzt_fov-main/fxmanifest.lua b/resources/fzt_fov-main/fxmanifest.lua new file mode 100644 index 000000000..ba40f32b3 --- /dev/null +++ b/resources/fzt_fov-main/fxmanifest.lua @@ -0,0 +1,18 @@ +-- Este archivo es parte del proyecto fzt_Fov. +-- Copyright (c) 2025 fourztL. Todos los derechos reservados. +-- Este proyecto está distribuido bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). +-- Para más detalles, consulta el archivo LICENSE. + +fx_version 'cerulean' +game 'gta5' + +author 'fourztL' +description 'FOV Changer' +version '1.0.0' + +client_script 'client/*.lua' + +server_script { + '@mysql-async/lib/MySQL.lua', + 'server/*.lua' +} \ No newline at end of file diff --git a/resources/fzt_fov-main/server/main.lua b/resources/fzt_fov-main/server/main.lua new file mode 100644 index 000000000..e7505d462 --- /dev/null +++ b/resources/fzt_fov-main/server/main.lua @@ -0,0 +1,71 @@ +-- Este archivo es parte del proyecto fzt_Fov. +-- Copyright (c) 2025 fourztL. Todos los derechos reservados. +-- Este proyecto está distribuido bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). +-- Para más detalles, consulta el archivo LICENSE. + +local QBCore = exports['qb-core']:GetCoreObject() + +-- Agrega la tabla a tu Database +exports.oxmysql:execute([[ + ALTER TABLE players + ADD COLUMN esMiope TINYINT(1) NOT NULL DEFAULT 0; +]], {}, function(result) + if result then + print("Campo 'esMiope' agregado correctamente a la tabla 'players'.") + else + print("Error al agregar el campo 'esMiope'.") + end +end) + + +-- Evento para cargar los datos del jugador al iniciar sesión +RegisterNetEvent('QBCore:Server:OnPlayerLoaded', function() + local src = source + local Player = QBCore.Functions.GetPlayer(src) + if not Player then return end + + -- Consultar el estado de miopía desde la base de datos + exports.oxmysql:execute('SELECT esMiope FROM players WHERE citizenid = ?', {Player.PlayerData.citizenid}, function(result) + if result and result[1] then + local esMiope = result[1].esMiope == 1 + Player.Functions.SetMetaData("esMiope", esMiope) + TriggerClientEvent('fzt_fov:setMiopia', src, esMiope) + else + local esMiope = false + Player.Functions.SetMetaData("esMiope", esMiope) + TriggerClientEvent('fzt_fov:setMiopia', src, esMiope) + end + end) +end) + +-- Comando para cambiar el estado de miopía (opcional, para pruebas) +QBCore.Commands.Add("setmiopia", "Establecer estado de miopía", {}, false, function(source, args) + local Player = QBCore.Functions.GetPlayer(source) + if not Player then return end + + local esMiope = tonumber(args[1]) == 1 + Player.Functions.SetMetaData("esMiope", esMiope) + + -- Guardar el cambio en la base de datos usando oxmysql + exports.oxmysql:execute('UPDATE players SET esMiope = ? WHERE citizenid = ?', {esMiope and 1 or 0, Player.PlayerData.citizenid}) + + TriggerClientEvent('fzt_fov:setMiopia', source, esMiope) + TriggerClientEvent("QBCore:Notify", source, "Miopía " .. (esMiope and "activada" or "desactivada"), "success") +end) + +-- Evento para actualizar el estado de los lentes desde el qb-radialmenu +RegisterNetEvent("fzt_fov:updateGlasses", function(drawable, texture) + local src = source + local Player = QBCore.Functions.GetPlayer(src) + if not Player then return end + + local props = Player.PlayerData.metadata["props"] or {} + props["glasses"] = { drawable = drawable, texture = texture } + + Player.Functions.SetMetaData("props", props) + + local isWearingGlasses = drawable ~= 0 and drawable ~= -1 + TriggerClientEvent("fzt_fov:setGlassesState", src, isWearingGlasses) + + --print("Lentes actualizados (radial menu). Drawable:", drawable, "Texture:", texture) +end) \ No newline at end of file diff --git a/resources/sahp18tahoe/__resource.lua b/resources/sahp18tahoe/__resource.lua new file mode 100644 index 000000000..1adf6dbe3 --- /dev/null +++ b/resources/sahp18tahoe/__resource.lua @@ -0,0 +1,26 @@ +resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' + +files { + 'vehicles.meta', + 'carvariations.meta', + 'carcols.meta', + 'handling.meta', + 'vehiclelayouts.meta', + 'peds.meta' +} + +data_file 'HANDLING_FILE' 'handling.meta' +data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta' +data_file 'CARCOLS_FILE' 'carcols.meta' +data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta' +data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.META' +data_file 'PED_METADATA_FILE' 'peds.meta' + + +client_script { + 'vehicle_names.lua' +} + + + + diff --git a/resources/sahp18tahoe/carcols.meta b/resources/sahp18tahoe/carcols.meta new file mode 100644 index 000000000..3c2fd5fab --- /dev/null +++ b/resources/sahp18tahoe/carcols.meta @@ -0,0 +1,1217 @@ + + + + + + + + sahp18tahoe + + + + + + + VehicleLight_sirenlight + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/sahp18tahoe/carvariations.meta b/resources/sahp18tahoe/carvariations.meta new file mode 100644 index 000000000..1a63cd00b --- /dev/null +++ b/resources/sahp18tahoe/carvariations.meta @@ -0,0 +1,62 @@ + + + + + sahp18tahoe + + + + 0 + 134 + 0 + 64 + 64 + 64 + 64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0_default_modkit + + + + + + Police guv plate + + + + + + + + + \ No newline at end of file diff --git a/resources/sahp18tahoe/handling.meta b/resources/sahp18tahoe/handling.meta new file mode 100644 index 000000000..5db528bce --- /dev/null +++ b/resources/sahp18tahoe/handling.meta @@ -0,0 +1,124 @@ + + + + + + sahp18tahoe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + AVERAGE + + + + + + + + + + TAHOE2WD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 440010 + 0 + 0 + AVERAGE + + + + + + + + + + \ No newline at end of file diff --git a/resources/sahp18tahoe/stream/sahp18tahoe.yft b/resources/sahp18tahoe/stream/sahp18tahoe.yft new file mode 100644 index 000000000..02c01360d --- /dev/null +++ b/resources/sahp18tahoe/stream/sahp18tahoe.yft @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:865e227fa50add1e68228f0e02868c17e4fbc7c34dcc7cb4fc082651d700351d +size 7427262 diff --git a/resources/sahp18tahoe/stream/sahp18tahoe.ytd b/resources/sahp18tahoe/stream/sahp18tahoe.ytd new file mode 100644 index 000000000..14871bc33 --- /dev/null +++ b/resources/sahp18tahoe/stream/sahp18tahoe.ytd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:707119a0e7f4dfbfe453502b977239d96e20252390db7eae15f1a47199f490ba +size 8744635 diff --git a/resources/sahp18tahoe/stream/sahp18tahoe_hi.yft b/resources/sahp18tahoe/stream/sahp18tahoe_hi.yft new file mode 100644 index 000000000..cdf110a06 --- /dev/null +++ b/resources/sahp18tahoe/stream/sahp18tahoe_hi.yft @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d664716523fb8a89755927dbaabd156308d07f7de4d182652b6ecaa44533374 +size 7427254 diff --git a/resources/sahp18tahoe/vehicles.meta b/resources/sahp18tahoe/vehicles.meta new file mode 100644 index 000000000..99e7408b3 --- /dev/null +++ b/resources/sahp18tahoe/vehicles.meta @@ -0,0 +1,135 @@ + + + + vehshare + + + + sahp18tahoe + sahp18tahoe + sahp18tahoe + sahp18tahoe + 19CHEVY + null + null + null + null + + null + granger + LAYOUT_RANGER + GRANGER_COVER_OFFSET_INFO + EXPLOSION_INFO_DEFAULT + + DEFAULT_FOLLOW_VEHICLE_CAMERA + BOX_VEHICLE_AIM_CAMERA + VEHICLE_BONNET_CAMERA_STANDARD + DEFAULT_POV_CAMERA_LOOKAROUND + + + + + + + + + + + + + + + + + + + + + + + + + + + + VFXVEHICLEINFO_CAR_GENERIC + + + + + + + + + + + + + + + + + + + + + + 500.000000 + 500.000000 + 500.000000 + 500.000000 + 500.000000 + 500.000000 + + + + + + + + + + + SWANKNESS_1 + + FLAG_HAS_LIVERY FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT + 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 + + + + + + + RANGER_CAVALCADE_FRONT_LEFT + RANGER_FRONT_RIGHT + RANGER_PRANGER_REAR_LEFT + RANGER_PRANGER_REAR_RIGHT + + + + + + vehicles_banshee_interior + sahp18tahoe + + + \ No newline at end of file diff --git a/server.cfg b/server.cfg index 0dd9f1811..33dd124df 100644 --- a/server.cfg +++ b/server.cfg @@ -234,7 +234,7 @@ ensure wk_wars2x ensure ulc ensure reverse-hud ensure taser_effect-main -ensure +ensure fzt_fov-main ensure ensure @@ -370,8 +370,8 @@ ensure tiller ensure e450ambo ensure 751 ensure st23tahoe -ensure -ensure +ensure 7728 +ensure sahp18tahoe ensure ensure