Jump to content

I don't know how to put dimension inside the marker or interior, any help pls


Neffax

Recommended Posts

  local mark = createMarker (-2409.56738, -598.22534, 130.64844, "cylinder", 3,  0, 255, 0, 155)
 
function enter (hitElement, matchingDimension)
 
    if  (getElementType (hitElement)) == "player" then
            outputChatBox("you are in the Marker")
    end


 
        if (matchingDimension) then
              outputChatBox ("please enter the marker", 255, 255, 0)
                setElementDimension (mark, 44)
        end
 local interio = setElementInterior (hitElement, 3, -2027.9200, -105.1830, 1035.1720)
outputChatBox ("you're dimension is "..getElementDimension (hitElement))
 
end
addEventHandler ("onMarkerHit", mark, enter)
Link to comment

no, iwant change interior dimension from 0 to 44 like this 
 

 if (matchingDimension) then
              outputChatBox ("please enter the marker", 255, 255, 0)
                setElementDimension (mark, 44)
        end
 local interio = setElementInterior (hitElement, 3, -2027.9200, -105.1830, 1035.1720)
outputChatBox ("you're dimension is "..getElementDimension (hitElement))

 

Link to comment
local mark = createMarker(-2409.56738, -598.22534, 130.64844, "cylinder", 3,  0, 255, 0, 155)

function enter(hitElement, matchingDimension)
   if(getElementType(hitElement) == "player") then
      setElementDimension(hitElement, 44)
      setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720)
   end
end
addEventHandler ("onMarkerHit", mark, enter)

 

You will be teleported as interior id 3, as I know it should be 10 in normal gta
setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720)

 

if it doesn't work change it to id 10

Link to comment

that's the full code, I just started but when I faced dimension problem I couldn't finish it.

 

  local mark = createMarker (-2409.56738, -598.22534, 130.64844, "cylinder", 3,  0, 255, 0, 155)
 
function enter (hitElement, matchingDimension)
 
    if  (getElementType (hitElement)) == "player" then
            outputChatBox("you are in the Marker")
    end


 
        if (matchingDimension) then
              outputChatBox ("please enter the marker", 255, 255, 0)
                setElementDimension (mark, 44)
        end
 local interio = setElementInterior (hitElement, 3, -2027.9200, -105.1830, 1035.1720)
outputChatBox ("you're dimension is "..getElementDimension (hitElement))
setElementDimension (interio, 44)
end
addEventHandler ("onMarkerHit", mark, enter)

 

Link to comment

use createPed to create pad use

setElementInterior and setElementDimension 

to set pad interior and dimension

local thePed = createPed(0, 0, 0, 0)
setElementInterior(thePed, 3)
setElementDimension(thePed, 44)



this code creates a pad with coordinates 0, 0, 0 and makes interior 3 and dimension 44

If you did this from the map editor, make sure the pad's interior is 3 and its dimension is 44

now that's all i can help you, you can do the rest.

  • Like 1
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...