Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 0 additions & 4 deletions ocrp_postal_map/__resource.lua

This file was deleted.

8 changes: 4 additions & 4 deletions ocrp_postal_map/client.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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
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
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)
end)
10 changes: 10 additions & 0 deletions ocrp_postal_map/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
games {'gta5'}

fx_version 'cerulean'

description 'OCRP Map - CFX Forums'
version '1.0.0'

client_scripts {
'client.lua',
}
Binary file modified ocrp_postal_map/stream/minimap_2_0.ytd
Binary file not shown.
Binary file modified ocrp_postal_map/stream/minimap_sea_2_0.ytd
Binary file not shown.
Binary file added worldview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.