Obtener turbinas eólicas del jugador
aviso
Este export solo está disponible para el lado del servidor!
Export Syntax
exports['dream_windturbines']:GetPlayerWindTurbines(PlayerId) -- Returns a table with data
Parámetro
- PlayerId (String) -> El PlayerId de un jugador específico
Respuesta
Ver GetAllWindTurbines.md, pero solo con turbinas eólicas propiedad del jugador
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