Thommie Scripts
StoreDiscordGithub
  • Information
    • FAQ
  • Paid Resources
    • Banktruck Robbery
    • Bay City Bank Robbery
    • Fences
      • Installation
    • Forgery
    • Money Laundering
      • Installation
    • Weapondealer
      • Installation
  • Free Resources
    • Model Loader
    • Copper Cutting
    • Notifications
    • Tasks
    • Siren Control
Powered by GitBook
On this page
  • Dependencies
  • How to install
  • How to add new fences
  1. Paid Resources
  2. Fences

Installation

This page will give you the information you need to setup our fences script.

PreviousFencesNextForgery

Last updated 7 months ago

Make sure you read everything carefull when installing this resource.

Dependencies

by qbcore-framework by qbcore-framework or by overextended

How to install

  • Download and unzip the thommie-fences.zip

  • Add "ensure thommie-fences" to your server.cfg

  • (re)start your server and you are done.

How to add new fences

You can create new fence easily by going to the config.lua, once there you head over to Config.Fences (line 11 by default). Now you can follow the template we have made and change the values.

Fence Template:

['fence_name'] = {
    ped = 'G_M_M_FriedlanderGoons_01', -- This is the ped that will be spawned
    pos = vector4(0, 0, 0, 0), -- This is the location where the ped will stand
    scenario = 'WORLD_HUMAN_TOURIST_MOBILE', -- This is the scenario that the ped will be playing
    items = { -- This is the list of items the ped will buy from a player
        -- There are two reward type's you can use, these are 'money' and 'item'. For both an example down here.
        [id] = {name = 'example_item', price = 0, rewardType = 'money'},
        [id] = {name = 'example_item', price = 0, rewardType = 'item', itemReward = 'example_item', itemAmount = 1},
    },
},
qb-core
qb-target
ox_target
Page cover image