Neffax Posted January 10, 2022 Share Posted January 10, 2022 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
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 if you tell me exactly what you want i can help, explain it nicely. 1 Link to comment
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 I don't know how to put dimension value for interior Link to comment
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 Do you want to change the interior of the player? because dimension and interior are different things Link to comment
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 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
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 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
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 doesn't work cuz i need dimension only inside the interior (srry for my english ) Link to comment
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 look, elements have dimensions,your way of thinking is wrong,Do you want the object to appear? Link to comment
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 yes, i created ped befor but he dosnt visible to me so tha't let me thinking to make the interior dimension to see the ped... Link to comment
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 then you should make interior and dimension the same,I can help better if you post the full code here,do as i say first, if still problem, send whole code setElementInterior and setElementDimension Link to comment
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 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
Shady1 Posted January 10, 2022 Share Posted January 10, 2022 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. 1 Link to comment
Neffax Posted January 10, 2022 Author Share Posted January 10, 2022 thank you @eoL|Shady 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