Qbox-project / qbx_core

http://qbox-project.github.io
Other
45 stars 109 forks source link

Bridge doesn't work for QBCore.Player.CreateCitizenId() #465

Closed JHansen2000 closed 1 month ago

JHansen2000 commented 1 month ago

Summary

QBCore character creation scripts often call QBCore.Player.CreateCitizenId() to generate a unique ID for a new ped. QBox currently does not bridge this, requiring users to instead switch to QBCore.Player.GenerateUniqueIdentifier('citizenid')

Reproduction

  1. Using Qbox
  2. Call QBCore.Player.CreateCitizenId()
  3. Call returns nil
  4. Switch to QBCore.Player.GenerateUniqueIdentifier('citizenid')
  5. Profit

Expected behavior

Should generate a unique citizenid.

Actual behavior

Returns nil

Additional context

No response

Current Version

v1.11.1

Custom Resources

forge-multicharacter, forge-charcreator