Skip to main content

Datafile::objectValueGetType

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Types:
1 = Boolean
2 = Integer
3 = Float
4 = String
5 = Vector3
6 = Object
7 = Array

Syntax​

mp.game.datafile.objectValueGetType(objectData, key);

Required Arguments​

  • objectData: unknown (to be checked)
  • key: String

Return value​

  • int

Example​

// todo