Closed thelindat closed 2 weeks ago
CreateVehicle now use a array instead of vec3 for coords
CreateVehicle now use a array instead of vec3 for coords
It should accept an array, map, or vector.
It should accept an array, map, or vector.
Then it's a problem, when i log coord it return a buffer and vehicle spawn at 0, 0, 0
This is related : forum.cfx.re/t/lua-vectors-dont-serialize-to-arrays-through-events/4772780/2
Ox.GetPlayerByFilter
is replaced by Ox.GetPlayerFromFilter
Compiled list of known breaking changes. Written with a focus on Lua syntax, but should be mostly consistent across languages.
Breaking changes from v0.19.0
Common
@ox_core.lib.init
player.hasGroup
filtering moved intoplayer.getGroup
adminGrade
is no longer used by groupsServer
Ox.CreateVehicle
is now for creating new vehicles only - useOx.SpawnVehicle
to spawn using a dbIdOx.GetPlayerByFilter
renamed toOx.GetPlayerFromFilter
Client
player
replaced withOx.GetPlayer()
Ox.GetPlayer()
will always return an object - checks for active player can useplayer.charId
player
no longer callsplayer.get
and must be explicit - i.e.player.get('gender')
player.groups
is no longer valid, useplayer.getGroups()
orplayer.getGroup(name)
SQL
character_licenses.issued
has been replaced withcharacter_licenses.data
(see install.sql)