Jump to content

Can't enter vehicle after i finished drivingtest


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...