Misc Configuration Values
We've got some misc configuration values which can be changed if needed. To take a look, open the config.lua file and navigate to the main = {
section.
frameRotation - This determines the rotation of the grappler when it is deployed and ready to be used on a vehicle. If you're finding that it is too highly rotated and not able to properly hook under a car onto the tyres, you may wish to decrease/increase this number to change this. This will require trial and error to find out what works best for your server.
burstTyre - This determines whether the tyre of the target vehicle should be burst upon a grappler being used on it. We recommend leaing this on for a more realistic experience.
burstTyreLevel - This determines the level that the tyre should be burst at. This value is out of 1000, and 1000 will completely deflate it. We've set it at 700 by default as this was the right value in our tests.
rope - These settings should probably best be left how they are. It configures the default length, max length and type of the rope which is created between the grappler bumper and the target vehicle. The default settings work effectively and we've tested these out!
Grappler Deployment Key
Using /grappler deploy whilst in an active pursuit may not be the fastest option, this is why we've added a grappler deployment key into the config.
Find the deployGrapplerKey = {
section to begin configuring this.
By default, we've set this to Y. The first number is the control group and the second number is the selected control.
You can find a list of controls here. We recommend leaving the control group at 0 as this is the player control group. You should find the selected control and then copy the number into the second part of the brackets to change the control.
Discord Logging
We've integrated Discord Logging straight out of the box. You'll be able to receive logs straight into a channel for everything that happens in relation to the grappler, including installation, deployment, being used on a vehicle and then being removed.
To begin, navigate to your Discord Server and make a new channel or choose an existing one where the logs should be sent to.
Next, follow this tutorial by Discord to create a Webhook Integration.
Now you have created a webhook, copy this and open the sv_utils.lua file. At the top, you should see:
Paste your webhook within the speech marks and you can now move on to configuring the contents and appearance of the webhooks.
To do this, navigate back to the config.lua file and find the section titled logging = {
.
If you want to enable logging, make sure this is enabled as such in the config under the logging section.
The displayName property determines the name that the webhook will use when logging events from the resource into your selected channel.
The colour property sets the colour of the embedded messages. This uses a decimal colour system, you can select a colour here. This is different to hexadecimal so ensure you have copied the right value after selecting a colour.
The title simply sets the title of the logs.
The icon and footerIcon properties decide the images that are displayed, one of which is in the footer and one larger, next to the logged data. By default, we've configured this to the London Studios logo.
The dateFormat property allows you to decide how the date and time is formatted in the timestamp part of the log, showing you the exact time of the action. You can configure this to just show the date for example, removing hours, minutes and seconds if you wish to do so.
Animation & Sound
We've added an animation for setting up/removing the grappler and also a sound for when it is deployed inside the vehicle. This can be configured below. Firstly, open the config.lua file.
Animation
Navigate to the animation = {
section.
Setting enabled to false will allow you to disable the animation, allowing the grappler to be setup instantly rather than going through an animation process each time. We've enabled this by default as it is realistic to have to install it on the vehicle every time.
dict - This is the animation dictionary. name - This is the animation name.
You can find a list of animations here. The left column is the dictionary and the right column is the name. By default, we've configured an animation which we believe will work for most servers.
Sound
Navigate to the grapplerSound = {
section.
By default, we've configured this to play a beep sound for all passengers in the vehicle that the grappler is deployed in. Deployment means when the grappler is lowered, ready to be used.
Setting enabled to false will disable the deployment sound.
soundName - This is the sound name. soundDict - This is the sound dictionary.
A list of frontend sounds can be found here.
Last updated