coding to delete car
-
this is the code im trying to change...i want to change:
VEHICLE.SET_VEHICLE_DOORS_LOCKED(playerVehicle, 2)
to delete the (random) car off the map...im using another mod that creates cars to steal but it doesn't delete them so when i deliver the car and get the cash the car stays parked at the delivery spot, blocking further attempts to deliver more cars.if ( BB < 10 ) then VEHICLE.SET_VEHICLE_UNDRIVEABLE(playerVehicle, true) CAM.DO_SCREEN_FADE_OUT(2500) wait(2500) carsals.createPickup("PICKUP_MONEY_SECURITY_CASE", -71.0, -1827.834, 26.943, finmoney) carsals.createPickup("PICKUP_MONEY_SECURITY_CASE", -350.0, -115.357, 38.6966, finmoney) wait(2500) TIME.ADD_TO_CLOCK_TIME(0, 10, 0) CAM.DO_SCREEN_FADE_IN(2500) AI.TASK_LEAVE_VEHICLE(playerPed, playerVehicle, 0) VEHICLE.SET_VEHICLE_DOORS_LOCKED(playerVehicle, 2) wait(1000) AUDIO.PLAY_MISSION_COMPLETE_AUDIO("MICHAEL_BIG_01") carsals.notify("Thanks for the delivery!") else carsals.notify("Sorry, this car is too wrecked.") AUDIO.PLAY_SOUND_FRONTEND(-1, "ROBBERY_MONEY_TOTAL", "HUD_FRONTEND_CUSTOM_SOUNDSET", false)