Version 1.2.1
- Fixed a game crashing bug in mod when peds trying to cruise with a vehicle they are not yet in.
MUSIC_TRIGGERS example
<MUSIC_TRIGGERS>
<TRIGGER TYPE="TARGET_PROXIMITY">
<DISTANCE>100</DISTANCE>
<TARGET>TARGET</TARGET>
<START_MUSIC>CAR1_MISSION_START</START_MUSIC>
<END_MUSIC>CAR1_MISSION_FAIL</END_MUSIC>
</TRIGGER>
<TRIGGER TYPE="TARGET_DEAD">
<TARGET>TARGET</TARGET>
<START_MUSIC>CAR1_APPROACH</START_MUSIC>
<END_MUSIC>CAR1_MISSION_FAIL</END_MUSIC>
</TRIGGER>
</MUSIC_TRIGGERS>
The order of triggering music is peculiar in GTA5. You must first use a MUSIC which will start the event, and not every music can start a music event. Then give it an end which triggers the fadeout. The start music usually has a suffix of _START, while the end music _FAIL.
Updated the "4 Witnesses" mission to have music. Check it out both in game and in XML to see how it works. Also updated the "Save him quick!" mission to have chase music.
TRIGGER
-s can have optionally 2 attributes: CAN_BE_RETRIGGERED
and TRIGGER_REGARDLESS_CURRENT
. The first comes in handy if you want a music to be re-triggerable, such as a proximity trigger being re-triggered after you triggeredit before, but then changed the music with a TARGET_DEAD trigger. The second determines whether to start the same music again which is already playing. Note that this won't restart the music, just adds a sound effect.
ELIGIBLE_CHARACTERS example
<MISSION>
<ELIGIBLE_CHARACTERS>
<CHARACTER>FRANKLIN</CHARACTER>
</ELIGIBLE_CHARACTERS>
<TARGET_GROUPS>
...
The above will only allow Franklin to take the mission, but you can add Trevor there aswell. Every character can take the mission by default, so you dont have to add ELIGIBLE_CHARACTERS tag at all if you dont want to exclude any character.
Quick update
Uploaded 1.0.1 removing a test mission. Sorry guys!
Quick update
The mod has been released. It is waiting for admin approval. It will ship with 16 missions!
Added features
Future features
Updated the above structure description to reflect the current state.
The mod will be out in a couple of hours.
@Shineberg Thank you! It is actually done. I'm just adding new features. Going to release it this sunday (9th of februrary).
JavelinV is a Hitman/Assassination script which's missions are written and stored entirely in XML. This allows the people, YOU, to write your own assassinations and share them with others.
But this isn't just about killing. It is about killing without being seen, stealing without being seen. It is possible to spawn pickups which are required to complete the missions.
The following is an example mission's XML.
Each mission is divided into TARGET_GROUPS. You can define as many groups as you want, and each have their own targets, pickups, vehicles, rewards, messages etc.
Targets can have multiple locations, models and even weapons. It is also possible to set relationship against the player, their accuracy, how well they drive, which vehicle should they enter etc. The complete list is at the bottom of the post.
<MISSION>
<TARGET_GROUPS>
<TARGET_GROUP WANTED_LEVEL_ON_COMPLETE="5" SKIP_WANTED_ON_STEALTH="0">
<TARGETS>
<TARGET REQUIRED="0" ID="GUARD_1" ARMOR="100" CHAT_TO_TARGET_ID="GUARD_2" ACCURACY_MIN="40" ACCURACY_MAX="60" PLAYER_RELATIONSHIP="HOSTILE">
<LOCATIONS>
<LOCATION X="753.659" Y="1287.431" Z="360.297" ANGLE="267.869"/>
</LOCATIONS>
<MODEL_HASHES>
<MODEL HASH="1702441027" />
</MODEL_HASHES>
<WEAPONS>
<WEAPON HASH="2937143193"/>
</WEAPONS>
</TARGET>
<TARGET REQUIRED="0" ID="GUARD_2" ARMOR="100" CHAT_TO_TARGET_ID="GUARD_1" ACCURACY_MIN="40" ACCURACY_MAX="60" PLAYER_RELATIONSHIP="HOSTILE">
<LOCATIONS>
<LOCATION X="755.853" Y="1287.122" Z="360.297" ANGLE="73.498"/>
</LOCATIONS>
<MODEL_HASHES>
<MODEL HASH="1702441027" />
</MODEL_HASHES>
<WEAPONS>
<WEAPON HASH="2937143193"/>
</WEAPONS>
</TARGET>
<TARGET REQUIRED="0" ID="GUARD_3" ARMOR="100" ACCURACY_MIN="40" ACCURACY_MAX="60" PLAYER_RELATIONSHIP="HOSTILE">
<LOCATIONS>
<LOCATION X="767.841" Y="1271.742" Z="360.297" ANGLE="5.720"/>
</LOCATIONS>
<MODEL_HASHES>
<MODEL HASH="1702441027" />
</MODEL_HASHES>
<WEAPONS>
<WEAPON HASH="2937143193"/>
</WEAPONS>
</TARGET>
<TARGET REQUIRED="0" ID="GUARD_4" ARMOR="100" ACCURACY_MIN="40" ACCURACY_MAX="60" PLAYER_RELATIONSHIP="HOSTILE">
<LOCATIONS>
<LOCATION X="726.048" Y="1289.646" Z="360.297" ANGLE="240.022"/>
</LOCATIONS>
<MODEL_HASHES>
<MODEL HASH="1702441027" />
</MODEL_HASHES>
<WEAPONS>
<WEAPON HASH="2937143193"/>
</WEAPONS>
</TARGET>
</TARGETS>
<VEHICLES>
<VEHICLE ID="MAVERICK">
<LOCATIONS>
<LOCATION X="734.423" Y="1295.589" Z="360.296" ANGLE="181.628"/>
</LOCATIONS>
<MODEL_HASHES>
<MODEL HASH="2634305738" />
</MODEL_HASHES>
</VEHICLE>
</VEHICLES>
<PICKUPS>
<PICKUP MARKED_ON_MAP="1" REQUIRED="1">
<LOCATIONS>
<LOCATION X="661.418" Y="1280.907" Z="360.296" ANGLE="0"/>
</LOCATIONS>
<MODEL HASH="1430410579" />
</PICKUP>
</PICKUPS>
<ON_GROUP_START_MESSAGES>
<MESSAGE DELAY="0">
Merryweather has a new technology our contractor needs. You can find it atop Vinewood Hills.
</MESSAGE>
<MESSAGE DELAY="6000">
Be prepared, they won't be giving it to you easily.
</MESSAGE>
</ON_GROUP_START_MESSAGES>
<ON_GROUP_KILLED_MESSAGES>
<MESSAGE DELAY="0">
Our contractor will be happy. We are wiring you your payment.
</MESSAGE>
</ON_GROUP_KILLED_MESSAGES>
<REWARD MONEY_MIN="75000" MONEY_MAX="100000" MONEY_STEP="1000" />
</TARGET_GROUP>
</TARGET_GROUPS>
</MISSION>
<REFERENCE PATH="scripts/JavelinV/JavelinVMissions.xml"/>
First of all, read the structure. Copy any of the missions from the default mission pack to fasten things up, then modify it as you please. Once finished, I encourage you to create your own XML file and place it in the scripts/JavelinV folder. After that, edit the JavelinVMissionReferences.xml file and add the reference to your file. The default mission pack reference should be there already, copy that line and rename the file at the end of the path to your XML's name. If all done right, the reference file should look something like this:
<REFERENCES>
<REFERENCE PATH="scripts/JavelinV/JavelinVMissions.xml"/>
<REFERENCE PATH="scripts/JavelinV/MY_MISSIONS.xml"/>
</REFERENCES>
Before you do share your file with us, please make sure it works. Open the scripts/JavelinV/JavelinV.ini file and set the DEBUG and XML_DEBUG options to TRUE. Boot up your game or if you are already in-game, reload the scripts via INSERT. Javelin should message you about the amount of missions available. If you got no error, then the missions are probably loaded. Press the START_STOP_KEY set in the INI.
If you remove the reference from JavelinVMissionReferences.xml to the default file, you can test one mission at a time in your own XML file.
If you know how to fix for a certain bug, please let me know! Please report any other bugs.
https://www.gta5-mods.com/scripts/javelinv-an-extendable-hitman-assassination-mod