Firespider Posted March 25, 2023 Posted March 25, 2023 Sziasztok! Írnék egy munka kódot de valami baj van és nem értem mi a baj. ---Server side for i, player in ipairs(getElementsByType("player")) do setElementData(player, "Jobveh", false) end local vehpos = { [1] = {2742.76416, -2468.74683, 13.64844}, [2] = {2742.69360, -2460.06079, 13.64844}, }; local Deliverypos = { } local Marker = createMarker(2744.14453, -2453.91431, 13.86226, "cylinder", 3, 255) local VehIDJobs = {609, 499}, addEventHandler("onMarkerHit", resourceRoot, function(hitElement, mDim) if (mDim) then if (source == Marker) then if (getElementType(hitElement) == "player") then if not (getElementType(HitElement, "Jobveh")) then local Veh for i, spot in pairs(vehpos) do createVehicle(609, spot[1], spot[2], spot[3]) setElementData(hitElement, "Jobveh", Jobveh) veh = true break; end end if (veh) then end end end end end end
Firespider Posted March 25, 2023 Author Posted March 25, 2023 Ezt a problémát megoldottam. A másik probléma az lenne hogy akkor is ki írja hogy már van járműved amikor nincs.
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