kuwalda Posted November 11, 2014 Share Posted November 11, 2014 I have made barber shop GUI, which is called with triggerClientEvent(thePlayer, "requestBarberShopGUI", thePlayer) but whenever I try to call it, while being inside interior - nothing happens. No errors, nothing. It does work outside interors, but not inside. Like for example: LosSantosBarber = createMarker(2071.603515625, -1793.5634765625, 13.55327796936, "arrow", 1, 150, 255, 50) addEventHandler("onMarkerHit", LosSantosBarber, function (thePlayer, matchingDimension) if matchingDimension == true then triggerClientEvent(thePlayer, "requestBarberShopGUI", thePlayer) end end) This example works smoothly, but this one does not: requestBarberShop = createMarker(411.962890625, -50.1884765625, 1000.5, "cylinder", 1, 150, 255, 50) setElementInterior(requestBarberShop, 12, 411.962890625, -50.1884765625, 1000.5) addEventHandler("onMarkerHit", requestBarberShop, function (thePlayer, matchingDimension) if matchingDimension == true then triggerClientEvent(thePlayer, "requestBarberShopGUI", thePlayer) end end) Why? Where could be the problem? Link to comment
manve1 Posted November 11, 2014 Share Posted November 11, 2014 this: setElementInterior(requestBarberShop, 12, 411.962890625, -50.1884765625, 1000.5) to this: setElementInterior(requestBarberShop, 12) Link to comment
.:HyPeX:. Posted November 11, 2014 Share Posted November 11, 2014 Yeah i had aswell an issue with that, you should then later on set the position with setElementPosition if necessary. 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