This script displays the nearest postal next to map, and allows you to navigate to specific postal codes with /postal
- There are 2 ways to install it, and I recommend the first
- Run the following command in a terminal
git clone https://github.com/blockba5her/nearest-postal.git
- Download the code from the GitHub releases
- Run the following command in a terminal
- As of now, this script supports 3 postal maps. From what I have seen, these are the most popular
new-postals.json
-> New and Improved Postalsold-postals.json
-> Original Postalsocrp-postals.json
-> OCRP Postals
- To setup the postal map, open the
fxmanifest.lua
file and change the variablepostalFile
to one of the files above- NOTE: This defaults as the
new-postals.json
file
- NOTE: This defaults as the
To draw a route to a certain postal, type /postal [postalName]
and to remove just type /postal
It will automatically remove the route when within 100m of the destination
- Major performance improvements
- Added the
refreshRate
configuration option - Simplified distance calculation logic
- Separated code into separate files
- Prebuild the postal list with vectors at startup
- Use FiveM Lua 5.4
- Performance Improvements
- New config options added
- Fix some tiny bugs (and leftover code)
- Improvements in selection of postal map
- Fix dev mode being on
- Fixes to missing postals on improved postal map
- Updates to README.md
- Version check
- Fixes for Improved Postal map
- Updates to dev API
- Fixed issue with blip name being set to nil, clearing the screen of all other text
- Added OCRP postals
- Added
config.lua
file
This script provides a simple way of working on a new postal map
- In the resource
fxmanifest.lua
file, uncomment thecl_dev.lua
requirement line - Do
refresh
andrestart nearest-postal
in-game - Teleport to the first postal code in numerical order
- Type
/setnext [postalCode]
where postalCode is the postal that you are at - Type
/next
to insert it - Teleport to the next postal code in numerical order
- Type
/next
to insert it - Repeat from step 6 on
If you make a mistake, you can either remove a specific postal using /remove [postalCode]
or remove the last postal inserted with /rl
(this will decrease the next value also)
When done with that, you can print all of the postals you just inserted into console with the /json
command and then copy it from your CitizenFX.log
file
Join my discord for support and more scripts