Guest User

Untitled

a guest
Nov 15th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local lastDistrictKey
  2.  
  3. function getCurrentDistrictKey(element)
  4.     for k, v in ipairs(district) do
  5.         if v == element then
  6.             return k
  7.         end
  8.     end
  9.     return false
  10. end
  11.  
  12. function outputDistrictName()
  13.     lastDistrictKey = getCurrentDistrictKey(source)
  14.     outputChatBox("" .. districts[lastDistrictKey][5] .. ".")
  15. end
  16. addEventHandler("onClientColShapeHit", colShape, outputDistrictName)
Advertisement
Add Comment
Please, Sign In to add comment