Jump to content

Basti160301

Members
  • Posts

    9
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Basti160301

  1. Hi, I want to give a Vehicle a Player Based ID Like that this vehicle depends to the player. Like when he type /vehdel just his vehicles got deleted. How does it work? Greets, Basti
  2. Ahh i thank u very much ❤️ i read alot in Google and got it, it works now Greets, Basti The Only Problem was, that is was only Streamed for Player Nearby but i did a Colshape which triggers the "MissionScene" and now it works flawless
  3. The Doors dont Open and the Siren dont work too.. but yeah if its to much work for u i will search help from another
  4. i think we are Getting Closer but there is one point i dont get i tried a few other ways but look at my Code let ped = mp.peds.new( mp.game.joaat('s_m_m_doctor_01'), new mp.Vector3(358.30535888671875, -589.4619750976562, 28.796092987060547), -111.98, mp.players.local.dimension ); var jobBlips = new Array(); var jobMarker = new Array(); var jobVeh = new Array(); const jobVehId = jobVeh.length +1; mp.events.add('createJobBlipRTH', (player, ID, position, name, color, shortRange) => { jobBlips[jobBlips.length + 1] = mp.blips.new(parseInt(ID), position, { name: name, color: parseInt(color), shortRange: (shortRange === 'true'), }); jobMarker[jobMarker.length + 1] = mp.markers.new(34, position, 1, { direction: new mp.Vector3(0, 0, 75), color: [255, 255, 255, 255], visible: true, dimension: 0 }); mp.console.logWarning(`${position}`, true, true); }); mp.events.add('createJobSceneRTH', (player, MissionID) => { if (MissionID == 2) { jobVeh[jobVehId] = mp.vehicles.new(mp.game.joaat("ambulance"), new mp.Vector3(-487.798, -252.667, 35.454)); setTimeout(() => { jobVeh[jobVehId].setDoorOpen(1, true, false); jobVeh[jobVehId].setSiren(true); }, 200); } mp.console.logWarning(`Mission Nummer: ${MissionID}`, true, true); mp.console.logWarning(`jobVehId: ${jobVehId}`, true, true); mp.console.logWarning(`jobVeh Length: ${jobVeh.length}`, true, true); }); mp.events.add('removeJobBlips', (player) => { jobBlips.forEach(function (object, index) { jobBlips[index].destroy(); }); jobMarker.forEach(function (object, index) { jobMarker[index].destroy(); }); jobVeh.forEach(function (object, index) { jobVeh[index].destroy(); }); jobBlips = null; jobBlips = new Array(); jobMarker = null; jobMarker = new Array(); jobVeh = null; jobVeh = new Array(); }); https://prnt.sc/FrKPaR0cr6lF This is the Debug i did idk if i think wrong^^ iam sorry for so much Question i come from SAMP there was PAWN the Language it was way Simpler
  5. Yeah this is how i tried it too.. but look at this https://prnt.sc/m3CQEk26g4ll
  6. I can do it Simple.. i want to create a Rescue Mission for a Rescue Helicopter.. everything is working really good but i wanted to create an Ambulance for better look. it would look way better but idk why i got everything i got everything selfmade with the Wiki but that is a big part i dont get.. i even got my MySQL Working
  7. What does this mean? const spawnVehicle = (player) =>
  8. Okay, that looks complicated as hell is just want that the vehicle spawns with door open and siren on i dont get it
  9. I create my vehicle like this jobVeh[jobVeh.length + 1] = mp.vehicles.new(mp.game.joaat("ambulance"), new mp.Vector3(-487.798, -252.667, 35.454), I want that it spawns with Door Open and Siren(Just Light) on. Greets
×
×
  • Create New...