ertlflorian1 Posted January 27, 2013 Share Posted January 27, 2013 Hi when i hit a marker i get this error = and whan a new car was created the rotation woldnt be the same! Race integrity test fail (client): Your vehicle has been destroyed. Please panic. Race integrity test fail: Invalid vehicle for player Ertl Race integrity test fail (client): Your vehicle has been destroyed. Please panic. Race integrity test fail: Invalid vehicle for player Ertl Race script integrity compromised - Restarting vehicleIDS = { [1]=602, [2]=411, [3]=597, [4]=599, [5]=541, [6]=429, [7]=434, [8]=451, [9]=425, [10]=447, [11]=468, [12]=522, [13]=541, [14]=573, [15]=604, [16]=557, [17]=528, [18]=502, [19]=428, [20]=427, [21]=409, [22]=428, [23]=433, [24]=444, [25]=486, [26]=486, [27]=515, [28]=544, [29]=401, [30]=524, [31]=490, [32]=489, [33]=477, [34]=478, [35]=483, [36]=470, [37]=456, } markerr = false marker = createMarker (6473.9, -540, 0.6, "checkpoint", 2.25, 255, 0, 0) function randomveh (thePlayer) if (markerr == true) then local veh = getPedOccupiedVehicle (thePlayer) x, y, z = getElementPosition (veh) rx, ry, rz = getElementPosition (thePlayer) zahl = math.random (1,37) newveh = createVehicle (vehicleIDS[zahl], x, y, z, rx, ry, rx) warpPedIntoVehicle (thePlayer, newveh) destroyElement (veh) markerr = false outputChatBox ("Marker wird geladen!", getRootElement(), 255,0,0) setTimer (aus, 6000, 1) end end addEventHandler ("onMarkerHit", marker, randomveh) function aus () markerr = true outputChatBox ("Marker ist bereit!", getRootElement(), 0,255,0) end function start () outputChatBox (" ", getRootElement()) outputChatBox (" ", getRootElement()) outputChatBox (" ", getRootElement()) outputChatBox ("Map: #0e00ffDamage See #FF0000 !", getRootElement(), 255,255,255, true) outputChatBox ("Map by #00f0ffF4il#FF0000 !", getRootElement(), 255,255,255, true) outputChatBox ("Script by #00ff22Ertl#FF0000 !", getRootElement(), 255,255,255, true) outputChatBox (" ", getRootElement()) outputChatBox ("Marker wird geladen!", getRootElement(), 255,0,0) setTimer (aus,6000, 1) end addEventHandler ("onResourceStart", getRootElement(), start) Link to comment
Castillo Posted January 27, 2013 Share Posted January 27, 2013 Why don't you change the vehicle model instead of create a new one? Link to comment
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