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