/PostCode Command Script is a FiveM Standalone Script that allows you to automatically set a marker for a postal code on the map. You can see all the postal codes if you have the oulsen_satmap.
The script make it very easy for players to know eachothers positions by just giving their Current Street Postal Code, and the other player will simply type /postcode <ex: 540>.
You can change the command name, notifications… via the configurable file.
Actually on the contrary yours is a simpler version of the free script, the free script has more features than yours and I’m willing to bet the source code looks the exact same as the free one all you did was add the ability to config the command and notifications but you think you deserve $15 for it? I’m all for selling things you make, but you didn’t make this.
local Postals = json.decode(LoadResourceFile(GetCurrentResourceName(), "/json/postals.json"))
Citizen.CreateThread(function()
TriggerEvent('chat:addSuggestion', '/postal', 'Mark Wanted Postal Number', {
{ name="Number", help="Postal Number" },
})
end)
RegisterCommand("postal",function(source,args,rawCommand)
local WantedPostal = tonumber(args[1])
if not WantedPostal then return exports['mythic_notify']:SendAlert("error", "Enter Valid Postal Code") end
local Found = false
for i, p in ipairs(Postals) do
if tonumber(WantedPostal) == tonumber(p.code) then
SetNewWaypoint(p.x,p.y)
exports['mythic_notify']:SendAlert("success", "Location Marked")
Found = true
break
end
end
if not Found then return exports['mythic_notify']:SendAlert("error", "That Postal Code Didnt Found") end
end)