rickvocam

1

Mar 27th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. function tim_ngua()
  3. local client = nx_value("game_client")
  4. if not nx_is_valid(client) then
  5. return 0
  6. end
  7. local game_visual = nx_value("game_visual")
  8. if not nx_is_valid(game_visual) then
  9. return 0
  10. end
  11. local view_table = client:GetViewList()
  12. for i = 1, table.getn(view_table) do
  13. local view = view_table[i]
  14. if view.Ident == "2" then
  15. local view_obj_table = view:GetViewObjList()
  16. for k = 1, table.getn(view_obj_table) do
  17. local view_obj = view_obj_table[k]
  18. if view_obj:FindProp("RideBuffer") then
  19. local item = nx_function("ext_widestr_to_utf8", util_text(view_obj:QueryProp("ConfigID")))
  20. AutoSendMessage(item)
  21. end
  22. end
  23. break
  24. end
  25.  
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment