Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dissolve a 3DVector into x, y, z single coordinates

Featured Replies

I have search for hours, but i just cant find a function that returns x-coordinate-position ( and ofcause  y & z).
I believe i need these coordinates to be able to get the Ped-ID for the Ped closes to Player.
I have this:

Spoiler

NativeFunction.Natives.SetVehicleDoorOpen(EmergencyVehicle, 2, false, true); //open door left back-seat
Vector3 myPos = NativeFunction.Natives.GetPlayerWantedCentrePosition(Game.LocalPlayer.Character); //get My pos as 3DVector
//MISSING!

getX of myPos

getY of myPos
getZ of myPos

 

Must know x, y, z for :
Ped arrestee = NativeFunction.Natives.GetClosestPed(xf, yf, zf, 10f, true, false, Game.LocalPlayer.Character, true, true, -1);

 

PED-ID 'now' known -Ready to toss arrestee into left back-seat :
NativeFunction.Natives.TaskWarpPedIntoVehicle(arrestee, EmergencyVehicle, 2);

                   

But i cant get x, y, z, so i do not have any coordinates for xf, yf & zf
How can i get those?
OR!!!
Is there a much better way to get the ID of the closest Ped, to either a car or Player?
tyia.

Edited by GTAbear
spell

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author
3 minutes ago, LMS said:

The Vector3 structure contains properties named X, Y and Z. Are you not using IntelliSense or something or why do they not show up?

 

image.png

OMG..!
I dont know what to say.. -Except Thankyou!!
Some how there must be a fail in my installation, or perhaps more likely in me..
I have eye-sight issues, and even though i use size 14 in editor-font, the hints are next to impossible to read. I need to invoke screen-mag (winKey+(+), but that will make VS even more difficult no navigate
THANKS for your time !!

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.