Jump to content

overused

Members
  • Posts

    4
  • Joined

  • Last visited

overused's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Yeah, we've done this before. Now with this code: pojazdlockmarker = null function unlock (player, key, state) local pojazd = getPedOccupiedVehicle(player) local islocked = isVehicleLocked(pojazd) local x, y, z = getElementPosition(pojazd) local lx = x+5 if (islocked == true ) then pojazdlockmarker = createMarker(lx, y, z, "cylinder", 1, 255, 0, 0, 0) end end function markerunlock() if getKeyState( "L" ) == true then setVehicleLocked(pojazd, false) outputChatBox ( "Otworzyłeś swój pojazd używając kluczyków!", player, 0, 255, 0 ) else outputChatBox ( "Ten pojazd nie należy do Ciebie!", player, 255, 0, 0 ) end end addEventHandler("onMarkerHit", pojazdlockmarker, markerunlock) addEventHandler("onVehicleStartExit", player, unlock) we have this error: [15:47:30] WARNING: [gamemodes]/[RPG]/pgs_core/kontrolapojazdu.lua:117: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [15:47:30] WARNING: [gamemodes]/[RPG]/pgs_core/kontrolapojazdu.lua:118: Bad ament @ 'addEventHandler' [Expected element at argument 2, got nil] with your code, error is like that: [17:30:53] WARNING: [gamemodes]/[RPG]/pgs_core/kontrolapojazdu.lua:117: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] Argument 'GetRootElement()' don't help.
  2. @dzek(varez) jest problem z tym Vallhalla, po wgraniu na ftp, Serwer nie chce się włączyć.
  3. Tak jak w nazwie tematu, Poszukuje modyfikacji RPG, szukalem juz praktycznie wszedzie i nigdzie nie moge znalezc. Z gory dziekuje za pomoc P.S. Sory za ort. Ale temat pisze z telefonu.
×
×
  • Create New...