AlleSchwitzenTV Posted July 25, 2021 Share Posted July 25, 2021 Hello everybody, since the new RageMP update (GTA Online: Tuners) i get an Error everytime im near to a vehicle. Ive never had problems with that, it just worked before the update came. Somebody know whats wrong with this? My code: (just ignore engine and silent sync) mp.events.add("entityStreamIn", (entity) => { if (entity.type === "vehicle") { mp.game.streaming.requestCollisionAtCoord(entity.position.x, entity.position.y, entity.position.z); mp.game.streaming.requestAdditionalCollisionAtCoord(entity.position.x, entity.position.y, entity.position.z); entity.setLoadCollisionFlag(true); entity.trackVisibility(); //Pearlescent Tuning if (entity.getVariable("pearlColor")) { entity.setExtraColours(parseInt(entity.getVariable("pearlColor")), parseInt(entity.wheelColor)); } //Sync Silent if (entity.getVariable("isSilent") === true){ entity.setSilent(true); } else { entity.setSilent(false); } //Engine Sync if (entity.getVariable("isEngineRunning") === true){ entity.setEngineOn(true, true, false); } else { entity.setEngineOn(false, true, false); } } }); mp.events.add("updatePearlForVehicle", (vehicle, wheelColor, pearlColor) => { if (vehicle !== undefined){ vehicle.setExtraColours(parseInt(pearlColor), parseInt(wheelColor)); } else { mp.game.graphics.notify("Client hat undifined vehicle"); } }); 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