Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local TB2Insert = {}
  2. TB2Insert.TuneData = DB.TuneData
  3. TB2Insert.VehicleName = DB.VehicleName
  4. TB2Insert.UniqueID = UID
  5. InventoryData[UID] = TB2Insert
  6. Covered = Covered + 1
  7. end
  8.  
  9. if Covered > 0 then
  10. RXCar_Provider_SaveInventory(ply:SteamID(),InventoryData,function(Done)
  11. ply:RXCarNotify("[Car dealer] : You had " .. Covered .. " Cars before server is crashed. they are all restored.")
  12. end)
  13. end
  14.  
  15. file.Write("rm_car_dealer2/crashsaver/" .. SteamIDG .. ".txt", util.TableToJSON({}))
  16. end)
  17.  
  18. end
  19. end
  20.  
  21. concommand.Add( "forcebuy", function(ply)
  22.  
  23. end )
  24.  
  25. function D3DCarCrashSaver:RemoveCar(ply,CarEnt)
  26. if ply.D3DCar_ActivatingCars[CarEnt] then
  27. ply.D3DCar_ActivatingCars[CarEnt] = nil
  28. D3DCarCrashSaver:SaveActivatingCars(ply)
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement