TFNRP / seatbelt

Seatbelt script for FiveM, with LEO detection
https://forum.cfx.re/t/4779995
MIT License
10 stars 6 forks source link

For some reason it cannot find the identifier? #11

Closed Legacy-TacticalGamingInteractive closed 1 year ago

Legacy-TacticalGamingInteractive commented 1 year ago

Note I have it set to 2 which is seat position.

Line 162 is local identifier = GetPlayerIdentifier_(serverId, playerPed, vehicle)

    Line  19542: [   6465218] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19543: [   6465218] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19544: [   6465437] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19545: [   6465437] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19580: [   6475156] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19581: [   6475156] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19582: [   6477453] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19583: [   6477453] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19584: [   6478156] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19585: [   6478156] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19586: [   6480437] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19587: [   6480437] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19588: [   6481156] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19589: [   6481156] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19590: [   6483484] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19591: [   6483484] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19592: [   6484203] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19593: [   6484203] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19594: [   6486484] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
    Line  19595: [   6486484] [b2699_GTAProce]             MainThrd/ ^3> handler^7 (^5@seatbelt/client.lua^7:162)
    Line  19596: [   6489515] [b2699_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @seatbelt/client.lua:162: attempt to call a nil value (global 'GetPlayerIdentifier_')^7
MrGriefs commented 1 year ago

You are using a misconfigured config.lua. Config.PlayerIdentifierType must be 1, 2 or 3.