Aimcac

callouts_s

Sep 3rd, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1.  if getPlayerTeam(source, getTeamFromName("State Police")) then
  2.     setTimer(query,500000,0)
  3.        function query()
  4.           outputChatBox ("#F70A1A[Dispatch] #513BE3AOfficer, a callout is available do you wish to take it? Click LMB for yes or RMB for no. " , getRootElement())
  5.        end
  6.  
  7.              addEventHandler("onPlayerClick",getRootElement,
  8.     function(mouseButton)
  9.         if (mouseButton == "Left") then
  10.               triggerClientEvent(resourceRoot,"executeCallout",resourceRoot)
  11.              
  12.          end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment