Page cover image

Installation

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

Make sure you read everything carefull when installing this resource.

Dependencies

qb-core by qbcore-framework qb-target by qbcore-framework or ox_target 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},
    },
},

Last updated