getAllGraffitisByOwner
exports["RiP-Graffiti"]:getAllGraffitisByOwner(owner)
This function returns all graffiti data owned by a specific player
Arguments
Name | Type | Optional | Explanation |
---|---|---|---|
owner | String | No | The owner identifier |
Returned Table
Name | Type | Explanation |
---|---|---|
graffitis | Table | Array of graffiti data containing coordinates, text, and style |
Example
local ownerGraffitis = exports["RiP-Graffiti"]:getAllGraffitisByOwner("license:1234567890")
for _, graffiti in pairs(ownerGraffitis) do
print("Graffiti text:", json.encode(graffiti))
end