Jump to content

miguel360

Members
  • Posts

    11
  • Joined

  • Last visited

miguel360's Achievements

Square

Square (6/54)

0

Reputation

  1. miguel360

    TABLE?

    cars[1][1] = 579 cars[2][1] = 400 http://lua-users.org/wiki/TablesTutorial http://www.lua.org/pil/11.2.html thanks man!
  2. miguel360

    TABLE?

    For example i have this code local cars = {{579,60000},{400,60000},{404,28000},{489,65000}} then is it possible to get the first number from the first pair and if I press a button or something it gets the first number from the second pair and so on?
  3. Is it possible to drawText into GTA world with dxDrawText and dxDrawMaterialLine3D or any other way?
  4. If i'm making a race gamemode then I want the player to finish when his car's front bumper hits the collisionCuboid. So is this even possible?
  5. I want to get vehicles colShape and if the vehicles colshape hits the cuboid it should display "hit"! cuboid = createColCuboid ( 2043.2, -2608, 12.6, 0.4, 13.5, 1 ) function test() veh = getPedOccupiedVehicle( source ) setElementCollisionsEnabled ( veh, true ) col1 = getElementColShape( veh ) end addEventHandler("onPlayerVehicleEnter", getRootElement(), test) function hit1( box ) if (box == cuboid) then if (isElementWithinColShape (col1 , cuboid) == true) then outputChatBox("hit", root) end end end addEventHandler ("onElementColShapeHit", getRootElement(), hit1)
  6. I am not really good at math, but i'll try
  7. Does anyone know how to make a 3D circle with dxDrawLine3D???
  8. the script is client side and you cant warp the player into vehicle that is created client side
  9. local vehicleID = getVehicleModelFromName (vehicleName) vehicle1 = callServerFunction("createVehicle", vehicleID, 2045, -2348, 13.8, 0, 0, 90 ) callServerFunction("warpPedIntoVehicle", localPlayer, vehicle1 ) setCameraTarget( localPlayer ) it creates the vehicle but it doesn't warp the player into it.
×
×
  • Create New...