Skip to content

utils.game.isAnimalModel

utils.game.isAnimalModel(nameOrHash)
This function sets if model is a animal.

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 isAnimal = utils.game.isAnimalModel('a_c_fish')

print(isAnimal) -- Returns true

Improve this documentation