Garry's Mod Wiki

Entity:GetWorkshopID

  number Entity:GetWorkshopID()

Description

We advise against using this. It may be changed or removed in a future update. The function currently does nothing and always returns nil

Returns ID of workshop addon that the entity is from.

Returns

1 number
The workshop ID