target system custom
This commit is contained in:
@@ -921,30 +921,3 @@ RegisterNetEvent('housing:initHouses', function(houseConfig)
|
||||
end
|
||||
end)
|
||||
|
||||
-- ============================================================================
|
||||
-- RED VALLEY: qb-target pe NPC-ul Real Estate (înlocuiește [E] - Open House Browser)
|
||||
-- ============================================================================
|
||||
if Config.RealeStateNPC and Config.RealeStateNPC.enabled then
|
||||
CreateThread(function()
|
||||
Wait(3000) -- Așteptăm ca NPC-ul să fie spawnat de codul encrypted
|
||||
local npcCoords = Config.RealeStateNPC.location
|
||||
exports[target_name]:AddBoxZone('rv_realestate_npc', vec3(npcCoords.x, npcCoords.y, npcCoords.z), 1.5, 1.5, {
|
||||
name = 'rv_realestate_npc',
|
||||
heading = npcCoords.w,
|
||||
debugPoly = false,
|
||||
minZ = npcCoords.z - 1.0,
|
||||
maxZ = npcCoords.z + 2.0,
|
||||
}, {
|
||||
options = {
|
||||
{
|
||||
icon = 'fa-solid fa-house',
|
||||
label = 'Open House Browser',
|
||||
action = function()
|
||||
ExecuteCommand('housebrowser')
|
||||
end,
|
||||
},
|
||||
},
|
||||
distance = 2.5,
|
||||
})
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user