[HELP] ESX drop item

Hello, I’m using extendedmode and esx_inventoryhud.
I would like that when an object is dropped there is no bag, I have already tried to change the setting "Config.DefaultPickupModel = prop_money_bag_01 "which is in extendedmode, but if I put the empty string or change model, the drop doesn’t appear, even the label “E: Pickup”. How do I make only the label “E: Pickup” appear and remove the bag/a “less invasive” model?

Pls I need to know, UP!

Up please!

Hi, I finally found a very crude but functional solution.
I went to modify the alpha of the entity in its creation by modifying this function located in resources \ extendedmode \ client \ functions.lua
I only added SetEntityAlpha(obj, 0, false) after the obj is created, in this way only the label [Name] E: Pickup appears.

ESX.Game.SpawnObject = function(model, coords, cb, networked, dynamic)
	local vector = type(coords) == "vector3" and coords or vec(coords.x, coords.y, coords.z)
	networked = networked == nil and true or false
	dynamic = dynamic ~= nil and true or false
	
	CreateThread(function()
		ESX.Streaming.RequestModel(model)
		
		-- The below has to be done just for CreateObject since for some reason CreateObjects model argument is set
		-- as an Object instead of a hash so it doesn't automatically hash the item
		model = type(model) == 'number' and model or GetHashKey(model)
		--while not HasModelLoaded(model) do Citizen.Wait(0) end
		local obj = CreateObject(model, vector.xyz, networked, false, dynamic)
		SetEntityAlpha(obj, 0, false)
		if cb then
			cb(obj)
		end
	end)
end
3 Likes