nordi Posted August 31, 2015 Share Posted August 31, 2015 hey I'm experiencing a very weird issue: all police cars in the map are stuck: their drivers try to move it, but it's like the handbrake is on, and they can't move. Does anyone know what could be the reason ? This issue only happens once i launch my mod... I can't paste the code as the script is 12 000 lines long. Thanks ! Link to comment Share on other sites More sharing options...
Vdragon Posted August 31, 2015 Share Posted August 31, 2015 (edited) Police cars do the same thing when they spawn while my mod is running (they are not meant to spawn), i believe it have something to do with one of those lines: PED::SET_CREATE_RANDOM_COPS(false);PLAYER::CLEAR_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID());VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(0.0f);PLAYER::SET_POLICE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), true);VEHICLE::REMOVE_VEHICLES_FROM_GENERATORS_IN_AREA(plcoords.x - 500.0f, plcoords.y - 500.0f, plcoords.z - 500.0f, plcoords.x + 500.0f, plcoords.y + 500.0f, plcoords.z + 500.0f); Check if you have one of those or a equivalent. Edited August 31, 2015 by Vdragon Link to comment Share on other sites More sharing options...
InfamousSabre Posted August 31, 2015 Share Posted August 31, 2015 (edited) This may have other causes, but I know if player control is disabled, cops will freeze like this. Just part of their programming. Edited August 31, 2015 by InfamousSabre Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now