Jump to content

Aibo

Retired Staff
  • Posts

    1,105
  • Joined

  • Last visited

Everything posted by Aibo

  1. or better use onVehicleStartEnter
  2. because he is checking table keys, not values.
  3. https://wiki.multitheftauto.com/wiki/Rem ... romVehicle read this for a start. especially red rectangle notice. so you've copied example code from wiki, but why you have 6 functions with the same name? PS: its onPlayerVehicleEnter, not onPlayerEnterVehicle
  4. any messages in server console?
  5. seriously, if you hate it, then do something else with your time, thank you.
  6. this is a photo with edited cover image
  7. well, you still haven't fixed the createBlipAttchedTo.
  8. there is no createBlipAttched function, maybe you want createBlipAttachedTo there is no createMaker function, maybe you want createMarker
  9. well camera should follow local player's dimension. you can try setElementDimension(getLocalPlayer(), dimensionID)
  10. Aibo

    help

    try community: https://community.multitheftauto.com/index.php?p= ... ls&id=1611
  11. if it's a vehicle: if (getElementType(target)=="vehicle") then actualspeed = exports.global:getVehicleVelocity(target) the why are you trying to: function getVehicleVelocity(target) local driver = target if isPedInVehicle(driver) then ?
  12. and still have, like: addEventHandler("tazerFired", getRootElement(), tazerShot, hitX, hitY, hitZ, hitElement) you need only function there, variables will be passed regardless. well, not exactly a bug, but still.
  13. well, still 90's style :3 nice cover for a chinese NES cart:
  14. содержащие что? передай с эвентом их как аргументы
  15. source это локальная переменная, которая передается функции-обработчику события и содержит элемент-источник события. что значит нужны другие? другие кто?
  16. чего чего? это не значения, это переменные. и что общего имеет source и, допустим, thePlayer, я не понимаю.
  17. fix composition, tone down crappy layer effects, and put some sense in it maybe
  18. нет почему SANL:RPG он сейчас есть и народу там много играет а так да. и ещё один вопрос возник какие в мта существуют nil"овые значения кроме этих: source ,thePlayer,player. просто иногда в свой гм надо много таких nil"ов , просто у меня есть функция каторая повторяется больше 3 раз . что ты имеешь ввиду под nil'овые?
  19. а в чем тут разница между client и source? :3
  20. as i recall only way to count is to iterate through it with pairs().
  21. как-то так тогда: function reglog(thePlayer) local theAccount = getAccount(thePlayer) if (theAccount) then if isGuestAccount(getPlayerAccount(source)) then triggerClientEvent(source, "show_gui", getRootElement(), "login") end else triggerClientEvent(source, "show_gui", getRootElement(), "register") end end
  22. #table works only for indexed tables, not dictionary-type tables.
  23. getAccount() достает аккаунт по его имени, и isGuestAccount() надо натравливать не на него, а на текущий аккаунт игрока, полученный с помощью getPlayerAccount()
×
×
  • Create New...