Guest User

Untitled

a guest
Jan 12th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1.         if (LocalPlayer():GetActiveWeapon():IsValid()) then -- If player is alive then
  2.  
  3.             -- Finds & displays client's current weapon ammo
  4.             if (LocalPlayer():GetActiveWeapon():Clip1() != -1) then
  5.                 draw.SimpleText("Ammo: " .. LocalPlayer():GetActiveWeapon():Clip1() .. "/" .. LocalPlayer():GetAmmoCount(LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()),"Font50",ScrW()-315,ScrH()-115,Color(255,255,255),0,0) -- "Ammo" text
  6.             else
  7.                 draw.SimpleText("Ammo:" .. LocalPlayer():GetAmmoCount(LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()),"Font50",ScrW()-315,ScrH()-115,Color(255,255,255),0,0)
  8.             end
  9.  
  10.             -- Finds & displays client's current weapon
  11.             if (LocalPlayer():GetActiveWeapon():GetPrintName() != nil) then
  12.                 draw.SimpleText("Gun: " .. LocalPlayer():GetActiveWeapon():GetPrintName(),"Font30",ScrW()-315,ScrH()-60,Color(255,255,255),0,0)
  13.             end
  14.         end
Advertisement
Add Comment
Please, Sign In to add comment