joao1234 Posted February 12, 2013 Share Posted February 12, 2013 Hey im trying to make a car shop, but i got na error when i enter in that marker i will post the code. Error: bad argument setCameraMatrix, and i think the code is wrong too :CC local entrada = createMarker ( -2407, -597, 132, "cylinder", 1.5, 255, 255, 0, 170 ) function entrarmarker () setCameraMatrix(hitPlayer, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onClientMarkerHit", entrada, entrarmarker) Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 local entrada = createMarker (-2407, -597, 132, "cylinder", 1.5, 255, 255, 0, 170 ) function entrarmarker (hitPlayer) if ( getElementType( hitPlayer ) == "player" ) then setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end addEventHandler("onClientMarkerHit", entrada, entrarmarker) Required Arguments positionX: The x coordinate of the camera's position. positionY: The y coordinate of the camera's position. positionZ: The z coordinate of the camera's position. Link to comment
joao1234 Posted February 12, 2013 Author Share Posted February 12, 2013 Really thanks it works good Link to comment
iPrestege Posted February 12, 2013 Share Posted February 12, 2013 You're Welcome The Argument 1 , it was not needed on the client side . 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