Configuration

This page explains all available configuration options for the resource, allowing you to customize its behavior, features, and framework compatibility.

config.lua
Config = {
    swimmingAnimals = {
        [`a_c_chop`] = {canDive = true},
        [`a_c_husky`] = {canDive = true},
    },
    divingKey = 'Z', 
    defaultCanSwim = true,
    defaultCanDive = true,
}
  • swimmingAnimals - This list defines which animal peds can swim (and dive).

  • divingKey - Determines which key is responsible for diving.

  • defaultCanSwim/defaultCanDive - The default values for whether the player can swim/dive. Used for integration purposes (i.e if the player should only get the ability to swim after reaching a certain level).

Last updated