โ๏ธConfiguration
config = {}
config.debug = false
config.framework = "autodetect" -- autodetect, qbcore, qbxcore, esx or custom
config.inventory = "autodetect" -- autodetect, ox_inventory, qb-inventory or custom
config.interact = "autodetect" -- autodetect, ox_target, qb-target, j-textui, interact(devyn) or custom
config.TargetDistance = 2 -- This setting is specifically for third-eye target systems like ox_target or qb-target
config.playerdistance = 3 -- closest player distance max value
config.distanceInFront = 0.8 -- This setting is For the distance between the player and the prop
config.noCollision = false -- Collision detection for props: Determines whether or not the prop will collide with the player's feet or cars when dropped
config.itemExpiryTime = 5 -- Example: 1, 2, 3, 4, 5 days -- Item expiry time: Set the lifespan of dropped items in days
config.throwingPower = 27 -- Throwing power configuration: Set the initial throwing power of dropped items
config.throwbutton = "G" -- Default throw button is 'G'
config.givebutton = "E" -- Default give and confirm button is 'E'
config.cancelbutton = "X" -- Default cancel button is 'X'
config.placebutton = "L" -- Default place button is 'L'
config.messages = {
noitemfound = "No item found",
no_nearby = "No one is nearby!",
passed_item = "You passed the item to the player!",
recived_item = "You received an item!",
something_went_wrong = "Something went wrong",
StartPlacementUI = ("[%s] Confirm | [%s] Cancel"):format(config.givebutton, config.cancelbutton),
ShowUIGIVE = ("[%s] Give | [%s] Throw Away | [%s] Place | [%s] Cancel"):format(
config.givebutton,
config.throwbutton,
config.placebutton,
config.cancelbutton
),
}
config.Notification = function(source, message, typ)
if Framework == "qbcore" then
if IsDuplicityVersion() then -- serverside
QBCore.Functions.Notify(source, message, typ)
else -- clientside
QBCore.Functions.Notify(message, typ)
end
elseif Framework == "qbxcore" then
if IsDuplicityVersion() then -- serverside
QBXCore.Functions.Notify(source, message, typ)
else -- clientside
QBXCore.Functions.Notify(message, typ)
end
elseif Framework == "esx" then
if IsDuplicityVersion() then -- serverside
local player = ESX.GetPlayerFromId(source)
player.showNotification(message)
else -- clientside
ESX.ShowNotification(message)
end
elseif Framework == "custom" then
if IsDuplicityVersion() then -- serverside
-- Serverside code goes here
else
-- Clientside code goes here
end
end
end
-- Each entry corresponds to a specific item, with its respective prop model and position/rotation data
config.itemprops = {
-- Cash props
["money"] = {
labelname = "Money",
prop = "bkr_prop_money_wrapped_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
-- Weapons props
["weapon_pistol"] = {
labelname = "Pistol",
prop = "xm3_prop_xm3_pistol_xm3", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_appistol"] = {
labelname = "AP Pistol",
prop = "w_pi_appistol", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_bat"] = {
labelname = "Bat",
prop = "p_cs_bbbat_01",
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 90.0, y = 0.0, z = 55.0 }, -- Rotation for model
},
["weapon_flashlight"] = {
labelname = "Flashlight",
prop = "prop_cs_police_torch", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_knife"] = {
labelname = "Knife",
prop = "prop_w_me_knife_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_heavysniper"] = {
labelname = "Heavy Sniper",
prop = "prop_gun_case_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 90.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_pistol_mk2"] = {
labelname = "Pistol mk2",
prop = "xm3_prop_xm3_pistol_xm3", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_crowbar"] = {
labelname = "Crowbar",
prop = "prop_ing_crowbar", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_hammer"] = {
labelname = "Hammer",
prop = "prop_tool_hammer", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_machete"] = {
labelname = "Machette",
prop = "prop_ld_w_me_machette", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_hatchet"] = {
labelname = "Hatchet",
prop = "prop_w_me_hatchet", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_bottle"] = {
labelname = "Weapon bottle",
prop = "prop_w_me_bottle", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_golfclub"] = {
labelname = "GolfClub",
prop = "prop_golf_iron_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_nightstick"] = {
labelname = "Nightstick",
prop = "w_me_nightstick", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weapon_poolcue"] = {
labelname = "Poolcue",
prop = "prop_pool_cue", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
-- Random Props
["armor"] = {
labelname = "Armor",
prop = "prop_armour_pickup", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["laptop"] = {
labelname = "Laptop",
prop = "xm_prop_x17_laptop_agent14_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["goldbar"] = {
labelname = "Gold Bar",
prop = "hei_prop_heist_gold_bar", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["water"] = {
labelname = "Water",
prop = "vw_prop_casino_water_bottle_01a", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["beer"] = {
labelname = "Beer",
prop = "prop_cs_beer_bot_40oz_02", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["weed_skunk"] = {
labelname = "Weed Skunk",
prop = "prop_stockade_wheel_flat", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["lockpick"] = {
labelname = "Lockpick",
prop = "prop_tool_screwdvr03", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["jerry_can"] = {
labelname = "Jerry can",
prop = "prop_jerrycan_01a", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["burger"] = {
labelname = "Burger",
prop = "prop_food_bs_burg3", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["copper"] = {
labelname = "Copper",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["ironoxide"] = {
labelname = "Ironoxide",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["plastic"] = {
labelname = "Plastic",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["iron"] = {
labelname = "Iron",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["aluminum"] = {
labelname = "Aluminum",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["glass"] = {
labelname = "Glass",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["metalscrap"] = {
labelname = "Metalscrap",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["aluminumoxide"] = {
labelname = "Aluminumoxide",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["cloth"] = {
labelname = "Cloth",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["rubber"] = {
labelname = "Rubber",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["steel"] = {
labelname = "Steel",
prop = "prop_cs_cardbox_01", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["radio"] = {
labelname = "Radio",
prop = "prop_cs_walkie_talkie", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
["tablet"] = {
labelname = "Tablet",
prop = "prop_cs_tablet_02", -- Prop model
pos = { x = 0.5, y = 0.0, z = 0.0 }, -- Position offset
rot = { x = 0.0, y = 0.0, z = 0.0 }, -- Rotation for model
},
}
Last updated