Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ITEM:OnUse(player, itemEntity)
- local newFaction = FACTION_*****
- if (player:GetFaction() != newFaction) then
- player:SetCharacterData("Faction", newFaction, true);
- Clockwork.player:LoadCharacter(player, Clockwork.player:GetCharacterID(player));
- else
- Clockwork.player:Notify(player, "You are already the given faction!")
- end
- end;
Advertisement
Add Comment
Please, Sign In to add comment