xXMADEXx Posted March 10, 2013 Posted March 10, 2013 (edited) Lets just say, in this interior (int 5) the camra looks like that, i have no idea wtf is wrong with it either... code: local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) setElementInterior(outMarker,5) function teleport(player) if ( source == intoMarker and getElementType(player) == "player") then setElementPosition(player,375.7626953125, -131.25, 1002) setElementInterior(player,5) elseif ( source == outMarker and getElementType(player) == "player") then setElementPosition(player,2099.5078125, -1806.6220703125, 14) setElementInterior(player,0) end end addEventHandler("onMarkerHit", root, teleport) Edited March 10, 2013 by Guest The Ultimate Lua Tutorial! | MTA PHP SDK
PaiN^ Posted March 10, 2013 Posted March 10, 2013 local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) setElementInterior(outMarker,5) function teleport( hitElement ) if getElementType( hitElement ) == "player" then if ( source == intoMarker ) then setElementPosition(hitElement,375.7626953125, -131.25, 1002) setElementInterior(hitElement,5) elseif ( source == outMarker ) then setElementPosition(hitElement,2099.5078125, -1806.6220703125, 14) setElementInterior(hitElement,0) end end end addEventHandler("onMarkerHit", root, teleport) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
Baseplate Posted March 10, 2013 Posted March 10, 2013 Try to lower the setElementPosition of intoMarker's z pos by 1. like use 1001 instead of 1002 local intoMarker = createMarker(2105.0068359375, -1806.521484375, 14.5546875, 'arrow', 2, 255, 255, 0, 100) local outMarker = createMarker(372.0361328125, -133.5166015625, 1002.4921875, 'arrow', 2, 255, 255, 0, 100) setElementInterior(outMarker,5) function teleport( hitElement ) if ( source == intoMarker ) and (getElementType( hitElement ) == "player") then setElementPosition(hitElement,375.7626953125, -131.25, 1001) -- this one, changed the z pos to 1001 setElementInterior(hitElement,5) elseif ( source == outMarker ) and (getElementType( hitElement ) == "player") then setElementPosition(hitElement,2099.5078125, -1806.6220703125, 14) setElementInterior(hitElement,0) end end end addEventHandler("onMarkerHit", root, teleport)
xXMADEXx Posted March 10, 2013 Author Posted March 10, 2013 I tried both of those, but they don't work The Ultimate Lua Tutorial! | MTA PHP SDK
PaiN^ Posted March 10, 2013 Posted March 10, 2013 Maybe it's from the coordinates, Recheck theme .. " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
Castillo Posted March 10, 2013 Posted March 10, 2013 The script works fine, the problem is on your side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted March 10, 2013 Author Posted March 10, 2013 Problem solved, it was a shader panel that i had downloaded... So, if you have a shader panel and your getting this prob, just delete he shader resource (the community one: https://community.multitheftauto.com/index.php?p= ... ls&id=6184 ) The Ultimate Lua Tutorial! | MTA PHP SDK
Ren_712 Posted March 11, 2013 Posted March 11, 2013 Try turning on antialiasing. The problem occurs with every shader effect that uses depth buffer access (mainly depth of field and water ref in the shader panel). I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
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