Jump to content

HELP| accountData problem


Recommended Posts

server side:


function onPlayerLogin(_,acc)

    if getPlayerAccount(acc) then

        for i = 1, #coords do

            for j = 1, 3 do

                if getAccountData(source, "timeTrial"..i.."-"..j) ~= nil then

                    triggerClientEvent(source, "accountDatasFromServer", source, getAccountData(source, "timeTrial"..i.."-"..j), i)


                    triggerClientEvent(source, "accountDatasFromServer", source, "-", i)






addEventHandler("onPlayerLogin", root, onPlayerLogin)

Client side:


function accountDatasFrom(data, i)

    accountDatas[i] = {data1, data2, data3}

addEvent("accountDatasFromServer", true)
addEventHandler("accountDatasFromServer", root, accountDatasFrom)

dxDrawText(accountDatas[id][1], sx/2 - 120, sy/2 - 126, _, _, tocolor(255,255,255,255), 0.65, font, "center", _, false, false, false, true)


My problem: I would like to be able to use the matrix sent from the server side on the client side.

I am currently still learning this feature, that's why I contacted you.

Edited by Vinyard
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...