Randomnob Posted August 27, 2013 Share Posted August 27, 2013 ineed 2 codes and my map will be finished and posted on the community the first one marker to fix cars but iwant the marker for Group if ( getElementData(player, "Group" ) ~= "Group name" ) then the twice one amarker to change player skin to skin:ID:127 and if any one know acode movegate also for Group dont be shy waiting :DD Link to comment
Baseplate Posted August 27, 2013 Share Posted August 27, 2013 local skinmarker = createMarker(x, y, z, "cylinder", r, g, b) local fixmarker = createMarker(x, y, z, "cylinder", r, g, b) addEventHandler("onMarkerHit", root, function(hitElement, matchingDimension) if (source == skinmarker) then if (getElementType(hitElement) == "player") and (getElementData(player, "Group" ) = "Group name") then setElementModel(hitElement, 127) elseif (source == fixmarker) then if (getElementType(hitElement) == "vehicle") and (getElementData(player, "Group" ) = "Group name") then fixVehicle(hitElement) end end end end ) 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