Function: GiveLoot(entity, player, coins, item_id)
Description: Provides the player pending loot items from the entity(Spawn) with item_id that allows multiple comma delimited entries. The coins will be added to the entities lootable coin.
Parameters:
entity(Spawn) - Spawn object representingentity.player(Spawn) - Spawn object representingplayer.coins(uint32) - Integer valuecoins.item_id(uint32) - Integer valueitem_id.
Returns: None.
Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.