I can only spawn in 7 peds that will follow player, any more than that and they just stand there and wont follow. Anyone know why this happens or how i can fix this. I am using c# scripting and scripthookvdotnet2.
Thanks.
trapx1
View profile on GTA5-Mods.com »
Posts made by trapx1
-
Peds after 7 wont follow. [C#]
-
RE: How to remove blips and bodies of dead peds? [C#]
I have just tried this but it doesn't remove the blip:
void RemoveBodyguard()
{
if(bodyguard.IsDead)
{
if(bodyguard.CurrentBlip.Exists())
{
bodyguard.CurrentBlip.Remove();
}
}
} -
How to remove blips and bodies of dead peds? [C#]
I am unsure of how to get rid of the dead bodies of peds I have spawned (Such as a bodyguard) and how to delete the blip. I am new to scripting and c# and have searched around but couldn't find much about it. Here is something I have tried:
EDIT: https://imgur.com/lR1gX2u (screenshot of the code instead)public void removeDeadEntity()
{
if (spawnedPedList.Count != 0)
{
for(int i = 0; i <spawnedPedList.Count; i++)
{
if (spawnedPedList[i] == null || !spawnedPedList[i].Exists())
{
spawnedPedList.RemoveAt(i);
i--;
continue;
}
if (spawnedPedList[i].IsDead)
{
Interval = 10000;
spawnedPedList[i].Delete();
spawnedPedList.RemoveAt(i);
i--;
}
}
}
}But whenever it gets rid of the bodies and blips but whenever they die they just disappear instantly and I then I can no longer open my menu until I reload the script. I have also tried using if(Ped.IsDead) and blip.remove() etc, but I can't get it to work. So maybe some samples or some help would be appreciated. Thanks!
-
RE: [C#][Tutorial] Basics of creating a script PART 1
For the line "UI.ShowSubtitle("You have no wanted level.");" I get an error saying "The name "UI" does not exist in the current context, that is the only problem. I couldnt find scripthookvdotnet so i used scripthookvdotnet3, so i am wondering if that is the problem or if it doesnt matter.
-
RE: GTA IV like unarmed combat mod?
@InfiniteQuestion I think GTA V is very oversimplified and not really engaging, there's not much to it other than punch and kill. In GTA IV you had the option to move around to be out of range of jabs and then move in a perform kicks, punches and alt punches, there was also blocking and very good looking counters, which had to be timed correctly. I am looking for something that makes it more fluid, less mindless and perhaps more animations.
-
GTA IV like unarmed combat mod?
Is there any sort of mod that makes the unarmed combat/melee like GTA IV. I much prefer it and think it was a lot more realsistic, challenging and exciting to watch compared to GTA V button mashing 1 hit kills.
-
STATUS_ACCESS_VIOLATION error when entering buildings.
My GTA is modded with visualv, quite a few add on cars and simple native trainer (so nothing too crazy). However it appears that whenever i enter somewhere with an interior my game just kicks me to the launcher. When I start up the game i spawn in franklins house and if i try to enter his room where you change clothes it crashes. It also happens in gas stations, the barbershop and clothing store. ive sometimes got it to crash by driving far away from my spawn location. Each time i crash it always has the same error. Heres an extract from the crash log where i spawned in and tried to walk into franklins room to change clothes:
[2020-04-16 18:38:26.697] [DISPLAY] [Admin] [statuschecker] Title Grand Theft Auto V: No update
[2020-04-16 18:38:26.714] [DISPLAY] [Admin] [statuschecker] Title Rockstar Games Launcher: No update
[2020-04-16 18:38:26.718] [DISPLAY] [Workr] [idownloader] Starting download of 'https://gamedownloads-rockstargames-com.akamaized.net/public/legacy_titles.json'
[2020-04-16 18:38:27.041] [DISPLAY] [Workr] [idownloader] Completed download of 'https://gamedownloads-rockstargames-com.akamaized.net/public/legacy_titles.json' (status: 0/200)
[2020-04-16 18:38:27.044] [DISPLAY] [Workr] [idownloader] Starting download of 'https://gamedownloads-rockstargames-com.akamaized.net/public/title_metadata.json'
[2020-04-16 18:38:27.316] [DISPLAY] [Workr] [idownloader] Completed download of 'https://gamedownloads-rockstargames-com.akamaized.net/public/title_metadata.json' (status: 0/200)
[2020-04-16 18:38:27.374] [DISPLAY] [Workr] [statuschecker] Title Grand Theft Auto V: No update
[2020-04-16 18:41:27.012] [DISPLAY] [ 848] [gamelaunch] Game exited with code 0xc0000005 (3221225477)
[2020-04-16 18:41:27.017] [DISPLAY] [ 848] [crashdetection] Game left no exit file.
[2020-04-16 18:41:27.017] [ ERROR ] [ 848] [crashdetection] Exit code 0xc0000005 indicates a fatal game exit (reason: STATUS_ACCESS_VIOLATION)Some of my PC specs if it helps:
Ryzen 5 3600X
RTX 2070 Super
16GB DDR4
So I think my system can handle the game easily, Not entirely sure what the error means but i do know it always happens when trying to go inside anywhere and when starting missions. Ive looked up the error code but i cant find someone who can recreate the crash indefinitely in game. Any help or soloutions would be appreciated, thanks.