GetWindTurbine
warning
This export is only available for serverside!
Export Syntax
exports['dream_windturbines']:GetWindTurbine(TurbineId) -- Returns a table with data
Parameter
- TurbineId (String) -> The Turbine-Id. See GetAllWindTurbines.md
Response
See GetAllWindTurbines.md, but only for a specific wind turbine
Example Export
--
local WindTurbine10 = exports['dream_windturbines']:GetWindTurbine("10")
-- ⚠️ You do not need to enumerate here!
print(WindTurbine10.id) -- 📌 TurbineId
print(WindTurbine10.price) -- 💸 Wind Turbine Price
print(WindTurbine10.type) -- ✉️ Wind Turbine Type
-- 💬 Use all other variables...