Kar Posted April 9, 2019 Posted April 9, 2019 (edited) /* Place in client side scripts */ mp.game.ped.removeScenarioBlockingArea(); mp.game.streaming.setPedPopulationBudget(3); mp.game.ped.setCreateRandomCops(true); mp.game.vehicle.setRandomBoats(true); mp.game.vehicle.setRandomTrains(true); mp.game.vehicle.setGarbageTrucks(true); mp.game.streaming.setVehiclePopulationBudget(3); mp.game.invoke('0x34AD89078831A4BC'); // SET_ALL_VEHICLE_GENERATORS_ACTIVE mp.game.vehicle.setAllLowPriorityVehicleGeneratorsActive(true); mp.game.vehicle.setNumberOfParkedVehicles(-1); mp.game.vehicle.displayDistantVehicles(true); mp.game.graphics.disableVehicleDistantlights(false); IT'S NOT SYNCED Enjoy lmfao, also it's not synced! Edited April 9, 2019 by Kar 2
toruk Posted April 19, 2019 Posted April 19, 2019 How come I can't steal a car? Is there a setting I need to configure to do this?
toruk Posted April 19, 2019 Posted April 19, 2019 (edited) 1 hour ago, toruk said: How come I can't steal a car? Is there a setting I need to configure to do this? Never mind found the solution. Hope this helps if anyone else runs into this issue. mp.events.add('render', () => { const controls = mp.game.controls controls.enableControlAction(0, 23, true) controls.disableControlAction(0, 58, true) if (controls.isDisabledControlJustPressed(0, 58)) { let position = mp.players.local.position let vehHandle = mp.game.vehicle.getClosestVehicle(position.x, position.y, position.z, 5, 0, 70) let vehicle = mp.vehicles.atHandle(vehHandle) if (vehicle && vehicle.isAnySeatEmpty() && vehicle.getSpeed() < 5) { mp.players.local.taskEnterVehicle(vehicle.handle, 5000, 0, 2, 1, 0) } } }) Edited April 19, 2019 by toruk 1
joew Posted April 20, 2019 Posted April 20, 2019 (edited) OMG very nice, thank you!!! But my game is getting random crashs. Any tip what could be, please? ty!! Edited April 20, 2019 by joew
toruk Posted April 20, 2019 Posted April 20, 2019 I was suffering from random crashes. No idea what was causing them.
joew Posted April 20, 2019 Posted April 20, 2019 2 hours ago, toruk said: I was suffering from random crashes. No idea what was causing them. me too =( And did u find any train? I drive all subway and didn't find none =( I really want them spawn too ^^ and IT'S NOT SYNCED so it isn't useful if players don't see the same things =P
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