Hello guys, Can someone help me with this inspect script? it all works but dont find players weapons
function Revistar (source)
local Jogador = getElementData(source, "TS:Abordando")
if Jogador then
setPedAnimation( source, "POLICE", "plc_drgbst_01", 3100, true, false, false, false)
triggerClientEvent(Jogador, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO Policial está te revistando!", "info")
if getPlayerWantedLevel(Jogador) >= 1 then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador está pedido!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não está pedido!",source,255,0,0,true)
end
if getElementData(Jogador,"DNL:Categoria(A)") == true then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação A!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação A!",source,255,0,0,true)
end
if getElementData(Jogador,"DNL:Categoria(B)") == true then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação B!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação B!",source,255,0,0,true)
end
if getElementData(Jogador,"DNL:Categoria(C)") == true then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação C!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação C!",source,255,0,0,true)
end
if getElementData(Jogador,"DNL:Categoria(D)") == true then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação D!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação D!",source,255,0,0,true)
end
if getElementData(Jogador,"DNL:Categoria(E)") == true then
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador tem Habilitação E!",source,255,0,0,true)
else
outputChatBox("#0037FF✘#ffffffINFO#0037FF✘➺ #ffffff O jogador não tem Habilitação E!",source,255,0,0,true)
end
local Quantidade = getElementData(source, "TS:"..Droga_Selecionada.."") or 0
for slot = 0, 12 do
outputChatBox ( "#0064c8» #ffffffDrogas do jogador:#0064c8 "..Drogas, source, 255, 255, 255, true )
outputChatBox ( "#0064c8» #ffffffArmas do jogador:", source, 255, 255, 255, true )
for slot = 0, 12 do
local Armas = getPedWeapon ( cliente, slot )
local Municao = getPedTotalAmmo ( cliente, slot )
if Armas > 0 then
if Municao > 0 then
weapon_nome = getWeaponNameFromID ( Armas )
outputChatBox ( "#0064c8» #ffffff"..weapon_nome.." #0064c8- #ffffff"..Municao.." Bala(s)!", source, 255, 255, 255, true )
end
end
end
end
end
end
addEvent("TS:Revistar", true)
addEventHandler("TS:Revistar", root, Revistar)