Jump to content

sadasdas

Members
  • Posts

    4
  • Joined

  • Last visited

sadasdas's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Ok so I'm trying to make it so when the user jumps in a car if there is a driver loop through all other seats to see if there is a seat available if it is get in to that seat and not actually jack the car. Heres what I was thinking of doing but I noticed warpplayer is now being made redundant and couldn't find a similar command. Any ideas? Thanks, Carl function enterVehicle ( vehicle, seat, jacked ) --when a player enters a vehicle local occupants = getVehicleOccupants(vehicle) -- Get all vehicle occupants local seats = getVehicleMaxPassengers(vehicle) -- Get the amount of passenger seats for seat = 0, seats do local occupant = occupants[seat] if occupant and getElementType(occupant)=="player" then -- If the seat is occupied by a player... occupant = getPlayerName(occupant) -- ... get his name outputConsole("Seat "..seat..": "..occupant,player) -- Print who's in the seat else warpPlayerIntoVehicle ( source, vehicle, seat) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle )
  2. Ive got it working now? I zipped up my lua and meta files and moved the zip from /mods/deathmatch/resources/Test/Test.zip to /mods/deathmatch/resources/Test.zip stuck in gamemode Test and it seems ok now?
  3. The port is open players can join but not download. Ive not zipped up my files might that be the problem? theyre just loose lua files in folders
  4. Ok so I upload my scripts on to my dedi, start the MTA server and all works fine. As soon as anyone connects itll show the download bar (disconnect to cancel) but it stays at 0kb and never completes. Any ideas as to why this may be happening? Thanks, Carl
×
×
  • Create New...