When i write this "GetOffsetInWorldcoords" it says this 'player' does not contain a definition for 'getoffsetinworldcoords' and no accessible extension method
@JohnFromGWN Says the same thing, i was following along in a video I was doing exactly everything the person was doing, I don't quite understand what I am doing wrong... but thank you for trying to help
@coleb2001 your syntax is likely wrong or you're using an outdated version of 3.
Can you post that line of code?
This works, so check your syntax and your references and your versions. And check the date on tutorials and videos - some go back to 2015 and others use SHVDN2 or older versions of SHVDN3.
Ped Max = World.CreatePed("max_payne", Game.Player.Character.Position + Game.Player.Character.ForwardVector * 3.0f, Game.Player.Character.Heading + 90);
and so does this:
Ped Dad = World.CreatePed(PedHash.FreemodeMale01, Game.Player.Character.GetOffsetPosition(new Vector3(1, 2, 0)));
@JohnFromGWN My bad it worked when i typed in "GetOffsetPosition" I forgot to write Game.Player.GetOffsetPosition(new Vector3(), 5, 0,));
so is that <<<< the same as "GetOffsetInWorldcoords" ? my bad I'm pretty slow and I'm new to this stuff I was just following along in a video to see if I could do it.
this is exactly what it says when I use "GetOffsetInWorldcoords" 'type' does not contain a definition for 'name' and no accessible extension method 'name' accepting a first argument of type 'type' could be found (are you missing a using directive or an assembly reference?).
or if I use "UI.Notify" it says the same thing and I have no idea why..
@coleb2001 GTA.UI.Screen.ShowSubtitle or GTA.UI.Notification.Show
it says the same thing and I have no idea why
Scripthookvdotnet uses native functions and these remain fairly constant. Shvdn however has changed from version 2 to version 3. Given version 2 is no longer updated it's best to migrate to 3.
Unfortunately I don't think there is any documentation to clearly identify changes other than the release notes.
Using intelisense in VS is a good practice.
@JohnFromGWN Oh okay! gotcha i'll try and work my way around everything and just learn until I can understand. thanks for your help