diff --git a/README.md b/README.md index bae64ce..61ab242 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ -# postal_map -Server side postal and minimap +# Server side postal and minimap by OCRP + + +![image](https://github.com/alberttheprince/postal_map/assets/85725579/333f9b09-9158-4314-81dc-01765beab7f1) + + +if you're using: [nearest-postal](https://github.com/DevBlocky/nearest-postal) + +Add {"code":"100","y":-1267.01,"x":288.83}, to the ocrp-postal json postals. + + +**Edits by Popcorn Roleplay:** + +- Added postal 100 as a replacement for the error of postal 139 being used twice. +- Added fxmanifest.lua +- removed Citizen. +- Added a modified worldview image originally by Mrowen (fixed 139 postal issue) + +## Image showing postal Fix: + +![image](https://github.com/alberttheprince/postal_map/assets/85725579/c7874e46-5563-4dda-a0a8-16787a7bc5f3) diff --git a/ocrp_postal_map/__resource.lua b/ocrp_postal_map/__resource.lua deleted file mode 100644 index 60816ac..0000000 --- a/ocrp_postal_map/__resource.lua +++ /dev/null @@ -1,4 +0,0 @@ -resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' - - -client_script 'client.lua' \ No newline at end of file diff --git a/ocrp_postal_map/client.lua b/ocrp_postal_map/client.lua index 1da748e..c9db752 100644 --- a/ocrp_postal_map/client.lua +++ b/ocrp_postal_map/client.lua @@ -1,4 +1,4 @@ -Citizen.CreateThread(function() +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 @@ -6,13 +6,13 @@ Citizen.CreateThread(function() SetMapZoomDataLevel(4, 22.3, 0.9, 0.08, 0.0, 0.0) -- Level 4 end) -Citizen.CreateThread(function() +CreateThread(function() while true do - Citizen.Wait(1) + Wait(1) if IsPedOnFoot(GetPlayerPed(-1)) then SetRadarZoom(1100) elseif IsPedInAnyVehicle(GetPlayerPed(-1), true) then SetRadarZoom(1100) end end -end) \ No newline at end of file +end) diff --git a/ocrp_postal_map/fxmanifest.lua b/ocrp_postal_map/fxmanifest.lua new file mode 100644 index 0000000..edd8321 --- /dev/null +++ b/ocrp_postal_map/fxmanifest.lua @@ -0,0 +1,10 @@ +games {'gta5'} + +fx_version 'cerulean' + +description 'OCRP Map - CFX Forums' +version '1.0.0' + +client_scripts { + 'client.lua', +} diff --git a/ocrp_postal_map/stream/minimap_2_0.ytd b/ocrp_postal_map/stream/minimap_2_0.ytd index 1180508..7bcdee8 100644 Binary files a/ocrp_postal_map/stream/minimap_2_0.ytd and b/ocrp_postal_map/stream/minimap_2_0.ytd differ diff --git a/ocrp_postal_map/stream/minimap_sea_2_0.ytd b/ocrp_postal_map/stream/minimap_sea_2_0.ytd index 86038f5..b8c3ec7 100644 Binary files a/ocrp_postal_map/stream/minimap_sea_2_0.ytd and b/ocrp_postal_map/stream/minimap_sea_2_0.ytd differ diff --git a/worldview.png b/worldview.png new file mode 100644 index 0000000..335b9de Binary files /dev/null and b/worldview.png differ