@hitler123
https://www.gta5-mods.com/scripts/spawn-where-you-died
Many spawn options.
Only stores ped model though.
@hitler123
https://www.gta5-mods.com/scripts/spawn-where-you-died
Many spawn options.
Only stores ped model though.
@dimedius
Everything that can be called once should be called once. Since performance hit depends on how often you call it, in this case it doesn't matter.
For example Menyoo could pre-hash but in many cases won't since the performance hit is neglectable: https://github.com/MAFINS/MenyooSP/search?q=get_hash_key&type=
I think Alexander Blade does this as well.
You generate the hash before the loop and then store it a variable that can be used in your loop.
However if you really want to, you could make a variable and set it to the hash value, since you know the hash already. Just make sure there's documentation/comments to identify what the hash represents.
I saw your 1.1 version. Great progress.
I like to use this native to get the hash for readability (called once):
Hash secBarrier1 = GAMEPLAY::GET_HASH_KEY("prop_sec_barrier_ld_01a");
Hash secBarrier2 = GAMEPLAY::GET_HASH_KEY("prop_sec_barrier_ld_02a");
Saw that you're already using Codewalker after writing this.
But for others:
Codewalker is a great tool to find out the name, hash of objects etc. You can move around in the world finding them.

(Press Load DLC, Press T, Press select objects, Right click on an object gives info to the right.
Awesome that you solved it.
Adding a check for all peds, not just the player would be nice. Like once every 2 sec. With performance in mind. If nothing should happen if not in a vehicle, that check could come first for example.
Good job!
The game is probably running some task on the peds when in that state, altering their behavior with different configuration values. Are you saying this issue is occurring for your weapon only?
Animals are also considered peds. I don't know what the .Net method does exactly but I'm sure it works fine. The native function for getting the closest ped doesn't reliably return the closest You can do it more manually, like something like this in C++
https://pastebin.com/8nhL4zsa
@dimedius For example you could make a simple program, looking through all the files mcal9909 linked to above.
Since "_DOOR_CONTROL" and "prop_sec_barrier_ld_02a" probably are only used in a few scripts, you'll narrow down the potential interesting files.
Write all occurrences (lines with your search word in them) together with the script name to a text file (row number and occurrence count as well ofc if you want).
Then open your created text file, find out which scripts that seems interesting and simply open them and CTRL+F "_DOOR_CONTROL" and "prop_sec_barrier_ld_02a".
That's one way of doing it.
Have you checked how R* does it in their scripts?
@iammistahwolf I see.
Simple Trainer is a C++ .asi mod though. Essentially all .asi mods which worked before the update should work again now when the script hook is updated. ENT is also .asi.
I've got .asi mods not updated since 2015 working just fine.
@iammistahwolf
What is not working for you with the new script hook?
Edit: Oh, ofc. Must be .Net mods you're talking about.
So this easy and fast method works for me with the EGS version (showcase of fixes for Steam and EGS):
EDIT: Script Hook is updated.
Native function wise I've not found much interesting to change when it comes to the mobile phone.
@iammistahwolf said in Beware August 11th!:
/.../ I haven't been able to see if that works with the new launcher yet because I kept getting caught off guard with updates. I'm up to speed now and will see what the results are this go around.
I tried this. Could not get it to work.
@ckacmaster said in [Tutorial] Making an .OIV Installer from scratch:
It’s simple: Compress your main folder (containing assembly.xml, icon and content) into .zip format and rename the .zip to .oiv
Thanks, great guide. However it's the files inside the main folder that should be selected and compressed, not the main folder.
What about the PLACEHOLDER file? Is it always necessary?
Maybe if you put that part of your code on pastebin it would be easier to help.
Allowing ads seems like the least you can do to support the site and keep it running.
@Pippie It makes the headlights of cars more powerful. For example vehicle_light_multiplier=10
@Pippie It makes the ped do an animation when trying to hit you so that it's interrupted.
I'm working on better chases. You can see the progress on discord. Link on the mod page
@Pippie I made this FFFR configuration file a few days ago (you need block_melee_with_animation=0 as well, and maybe more depending on your preferences).
https://discord.gg/vrHD3KN
Just go to the support channel if you need any help.
Also make sure other mods aren't calling the same native functions/ doing the opposite of FFFR, creating conflicts.
@DurtyFree Sweet. Making mods gets so much easier and quicker when not having to spend as much time searching for resources.
This is great! Even better if you added all data there is. Then this could be really useful and the go-to resource. The auto generation is especially nice. Good job.
@Reyser Ok. Well, I can't save my descriptions. But I might find a way around it or someone might know how. Anyway, thanks for your help.