Skip to content

utils.game.isFreemodeModel

utils.game.isFreemodeModel(nameOrHash)
This function sets if model is a freemode.

Arguments

Argument Data Type Optional Default Value Explanation
nameOrHash string/int No - Sets model name or hash

Note

You can see all models here <Link not create yet>.

Dependency

local utils = M("utils")

Example

local isFreemode = utils.game.isFreemodeModel('mp_m_freemode_01')

print(isFreemode) -- Returns true

Improve this documentation