Skip to main content

GetPlayerWindTurbines

warning

This export is only available for serverside!

Export Syntax
exports['dream_windturbines']:GetPlayerWindTurbines(PlayerId) -- Returns a table with data

Parameter

  1. PlayerId (String) -> The PlayerId of a specific player

Response

See GetAllWindTurbines.md, but only with player-owned wind turbines

Example Export
local WindTurbines = exports['dream_windturbines']:GetPlayerWindTurbines(source)

-- 🎉 This will only loop the wind turbines owned by the specific player
for key, value in pairs(WindTurbines) do
print(value.id) -- 📌 TurbineId
print(value.price) -- 💸 Wind Turbine Price
print(value.type) -- ✉️ Wind Turbine Type

-- 💬 Use all other variables...
end