BananasTheKing

clockwork new faction (untested???)

Aug 27th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function ITEM:OnUse(player, itemEntity)
  2. local newFaction = FACTION_*****
  3. if (player:GetFaction() != newFaction) then
  4. player:SetCharacterData("Faction", newFaction, true);
  5. Clockwork.player:LoadCharacter(player, Clockwork.player:GetCharacterID(player));
  6. else
  7. Clockwork.player:Notify(player, "You are already the given faction!")
  8. end
  9. end;
Advertisement
Add Comment
Please, Sign In to add comment