Hello there.
Sometimes when you frisk a ped, a drug package spawns in front of him. I try to add a feature to my mod, which lets the player decide if he wants to register it or just take and sell it later (as it was possible in True Crime).
Here my problem: The player seems to be able to collect those packages (which use the model PROP_DRUG_PACKAGE_02), but until now I'm unable to find any further information about it anywhere.
Where is the information about drug packages stored? It doesn't seem to be accessible in a managed way. I could neither find information about it in the ped object of the ped who dropped it, nor in the ped object of the player who collected it. It also doesn't seem related to the contraband collection, even though it can contain drugs too. But they won't cause a drug package to spawn when frisking their owner.
A workaround would be to monitor all nearby objects and if there is a drug package, the player crosses it's position and it disappears, to register it as a collected package on my own. But this would be a hack and I'm sure there must be a better way. Any ideas?
Thanks in advance!