le-compass
Intallation Guide
Place
le-compassfile in yourresourcesforderAdd the script to your
server.cfgGo to the
config.luafile and setup to your preferencesRestart your server!
Show/Hide Compass
TriggerEvent("le-compass:client:compassUse")TriggerClientEvent("le-compass:client:compassUse", source)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
/testcity in the previewexports["le-compass"]:CompassStart(vector3(-962.74, -1111.31, 2.17), true, 5, true)Stop
exports["le-compass"]:Stop()Last updated