Since the latest update to GTA, to use any modified clothes, cars etc (basically if its not a script) You must use a new GameConfig for the latest version, Heap adjuster and a packlimit adjuster. Without these even 1 car will crash the game.
mcal9909
View profile on GTA5-Mods.com »
Posts made by mcal9909
-
RE: dlclist edit still causing crashes
-
RE: Would be nice to have Youtube native.
It is possible to display BIK videos on surfaces if i remember correct. Its not something i have done, but someone around here should know.
-
RE: Marker issues.
@Kieran_S Dont set
task = Missiontask.pickupGuard;
until the player is in the marker and guard.PedGroup == player.PedGroup; -
RE: Marker issues.
@Kieran_S
trySHVDN2
UIText debugText = new UIText("current task: " + task, new Point(10, 10), 0.4f, Color.WhiteSmoke, 0, false); debugText.Draw();
SHVDN3
GTA.UI.TextElement debugText = new GTA.UI.TextElement("current task: " + task, new Point(10, 10), 0.4f); debugText.Draw();
make sure it runs every frame, outside of any of your tasks.
-
RE: Marker issues.
@Kieran_S Seems to be like the same condition needed to triger a marker being drawn is the same condition needed to move onto the next stage of the mission.
if (player.IsSittingInVehicle(missionVehicle))
Marker is drawn if you are within 3.5m of the markers position.
Then further down you
task = Missiontask.pickupGuard;
So it looks like you are entering Missiontask.enterVehicle; and aslong as you are in the vehicle, you are leaving on the same frame. So the marker never gets a chance to be drawn.
I would sugest outputting the current state of
task
somewhere so you can see what your code is doing. -
RE: Marker issues.
Be aware, markers need to be drawn every frame. If your code isnt running every frame the marker will only be drawn for a single frame.
I would need to see more of the code to understand the problem.Also, SHVDN has its own implementation of drawmarker, it makes your code much more readable.
if (DrawMarkers) World.DrawMarker(MarkerType.UpsideDownCone, new Vector3(stashPos.X, stashPos.Y, stashPos.Z - 0.5f), Vector3.Zero, Vector3.Zero, new Vector3(1f, 1f, 0.5f), Color.Green);
-
RE: Almost Quit
Cool, i was worried you might hit some roadblock due to not being able to implement examples written in c# into VB and get disheartened.
Work with the language that your most comfortable with, after all, most languages are similar enough that once you learn one, learning another becomes very easy. -
RE: Almost Quit
@JohnFromGWN It was just an example of how an enum works. GET_CLOCK_DAY_OF_WEEK returns the day in game.
public int DayOfWeek() { return Function.Call<int>(Hash.GET_CLOCK_DAY_OF_WEEK); }; public enum DayGTA { Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6 };
so if the day in game is Friday.
UI.ShowSubtitle(DayOfWeek().ToString()); will = "5"
UI.ShowSubtitle((DayGta)DayOfWeek().ToString()); will = "Friday" -
RE: Almost Quit
@JohnFromGWN said in Almost Quit:
A Handle is an entities unique ID in the world entity.Handle, A hash usually refers to the entities model. This can be accessed with entity.Model.Hash. A Ped inherits from Entity so has access to these properties.PedHash.Micheal is part of an enum called PedHash, enums are effectively named integer numbers in a list of model hashes.
public enum DayGTA { Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6 }
So
int day = Function.Call<int>(Hash.GET_CLOCK_DAY_OF_WEEK); DayGta eDay = (DayGta)day; //cast the int to a DayGta
eDay will = DayGta.Sunday if day returns 0. Which is much easier to read than working with pure numbers.
They can also be cast to an int with (int)eDay. Even turn them into a string with eDay.ToString(). Which will return "Sunday" -
RE: Almost Quit
Ah i see where the confusion may be.
public bool IsVisible { get => Function.Call<bool>(Hash.IS_ENTITY_VISIBLE, Handle); set => Function.Call(Hash.SET_ENTITY_VISIBLE, Handle, value); };
As you can see its a bool, but its also a property and is used the same way any other variable is used. Its not a method, as it does not have any parentheses after the variable name. So if you want to set the property it must be assigned to using = true/false.
As you can see you can also get a value from this property.If(ped.IsVisible) DoSomething();
This can be similar to a method that returns a value of type bool.
public bool IsVisible(int handle) { return Function.Call<bool>(Hash.IS_ENTITY_VISIBLE, Handle); };
A method can not be assigned to, but will return a value. So can be used in multiple different ways.
if(IsVisible(ped.Handle)) DoSomething();
For setting outfits the use of this native is required. https://alloc8or.re/gta5/nativedb/?n=0x262B14F48D29DE80