Getting Life Style

There are 2 ways of getting the life style of a player, using export or using the state bag. The export uses default civilian if lifestyle is nil whilst the state bag will return nil if lifestyle is nil.

Server

Player(source).state.lifeStyle

or

exports["ez_lifestyle"]:GetLifeStyle(source)

Client

LocalPlayer.state.lifeStyle

or

exports["ez_lifestyle"]:GetLifeStyle()

Last updated

Was this helpful?