-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a new profile
Profiles are XML files (= text files with .xml
extension) and must be placed in <GTA5 main folder>\scripts\NoMoreShortcuts
.
A profile has some required parameters that needs to be filled.
Profiles contains two main parts: <Phone>
and <Menu>
<?xml version="1.0" encoding="utf-8"?>
<NMS>
<Phone>
...
</Phone>
<Menu>
...
</Menu>
</NMS>
The <Phone>
section is required since it creates the phone contact.
The <Menu>
section is optional (creates a menu when you call the contact).
Menus are useful if a mod uses many shortcuts or if you want to pack differents mods into a single contact.
Phone documentation contains all parameters supported for the phone section.
Menu documentation contains everything you need to know to create a menu.
Key codes list contains all valid key codes to use for your shortcut keys.
Example files are available here
Here is an example of the simplest profile:
<?xml version="1.0" encoding="utf-8"?>
<NMS>
<Phone>
<ContactName>Native Trainer</ContactName>
<Key>F4</Key>
</Phone>
</NMS>
It will add contact named Native Trainer which will press F4 for you when you call it.
Example files are available here
Here is an example of a very complete profile using a menu:
<?xml version="1.0" encoding="utf-8"?>
<NMS>
<Phone>
<ContactName>Trainers</ContactName>
<ContactIcon>CHAR_AMMUNATION</ContactIcon>
<DialTimeout>2000</DialTimeout>
<SoundFile>Trainers.wav</SoundFile>
<Volume>50</Volume>
</Phone>
<Menu>
<Banner>Trainers.png</Banner>
<SubItem text="Native Trainer">
<NotificationIcon>CHAR_DEFAULT</NotificationIcon>
<NotificationTitle>Simple Trainer</NotificationTitle>
<NotificationSubtitle>The simplest trainer</NotificationSubtitle>
<NotificationMessage>This notification has been displayed 4.2 seconds after selecting the item.</NotificationMessage>
<NotificationDelay>4200</NotificationDelay>
<Key>F4</Key>
</SubItem>
<SubMenu text="Other trainers">
<SubItem text="Menyoo">
<NotificationIcon>CHAR_LESTER_DEATHWISH</NotificationIcon>
<NotificationTitle>Menyoo</NotificationTitle>
<NotificationSubtitle>Man yo see Menyoo's menu?</NotificationSubtitle>
<NotificationMessage>This notification has been displayed instantly!</NotificationMessage>
<NotificationDelay>0</NotificationDelay>
<Key>F8</Key>
</SubItem>
<SubItem text="Police Menu">
<Key>ALT</Key>
<Key>F7</Key>
</SubItem>
</SubMenu>
</Menu>
</NMS>
The result:
Main menu | Submenu "Other trainers" |
---|---|