Advertisement
LordNoobIV

sVehicleLoad

Apr 6th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. lTable = {}
  2.  
  3.  
  4. function MakeTable(args)
  5.     for vehicle in Server:GetVehicles() do
  6.         if vehicle:GetModelID() == 85 or if tostring(vehicle) == "Bering I-86DP" then
  7.             if Vector3.Distance(Player:GetPosition, vehicle:GetPosition) < 5 then
  8.                 Vehicle1.Remove()
  9.                 lTable.insert([Vehicle1:GetName()] = Vehicle1:GetDriver())
  10.                 break
  11.             end
  12.         end
  13.     end
  14. end
  15.  
  16. Network:Subscribe(Vehicle1, MakeTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement