1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Latest News: RAGE Multiplayer 0.3.2 Announcement - November 29th, 2017

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 Staff Member Global Moderator Support Management Wiki Moderator Support Tester

    Messages:
    245
    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