Advertisement
LordNoobIV

cLostRepair

Apr 10th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. LostRepairClient = function(args)
  2.     local LostIsland = Vector3(-14091, 688, -14145)
  3.     v = LocalPlayer:GetVehicle()
  4.     if Vector3.Distance(LocalPlayer:GetPosition(), LostIsland) < 3000 and Vector3.Distance(LocalPlayer:GetPosition(), LostIsland) > 1750 and LocalPlayer:InVehicle() == true and v:GetHealth() < 0.3 and v:GetDriver() == LocalPlayer then
  5.         print("Sent request for repair to server")
  6.         Game:FireEvent("f2m06.emp.explode")
  7.         Network:Send("Repair", args)
  8.     end
  9. end
  10.  
  11. Events:Subscribe("PostTick", LostRepairClient)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement