1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Question API.getPlayerWantedLevel() doesnt work?

Discussion in 'Questions & Suggestions' started by paulyksss, Jul 8, 2017.

  1. paulyksss

    paulyksss New Member

    Messages:
    2
    Likes Received:
    0
    Joined:
    Jul 5, 2017
    Hi.
    I used this function on server-side and doesn't work.
    This script should send me 2 messages, but when API.getPlayerWantedLevel(player) is called, the server send on screen an error.
    What should I do?
    [​IMG]
     
  2. Vance

    Vance Well-Known Member

    Messages:
    244
    Likes Received:
    40
    Joined:
    Aug 31, 2016
    "WARNING: This function is synchronous and could take a long time to return. Do not use this if your resource is not multithreaded." Perhaps this warning? Is your resource setup to be multithreaded?
     
  3. paulyksss

    paulyksss New Member

    Messages:
    2
    Likes Received:
    0
    Joined:
    Jul 5, 2017
    I don't know.
    How can I determinate that?
    I can't acces wanted level even with player.wantedLevel.
     

Share This Page