I’m trying to figure out which would be the best way to do this little module. This will fire when a player changes job in darkrp.
What I’m trying to do is if there is already a player with that specific player model then it’ll not let you be that job.
function checkModel( playerModel ) for _, v in pairs( player.GetAll() ) do if v:IsValid() and v.Model() == playerModel then v:ChatPrint("Model is taken, pick another!") return end end end