Watch Dogs

An extensive resource introducing many features from the Watch Dogs franchise to your FiveM server.

Info

ti_watchDogs introduces many features from the popular Watch Dogs franchise into your FiveM server. Configuration is vast, and extensibility ends where your imagination ends.

This resource supports multiple "target types":

  • Points/Coordinate.

  • Entity Type (Ped, Vehicle, Object).

  • Entity Model.

  • Local Entity.

  • Networked Entity.

Target interaction options are merged as required. As shown in the screenshot below, the target on the left is a generic "ped entity type" target. The target on the right combines both a "local entity" and the generic "ped entity type", with overrides for colour, image, etc- all prioritized to the local entity target. An example of how to recreate this is present within the resource.

Beyond the targeting system, there is an extensive and entirely customizable skill tree. You can redefine the entire tree how you please, and edit meaningful variables such as the cooldown range, the range of time to perform the skill, and the cooldown of the skill. The range is interpolated based on both the players level and the individual skill level. Here is a single example of a defined skill:

    name = "Hack",
    skill = "hack",
    description = "Hack into a computer system.",
    icon = "fa-solid fa-wifi-exclamation",
    skill_points = 1,
    min_cooldown = 500,
    max_cooldown = 2000,
    xp_on_success = 10,
    xp_on_fail = 1,
    min_time = 1000,
    max_time = 3000,
    action = "Hacking",
    min_chance = 75,
    max_chance = 100,
    children = { ... }

Skill points are gained by levelling up your hacking skill. Each time you use a skill, you will gain experienced based on whether you succeeded or failed. The levelling algorithm is configurable for both player experience and individual skill experience.

Defining actions requires a call-back to be present (either exports or events), and while this resource (outside of the examples) provides no base functionality, it is relatively easy with minimal coding experience to create a fully functional script using only a few tables and exports. A local bank heist script has been provided as an example to showcase this.

For more information, check out the video, where greater detail can be illustrated through the use of images.

Setup

Dependencies

Installation

  1. After purchasing the resource, download it from your keymaster.

  2. Extract the resource into your servers resources folder.

  3. Add start ti_watchDogsto your server.cfg, below start ti_utils.

  4. Execute the sql statement file found below, or at ti_watchDogs/[sql]/watchdogs.sql.

  5. Observe the server console on start-up for potential errors or warnings.

SQL

CREATE TABLE IF NOT EXISTS `watchdogs` (
  `owner` varchar(60) NOT NULL DEFAULT '',
  `level` int(11) NOT NULL DEFAULT 1,
  `experience` int(11) NOT NULL DEFAULT 0,
  `skill_points` int(11) NOT NULL DEFAULT 0,
  `skills` longtext NOT NULL DEFAULT '[]',
  `binds` longtext NOT NULL DEFAULT '[]',
  `permanent_hacker` tinyint(4) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Config

Last updated