Advertisement
jackluciano

Untitled

Feb 18th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function PlasticCanToHand(Player, State)
  2. if (not IsPlasticCanInHand(Player) and State) then
  3. PlasticCans[Player] = Object(MODEL_LIST.PlasticCan, 0, 0, -100);
  4.  
  5. exports.pAttach:attach(PlasticCans[Player], Player, "weapon", -0.1, -0.02, 0.6, -100, -5, -100);
  6.  
  7. SetSubscribedData(Player, "char:walkstyle", Player.walkingStyle, false);
  8.  
  9. Player.walkingStyle = 65;
  10.  
  11. Chat:sendLocalMeLowMessage(Player, "elővesz egy műanyag kannát.");
  12.  
  13. SetSubscribedData(Player, "char:plasticCanInHand", true);
  14. else
  15. Player.walkingStyle = Player:getData("char:walkstyle") or 0;
  16. SetSubscribedData(Player, "char:walkstyle", nil, false);
  17.  
  18. DeletePlasticCan(Player);
  19.  
  20. Chat:sendLocalMeLowMessage(Player, "elrakja a műanyag kannát.");
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement