Jump to content

Recommended Posts

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
							

spacer.png

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...