le-compass

Preview

Intallation Guide

  1. Place le-compassfile in your resources forder

  2. Add the script to your server.cfg

  3. Go to the config.lua file and setup to your preferences

  4. Restart your server!

Show/Hide Compass

TriggerEvent("le-compass:client:compassUse")

Exports

Start

exports["le-compass"]:CompassStart(Coord, AutoStop, Distance, Notif)
  • Coord (Vector3) : Where to go

  • AutoStop (Bool) : If should stop when arrive at destination

  • Distance (Int) : The distance to calculate the AutoStop

  • Notif (Bool) : If there is a notification when you arrives

Exemple for /testcity in the preview

exports["le-compass"]:CompassStart(vector3(-962.74, -1111.31, 2.17), true, 5, true)

Stop

exports["le-compass"]:Stop()

Last updated