Belzebub

gestures_customcheck_example.lua

Feb 18th, 2022
1,086
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. -- available only for a specific job
  2. INC_GESTURES:Add("Fix the tie", {
  3.     Sequence = "menu_gman",
  4.     Icon = "https://incredible-gmod.ru/gmodstore/gestures/content/fix_the_tie.png",
  5.     CustomCheck = function(ply)
  6.         return ply:GetJob() == "Mayor"
  7.     end
  8. })
  9.  
  10. -- not available only for a specific jobs
  11. INC_GESTURES:Add("Bow", {
  12.     Sequence = "gesture_bow_original",
  13.     Icon = "https://incredible-gmod.ru/gmodstore/gestures/content/bow.png",
  14.     CustomCheck = function(ply)
  15.         return ply:GetJob() ~= "Mayor" and ply:GetJob() ~= "Police"
  16.     end
  17. })
Advertisement
Add Comment
Please, Sign In to add comment