ESX

INSTALLATION GUIDE

1 - Downloading MOUT2

  • Before starting the script you will have to go to your CFX KEYMASTR account and download MOUT2 wich is a script you get when buying Base Building, this script contains all the custom props a made for the building of the base, should be started before the base building script.

2 - Inserting the new items in DATABASE

  • Inside HRS_BASE_BUILDING folder you will find a folder called IMPORTANT, there you can find an SQL file called ESX_ITEMS, you should insert this items into your server

INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
	('bkr_prop_biker_campbed_01', 'Wood Bed', 1, 0, 1),
	('bkr_prop_meth_table01a', 'Medical Table', 1, 0, 1),
	('gr_prop_gr_bench_02a', 'Weapons Table', 1, 0, 1),
	('gr_prop_gr_gunlocker_01a', 'Metal Storage', 1, 0, 1),
	('gr_prop_gr_hobo_stove_01', 'Campfire', 1, 0, 1),
	('model_base_metal', 'Metal Foundation', 1, 0, 1),
	('model_base_metal_triangle', 'Wood Triangle Foundation', 1, 0, 1),
	('model_base_stone', 'stone Foundation', 1, 0, 1),
	('model_base_stone_triangle', 'stone Triangle Foundation', 1, 0, 1),
	('model_base_wood', 'Wood Foundation', 1, 0, 1),
	('model_base_wood_triangle', 'Metal Triangle Foundation', 1, 0, 1),
	('model_biggateway_wood', 'Big Gate Frame Wood', 1, 0, 1),
	('model_biggate_wood', 'Big Gate Wood', 1, 0, 1),
	('model_bigwall_wood', 'Big Wall Wood', 1, 0, 1),
	('model_ceilingladder_metal_triangle', 'Metal triangle ceiling ladder', 1, 0, 1),
	('model_ceilingladder_stone_triangle', 'Stone triangle ceiling ladder', 1, 0, 1),
	('model_ceilingladder_wood_triangle', 'Wood triangle ceiling ladder', 1, 0, 1),
	('model_ceilingstairs_metal', 'Metal Ceiling Stairs', 1, 0, 1),
	('model_ceilingstairs_stone', 'stone Ceiling Stairs', 1, 0, 1),
	('model_ceilingstairs_wood', 'Wood Ceiling Stairs', 1, 0, 1),
	('model_ceiling_metal', 'Metal Ceiling', 1, 0, 1),
	('model_ceiling_metal_triangle', 'Metal Triangle Ceiling', 1, 0, 1),
	('model_ceiling_stone', 'stone Ceiling', 1, 0, 1),
	('model_ceiling_stone_triangle', 'stone Triangle Ceiling', 1, 0, 1),
	('model_ceiling_wood', 'Wood Ceiling', 1, 0, 1),
	('model_ceiling_wood_triangle', 'Wood Triangle Foundation', 1, 0, 1),
	('model_doorway_metal', 'Metal Door Frame', 1, 0, 1),
	('model_doorway_stone', 'stone Door Frame', 1, 0, 1),
	('model_doorway_wood', 'Wood Door Frame', 1, 0, 1),
	('model_door_metal', 'Metal Door', 1, 0, 1),
	('model_door_stone', 'stone Door', 1, 0, 1),
	('model_door_wood', 'Wood Door', 1, 0, 1),
	('model_gateway_metal', 'Metal Gate Frame', 1, 0, 1),
	('model_gateway_stone', 'stone Gate Frame', 1, 0, 1),
	('model_gateway_wood', 'Wood Gate Frame', 1, 0, 1),
	('model_gate_metal', 'Metal Gate', 1, 0, 1),
	('model_gate_stone', 'stone Gate', 1, 0, 1),
	('model_gate_wood', 'Wood Gate', 1, 0, 1),
	('model_ladder_wood', 'model_ladder_wood', 1, 0, 1),
	('model_pillar_metal', 'Metal Pillar', 1, 0, 1),
	('model_pillar_stone', 'stone Pillar', 1, 0, 1),
	('model_pillar_wood', 'Wood Pillar', 1, 0, 1),
	('model_stairs_metal', 'Metal Stairs', 1, 0, 1),
	('model_stairs_stone', 'Stone Stairs', 1, 0, 1),
	('model_stairs_wood', 'Wood Stairs', 1, 0, 1),
	('model_wall_metal', 'Metal Wall', 1, 0, 1),
	('model_wall_metal_roof', 'Metal Roof', 1, 0, 1),
	('model_wall_metal_roof_triangle', 'Metal Triangle Roof', 1, 0, 1),
	('model_wall_metal_small', 'Metal Small Wall', 1, 0, 1),
	('model_wall_metal_triangle', 'Metal Triangle Wall', 1, 0, 1),
	('model_wall_stone', 'stone Wall', 1, 0, 1),
	('model_wall_stone_roof', 'stone Roof', 1, 0, 1),
	('model_wall_stone_roof_triangle', 'stone Triangle Roof', 1, 0, 1),
	('model_wall_stone_small', 'stone Small Wall', 1, 0, 1),
	('model_wall_stone_triangle', 'stone Triangle Wall', 1, 0, 1),
	('model_wall_wood', 'Wood Wall', 1, 0, 1),
	('model_wall_wood_roof', 'Wood Roof', 1, 0, 1),
	('model_wall_wood_roof_triangle', 'Wood Triangle Roof', 1, 0, 1),
	('model_wall_wood_small', 'Wood Small Wall', 1, 0, 1),
	('model_wall_wood_triangle', 'Wood Triangle Wall', 1, 0, 1),
	('model_windowway_metal', 'Metal Window', 1, 0, 1),
	('model_windowway_stone', 'stone Window', 1, 0, 1),
	('model_windowway_wood', 'Wood Window Frame', 1, 0, 1),
	('model_window_metal', 'Metal Window', 1, 0, 1),
	('model_window_stone', 'stone Window', 1, 0, 1),
	('model_window_wood', 'Wood Window', 1, 0, 1),
	('prop_box_wood01a', 'Wood Storage', 1, 0, 1),
	('prop_generator_01a', 'Generator', 1, 0, 1),
	('prop_money_bag_01', 'Bag', 1, 0, 1),
	('prop_planer_01', 'Recycle Machine', 1, 0, 1),
	('prop_tool_bench02_ld', 'Wood Crafting Table', 1, 0, 1),
	('prop_worklight_01a', 'Lamp 3', 1, 0, 1),
	('prop_worklight_02a', 'Lamp', 1, 0, 1),
	('prop_worklight_04c', 'Lamp 2', 1, 0, 1),
	('p_v_43_safe_s', 'Metal Storage Lv2', 1, 0, 1);
  • you can find some item images in the folder inventory images

3 - Inserting the crew permissions and props locations in DATABASE

  • Inside HRS_BASE_BUILDING\hrs_base_building folder you will find 3 SQL files, CREWS and SQL and SECOND SQL, you should run both

4 - Ensure the scripts

  • server.cfg

ensure hrs_props
ensure hrs_base_building

5 - Choosing some items

  • hrs_base_building\config.lua

You will have to add the items you have chosen in this configs to your server, in this case I have chosen ("weapon_stickybomb","weapon_grenade","petrol","codelock") so I have to add this items to my server so I can use them in the script.

Config.explosionItems = {
    ["weapon_stickybomb"] = {
        damage = 7500.0, -- damage to the prop
        delay = 5 -- time to explode (seconds)
    },
    ["weapon_grenade"] = {
        damage = 4000.0,
        delay = 5
    },
} -- if you want to use items for raiding 

Config.fuelItem = "petrol" ------- choose here the item you want o use as Fuel

Config.needCodeLockItem = "codelock" ---- here you can choose an item to be the code lock item, if you keep this as false code lock item will not be necessary 

6 - Labels

  • If you are NOT using OX_INVENTORY you will have to setup your items labels here

Config.itemLabels = {
    ['model_door_wood'] = 'Wood Door', --- example 
    ['model_door_metal'] = 'Metal Door', --- example 
    ['model_window_wood'] = 'Wood Window', --- example 
    ['model_window_metal'] = 'Metal Window', --- example 
    ['model_windowway_wood'] = 'Wood Window Frame', --- example 
    ['model_windowway_metal'] = 'Metal Window', --- example 
    ['model_wall_wood'] = 'Wood Wall', --- example 
    ['model_wall_metal'] = 'Metal Wall', --- example 
    ['model_doorway_wood'] = 'Wood Door Frame', --- example 
    ['model_doorway_metal'] = 'Metal Door Frame', --- example 
    ['model_gateway_wood'] = 'Wood Gate Frame', --- example 
    ['model_gateway_metal'] = 'Metal Gate Frame', --- example 
    ['model_base_wood'] = 'Wood Foundation', --- example 
    ['model_base_metal'] = 'Metal Foundation', --- example 
    ['model_ceiling_wood'] = 'Wood Ceiling', --- example 
    ['model_ceiling_metal'] = 'Metal Ceiling', --- example 
    ['model_ceilingstairs_wood'] = 'Wood Ceiling Stairs', --- example 
    ['model_ceilingstairs_metal'] = 'Metal Ceiling Stairs', --- example 
    ['model_pillar_wood'] = 'Wood Pillar', --- example 
    ['model_pillar_metal'] = 'Metal Pillar', --- example 
    ['model_gate_wood'] = 'Wood Gate', --- example 
    ['model_gate_metal'] = 'Metal Gate', --- example 
    ['bkr_prop_biker_campbed_01'] = 'Wood Bed', --- example 
    ['v_tre_sofa_mess_b_s'] = 'Wood Sofa', --- example 
    ['prop_tool_bench02_ld'] = 'Wood Crafting Table', --- example 
    ['bkr_prop_meth_table01a'] = 'Medical Table', --- example 
    ['gr_prop_gr_bench_02a'] = 'Weapons Table', --- example 
    ['prop_generator_01a'] = 'Generator', --- example 
    ['prop_box_wood01a'] = 'Wood Storage', --- example 
    ['gr_prop_gr_gunlocker_01a'] = 'Metal Storage', --- example 
    ['p_v_43_safe_s'] = 'Metal Storage Lv2', --- example 
    ['prop_planer_01'] = 'Recycle Machine', --- example 
    ['gr_prop_gr_hobo_stove_01'] = 'Campfire', --- example 
    ['prop_worklight_02a'] = 'Lamp', --- example 
    ['prop_worklight_04c'] = 'Lamp 2', --- example 
    ['model_bigwall_wood'] = 'Big Wall Wood', --- example 
    ['model_biggateway_wood'] = 'Big Gate Frame Wood', --- example 
    ['model_biggate_wood'] = 'Big Gate Wood', --- example 
    ['wood'] = 'wood', --- example 
    ['metalscrap'] = 'Scrap Metal', --- example 
    ['prop_money_bag_01'] = 'Bag' --- example 
}

Last updated