Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate setCameraTarget #1823

Closed
Xyrusek opened this issue Nov 11, 2020 · 4 comments
Closed

Inaccurate setCameraTarget #1823

Xyrusek opened this issue Nov 11, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@Xyrusek
Copy link

Xyrusek commented Nov 11, 2020

Describe the bug
Crosshair never sets there, where should be.

To reproduce

  1. Upload script.rar to resources.
  2. Type 'refresh' in console.
  3. When resource 'script' load, start script.
  4. Get some weapon(maybe from admin panel)
  5. Shoot
    script.zip

Expected behaviour
I want to set crosshair position, to position of seconds ped.

Screenshots
image

Version
Client: v1.5.8-release-20698.2
Server: 1.5.8
Platform: Windows 10

Additional context

@Xyrusek Xyrusek added the bug Something isn't working label Nov 11, 2020
@Lpsd
Copy link
Member

Lpsd commented Nov 12, 2020

You don't use setPedAimTarget anywhere in your example resource. Please provide a valid resource for testing.

@Einheit-101
Copy link

Einheit-101 commented Nov 12, 2020

setPedAimTarget doesnt even work on local player, or did i miss something?

@Xyrusek Xyrusek changed the title Inaccurate setPedAimTarget Inaccurate setCameraTarget Nov 13, 2020
@Xyrusek
Copy link
Author

Xyrusek commented Nov 13, 2020

You don't use setPedAimTarget anywhere in your example resource. Please provide a valid resource for testing.

I got wrong function name in title, resource was correct.

@TheNormalnij
Copy link
Contributor

GTA doesn't uses screen center for crosshair

@Xyrusek Xyrusek closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants