Jump to content

Need Help!


joao1234

Recommended Posts

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

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

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...