server lua addon and participant data.

Discussion in 'Automobilista - Help & Support' started by Tomi Mäkinen, Aug 5, 2020.

Tags:
  1. Tomi Mäkinen

    Tomi Mäkinen New Member AMS2 Club Member

    Joined:
    Feb 29, 2020
    Messages:
    9
    Likes Received:
    1
    I was trying to do a reverse grid command to dedicated server with lua addon.
    I was looking at the examples, but I do not seem to be able to get participant or member data from server.
    I can execute command when it is typed to chat, but cannot move forward from there.

    I can run this code whenever I want, but It does not print anything.

    for RefId, participant in pairs( session.participants ) do
    print(RefId)
    end

    I can look at server html plugin status view and I can see participant there.
     

Share This Page