Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local localvehicles = {}
  2. for i,v in pairs(plr.Vehicles:GetChildren()) do
  3. --localvehicles[#localvehicles+1] = v.Name
  4. table.insert(localvehicles,(#localvehicles+1),v.Name)
  5. print(v.Name)
  6. end
  7.  
  8. for i,v in pairs(localvehicles) do
  9. print(v)
  10. end
  11. localvehicles = httpservice:JSONEncode(localvehicles)
  12. vehicles:SetAsync(plr.UserId,localvehicles)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement