ertlflorian1 Posted April 3, 2013 Share Posted April 3, 2013 When i enter the Marker after onHitMarker14 =? Why when i set then the Dimension and the Interior manual to zero it work? Kein error Debugscript Client: function onHitMarker14 (player, dimension) if(dimension == true) then setElementData (player, "nextmarker", nil) destroyElement (_G[getPlayerName(player).."m14"]) destroyElement (_G[getPlayerName(player).."b14"]) outputChatBox ("Du hast die Fahrprüfung erfolgreich abgeschlossen!", 0,255,0) triggerServerEvent ("removeEventOnVehicleExit", player, player, player) triggerServerEvent ("ClientRemovePedFromVehicle", player, player, player) local x, y, z = getElementPosition (player) local r1, r2, r3 = getElementRotation(player) setElementPosition (player, x, y, z) setElementRotation (player, r1, r2, r3) setElementDimension (player, 0) setElementInterior (player, 0) local makinglic = getElementData (player, "makeingLizense") destroyAllClientObjects (player) if (makinglic == "A") then setElementData (player, "A", 1) elseif (makinglic == "B") then setElementData (player, "B", 1) elseif (makinglic == "C") then setElementData (player, "C", 1) end end end Server Teleporter: function warpinfahrschule (player, matchingDimension) if (getElementType(player)=="player") and (matchingDimension == true) and not (isPedInVehicle (player)) then setElementInterior (player, 3) setElementPosition (player, 384.808624,173.804992,1008.382812) end end addEventHandler ("onMarkerHit", fahrschuleeingang, warpinfahrschule) Link to comment
DNL291 Posted April 3, 2013 Share Posted April 3, 2013 Explain better what your problem. 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