Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

draw dot on target location #70

Merged
merged 1 commit into from
Apr 16, 2022
Merged

draw dot on target location #70

merged 1 commit into from
Apr 16, 2022

Conversation

xtrsyz
Copy link
Contributor

@xtrsyz xtrsyz commented Mar 27, 2022

No description provided.

@BerkieBb
Copy link
Contributor

Instead of using _ as the index of listSprites, change the _ in the for loop to something like k and use that

@BerkieBb
Copy link
Contributor

Also, don't use GetDistanceBetweenCoords with lua, use lua math
#(vector3 - vector3)
In your case
#(GetEntityCoords(playerPed) - zone.center)

@benzon
Copy link

benzon commented Apr 2, 2022

The only issue i got with this code right now, is you got to be very close before it draws, where it should maybe draw earlyer, so you dont have to be right up in the face of the "interest point"

@xtrsyz
Copy link
Contributor Author

xtrsyz commented Apr 2, 2022

then add Config.DrawDistance

client.lua Outdated Show resolved Hide resolved
client.lua Outdated Show resolved Hide resolved
client.lua Outdated Show resolved Hide resolved
@xtrsyz
Copy link
Contributor Author

xtrsyz commented Apr 4, 2022

it done

@BerkieBb
Copy link
Contributor

BerkieBb commented Apr 5, 2022

One issue I've noticed when testing this is, when you keep the eye open and walk away from the option whenever the sprite is showing, the sprite won't go away and will just stay there no matter how far away you're but only when the eye is kept open

client.lua Outdated Show resolved Hide resolved
Copy link
Contributor Author

@xtrsyz xtrsyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this

@BerkieBb
Copy link
Contributor

I'm going to check it out later today

@BerkieBb
Copy link
Contributor

It looks good now, but I seem to notice a slight increase in the usage, for me that is 0.01ms increase with each circle drawn, so if there are a few near me, it could increase to 0.10ms or even higher on people with worse systems maybe

@thelindat
Copy link
Member

Not really sure of the purpose for this feature but there’s no need to create a new thread for every single DrawSprite.

client.lua Outdated Show resolved Hide resolved
@BerkieBb
Copy link
Contributor

Not really sure of the purpose for this feature but there’s no need to create a new thread for every single DrawSprite.

The purpose is just to draw a sprite for every nearby zone to hint players where to go

client.lua Outdated Show resolved Hide resolved
@BerkieBb BerkieBb merged commit 094251b into overextended:main Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants