fix(points): missing argument in DrawMarker (#123)

* fix(points/lua): missing argument in DrawMarker

* fix(points/js): missing argument in DrawMarker
This commit is contained in:
BerkieBb authored and GitHub committed 2023-05-09 09:10:26 +10:00
1 parent cb58b4bc48
commit 718164de8d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ import { Point, cache } from '@overextended/ox_lib/client'
function nearby(this: Point<{dunak: string}>) {
// @ts-ignore
DrawMarker(2, this.coords.x, this.coords.y, this.coords.z, 0, 0, 0, 0, 180, 0, 1, 1, 1, 200, 20, 20, 50, false, true, 2, null, null, false, false)
DrawMarker(2, this.coords.x, this.coords.y, this.coords.z, 0, 0, 0, 0, 180, 0, 1, 1, 1, 200, 20, 20, 50, false, true, 2, false, null, null, false)
if (this.currentDistance && this.currentDistance < 1 && IsControlJustReleased(0, 38)) {
console.log('Inside marker', this.id)
+1 -1
View File
@@ -44,7 +44,7 @@ function point:onExit()
end
function point:nearby()
DrawMarker(2, self.coords.x, self.coords.y, self.coords.z, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 1.0, 1.0, 1.0, 200, 20, 20, 50, false, true, 2, nil, nil, false)
DrawMarker(2, self.coords.x, self.coords.y, self.coords.z, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 1.0, 1.0, 1.0, 200, 20, 20, 50, false, true, 2, false, nil, nil, false)
if self.currentDistance < 1 and IsControlJustReleased(0, 38) then
print('inside marker', self.id, 'dunak is a '.. self.dunak)