#Veículos em blacklist

1 messages · Page 1 of 1 (latest)

whole berry
#

basta removelos de forma correta

#

no docs do gta v

#

tem todos carros do gta

latent galleon
#

Sim, mas tem de ser 1 por 1? Pensei que já existisse uma lista pronta de carros ideais para rp, ou uma lista pronta de carros blacklisted

#

E como remover? Tem alguma função de blacklist no qbx_small resources mas mesmo os carros lá listados ainda consigo fazer spawn

latent galleon
#

Aqui vai a lista que coloquei em blacklist caso alguém precise futuramente:

akula
alkonost
alphaz1
ambulance
annihilator
annihilator2
apc
avenger
avenger2
avenger3
avenger4
avisa
barracks
barracks2
barracks3
barrage
besra
biff
blimp
blimp2
blimp3
bombushka
broadway
bulldozer
buzzard
cargobob
cargobob2
cargobob3
cargobob4
cargobob5
cargoplane
cargoplane2
cerberus
cerberus2
cerberus3
chernobog
conada2
crusader
cutter
deathbike
deathbike2
deathbike3
dilettante2
dinghy2
dinghy3
dinghy4
dinghy5
dominator4
dominator5
dominator6
dukes2
dukes3
dump
duster2
fbi
fbi2
frogger
frogger2
halftrack
handler
hauler
hauler2
howard
hunter
hydra
issi4
issi5
issi6
jet
khanjali
kosatka
lazer
longfin
manchez2
manchez3
marquis
minitank
mixer
mixer2
mogul
molotok
mule
mule2
mule3
mule4
nokota
oppressor
oppressor2
packer
patrolboat
phantom
phantom2
phantom3
police
police2
police3
police4
policeb
policeold1
policeold2
policet
polmav
pounder
pounder2
powersurge
pranger
predator
pyro
raiju
ratbike
rhino
riot2
rogue
rubble
savage
scarab
scarab2
scarab3
seabreeze
seashark2
seashark3
seasparrow
seasparrow2
seasparrow3
sheriff
sheriff2
shotaro
skylift
sovereign
speeder2
starling
stockade3
streamer216
strikeforce
stryder
stunt
submersible
submersible2
supervolito2
swift
swift2
terbyte
thruster
tiptruck
tiptruck2
titan
titan2
toro2
trailersmall2
tropic2
tug
tula
valkyrie
valkyrie2
vetir
volatol

jade pilot
#

qual caminho pra add na black ?

latent galleon
#

Qbox small resources

#

Tem lá o blacklist num ficheiro chamado vehicles.lua

#

Só que dizem que parou de funcionar na última versão do txadmin

#

Portanto todos os itens na lista blacklist aceita spawnar nessa versão do tx

hollow slate
mortal portal
# latent galleon Qbox small resources

A solução esta aqui:

qbx_entitiesblacklist/server.lua

Deleta o que esta lá e colocar isso aqui>

local config = require 'qbx_entitiesblacklist.config'
local bucketLockDownMode = GetConvar('qbx:bucketlockdownmode', 'relaxed')
-- If you want to blacklist peds and vehicles from certaiin locations utilize Car gens ymaps as done in streams/car_gen_disablers, as entityCreating handler is very expensive compared to ymap.
if bucketLockDownMode ~= 'inactive' or table.type(config.blacklisted) == 'empty' then return end
lib.print.warn('[qbx_entitiesblacklist] You have entity blacklist enabled, this means that any entity that is blacklisted in config.lua will not be able to spawn, you can change this in qbx_smallresource/qbx_entitiesblacklist/config.lua')
-- Blacklisting entities can just be handled entirely server side with onesync events
-- No need to run coroutines to supress or delete these when we can simply delete them before they spawn
if type(config.blacklisted) ~= 'table' then
    lib.print.warning('[qbx_entitiesblacklist] Blacklisted vehicles is not a table')
    return
end

AddEventHandler('entityCreating', function(handle)
    local entityModel = GetEntityModel(handle)

    if config.blacklisted[entityModel] then
        CancelEvent()
    end
end)```
mortal portal
mortal portal