07.08.2016, 22:29
Use RemovePlayerAttachedObject for attached objects.
EDIT:
You also don't need trashObject[playerid] anymore, but you need to store the index instead.
EDIT:
You also don't need trashObject[playerid] anymore, but you need to store the index instead.