Pickle Mods
  • Pickle Mods
  • Paid Resources
    • Casinos
      • Installation
      • Tutorial
    • In-Game Store
      • Installation
      • Exports
      • Tebex & Coin Products
      • PTS Commands
    • Rewards System
      • Installation
      • Exports
      • Snippets
    • Bail & Bounty
      • Installation
      • Exports
    • Firefighter Job
      • Installation
      • Commands
      • Exports
      • Snippets
    • Advanced Crafting
      • Installation
    • Electrician Job
      • Installation
    • Construction Job
      • Installation
    • Hunting
      • Installation
    • Documents
      • Installation
      • Exports & Examples
    • Dealership
      • Installation
    • Police Tools
      • Installation
  • Free Resources
    • Pickle Airport
      • Installation
      • Hotfixes
    • Pickle Consumables
      • Installation
      • Hotfixes
    • Pickle Farming
      • Installation
    • Pickle Metal Detector
      • Installation
    • Pickle Payments
      • Installation
    • Pickle Prisons
      • Installation
      • Commands
      • Exports
      • Events
      • Snippets
    • Pickle Rentals
      • Installation
    • Pickle Slapboxing
      • Installation
    • Pickle Taxi Job
      • Installation
    • Waypoints
      • Installation
      • Exports
Powered by GitBook
On this page
  1. Free Resources
  2. Waypoints

Exports

Client-side:

-- AddWaypoint: Adds a waypoint to the player's view (client)  

local index = AddWaypoint(label, coords, {
    icon = "WAYPOINT_URL", -- or "default" to use internal icon for color support.
    color = {255, 255, 255, 255}, -- rgba value, used for internal icon and marker.
    clearEnter = true, -- Upon entering the area, remove the waypoint.
    blipId = 1, -- Display waypoint on map, or set to nil to disable.
    blipColor = 0, -- Blip color on the map.
})

-- RemoveWaypoint: Removes a waypoint from the player's view (client)

RemoveWaypoint(index)

-- GetWaypoint: Gets the updated information regarding the waypoint passed in index.

local waypointData = GetWaypoint(index)

-- UpdateWaypointCoords: Update the location of the waypoint.

UpdateWaypointCoords(index, vector3(100.0, 20.0, 30.0))

-- UpdateWaypointSettings: Update the waypoint's settings.

UpdateWaypointSettings(index, {
    icon = "WAYPOINT_URL", -- or "default" to use internal icon for color support.
    color = {255, 255, 255, 255}, -- rgba value, used for internal icon and marker.
})
PreviousInstallation

Last updated 1 year ago