Nearest Postal
This is the nearest postal script, it shows your nearest postal below the PLD display and will also show you the distance from it. This can also draw a route from your location to a postal of your choice.
Images
Text
Routes
Installation
- 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
Command
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
Updates
1.5
- 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
1.4
- Performance Improvements
- New config options added
- Fix some tiny bugs (and leftover code)
1.3
- Improvements in selection of postal map
- Fix dev mode being on
1.2.1
- Fixes to missing postals on improved postal map
1.2
- Updates to README.md
- Version check
- Fixes for Improved Postal map
- Updates to dev API
1.1.1
- Fixed issue with blip name being set to nil, clearing the screen of all other text
1.1
- Added OCRP postals
- Added
config.lua
file
Special Thanks
Special thanks to all of the recent GitHub contributors who continue to work on the script.
Bugs
- Some scripts that delete player blips end up deleting all blips, which can cause problems with the route portion of this script.
TOS
Please do not redistribute this script on other websites without my knowledge, you are allowed to
- Modify my script without release
- Fork my github post and modify the script
- Pull request with the original script for updates and improvements