Skip to content

Instantly share code, notes, and snippets.

@ZeroByter
Created August 21, 2016 20:05
Show Gist options
  • Select an option

  • Save ZeroByter/9c6d2cac8cc296cbd779dcecfef60f08 to your computer and use it in GitHub Desktop.

Select an option

Save ZeroByter/9c6d2cac8cc296cbd779dcecfef60f08 to your computer and use it in GitHub Desktop.
PLUGIN.companiesTypes = {}
local privatepolice = baseCompany:Create("police")
privatepolice.needs = {"TYPE_WEAPONS"}
privatepolice.provides = {"TYPE_PROTECTION"}
function privatepolice:New()
obj = {}
setmetatable(obj, self)
self.__index = self
return obj
end
PLUGIN.companiesTypes[#PLUGIN.companiesTypes + 1] = privatepolice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment