Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking changes #119

Open
thelindat opened this issue Mar 3, 2024 · 4 comments
Open

Breaking changes #119

thelindat opened this issue Mar 3, 2024 · 4 comments

Comments

@thelindat
Copy link
Member

thelindat commented Mar 3, 2024

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

  • Lua imports path changed to @ox_core.lib.init
  • player.hasGroup filtering moved into player.getGroup
  • adminGrade is no longer used by groups

Server

  • Ox.CreateVehicle is now for creating new vehicles only - use Ox.SpawnVehicle to spawn using a dbId
  • Ox.GetPlayerByFilter renamed to Ox.GetPlayerFromFilter

Client

  • player replaced with Ox.GetPlayer()
  • Ox.GetPlayer() will always return an object - checks for active player can use player.charId
  • indexing player no longer calls player.get and must be explicit - i.e. player.get('gender')
  • player.groups is no longer valid, use player.getGroups() or player.getGroup(name)

SQL

  • character_licenses.issued has been replaced with character_licenses.data (see install.sql)
@CeebDev

This comment was marked as resolved.

@thelindat

This comment was marked as resolved.

@CeebDev

This comment was marked as resolved.

@CeebDev

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants