function getIncarPacketData()
local vehptr = allocateMemory(63)
local _, pid = sampGetPlayerIdByCharHandle(PLAYER_PED)
sampStorePlayerIncarData(pid, vehptr)
pdata[counter] = {}
pdata[counter].packetId = 200
pdata[counter].lr = memory.getuint16(vehptr + 2)
pdata[counter].ud = memory.getuint16(vehptr + 4)
pdata[counter].keys = memory.getuint16(vehptr + 6)
pdata[counter].qw = memory.getfloat(vehptr + 8)
pdata[counter].qx = memory.getfloat(vehptr + 12)
pdata[counter].qy = memory.getfloat(vehptr + 16)
pdata[counter].qz = memory.getfloat(vehptr + 20)
pdata[counter].x = memory.getfloat(vehptr + 24)
pdata[counter].y = memory.getfloat(vehptr + 28)
pdata[counter].z = memory.getfloat(vehptr + 32)
pdata[counter].sx = memory.getfloat(vehptr + 36)
pdata[counter].sy = memory.getfloat(vehptr + 40)
pdata[counter].sz = memory.getfloat(vehptr + 44)
pdata[counter].gear = memory.getuint8(vehptr + 56)
pdata[counter].st = memory.getfloat(vehptr + 59)
printStringNow(counter, 100)
freeMemory(vehptr)
counter = counter + 1
end