Jump to content

xArgonx

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by xArgonx

  1. i know, i said that i don't know how to do it, that the reason for that line 7 and 8 are not finished, sry i should have explained that before
  2. thank you, i maked a few resource but this error i do not did before now i get a error message because createColCube attempts a nil value...
  3. I want to make a system that player avoid from using every car, the problem is, that i want that this system only works for the door 0 (driver seat) so a player who should not be allowed to enter on the driver's sead atlhought he can enter on the other seats here is the code i tried it out: ambulanceVehicles = { [416]=true } ambulanceSkins = {[274]=true, [276]=true} doors = {[0]=true} function enterAmbulanceVehicle ( player, seat, jacked, door ) if ( ambulanceVehicles[getVehicleID ( source )] ) and ( not ambulanceSkins[getPlayerSkin ( player )] ) and if (doors[ then [color=#BF0000]if door == 0[/color] cancelEvent() outputChatBox ( "Du darfst dieses vehicle nicht benutzen!", player, 255, 255, 255, true) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterAmbulanceVehicle )
  4. Hello, i'm scripting MTA server and try to make the garages open, but every time i get this error: error line 5: '(' expected near local' here is the script code: GARAGE_ID = 12 function start local garageCube = createColCube(1337, 194, 28, 6, 10, 4) addEventHandler("onColShapeHit", garageCube, onGarageCubeHit) addEventHandler("onColShapeLeave", garageCube, onGarageCubeLeave) end function onGarageCubeHit(hitElement, matchingDimension) if (getElementType(hitElement) == "player") then if (not isGarageOpen(GARAGE_ID)) then setGarageOpen(GARAGE_ID, true) end end end i hope someone can help me...
×
×
  • Create New...