From 22ff48d6cf09235409d63b83edf5404411efee9b Mon Sep 17 00:00:00 2001 From: "Jordan.#2139" Date: Tue, 27 Jan 2026 16:06:12 -0500 Subject: [PATCH] Added developer event 'nearest-postal:arrivedAtPostal' that triggers when a player reaches their postal destination. --- cl_render.lua | 1 + fxmanifest.lua | 2 +- version.json | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cl_render.lua b/cl_render.lua index 5f57cdd..294934c 100644 --- a/cl_render.lua +++ b/cl_render.lua @@ -52,6 +52,7 @@ Citizen.CreateThread(function() "You've reached your postal destination!" } }) + TriggerEvent('nearest-postal:arrivedAtPostal', pBlip.p.code) RemoveBlip(pBlip.hndl) pBlip = nil end diff --git a/fxmanifest.lua b/fxmanifest.lua index b8d2fb8..a5295dd 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -12,7 +12,7 @@ lua54 "yes" author 'DevBlocky' description 'This script displays the nearest postal next to map, and allows you to navigate to specific postal codes' -version '1.5.3' +version '1.5.4' url 'https://github.com/DevBlocky/nearest-postal' client_scripts { diff --git a/version.json b/version.json index 3e61f33..014ca7b 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.5.3", - "changelog": "Add ability to get postals from vec3 server sided" + "version": "1.5.4", + "changelog": "Added developer event 'nearest-postal:arrivedAtPostal' that triggers when a player reaches their postal destination." } \ No newline at end of file