Jump to content

lcd1232

Members
  • Posts

    96
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

lcd1232's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

0

Reputation

  1. localPlayer не нравится как пишется) А root думал только серверный. А какая собственно разница?
  2. So how we can help u if we don't know how works your exp system?
  3. https://wiki.multitheftauto.com/wiki/Ge ... BoundToKey
  4. lcd1232

    Scoreboard

    https://forum.multitheftauto.com/viewtopic.php?f ... ge#p737319
  5. we can't solve your problem because u gave us code where button isn't created.
  6. if u use resource exp system read this https://wiki.multitheftauto.com/wiki/Re ... Exp_system if not show your code of exp resource
  7. Код покажите. Ранее я делал подобное с setCameraMatrix, но так как с математикой у меня не очень, были мелкие баги. Но как появилась getCamera() на стороне клиента - я быстренько всё это переписал. Собственно тут всё просто, получаете элемент камеры, атачите её к чему нужно и всё. Если нужно реализовать вращение - то есть setElementAttachedOffsets. Сначала попробовал примерно так (код не помню написал по-быстрому, поэтому не тестился) local player = getLocalPlayer() local r_root = getRootElement() local camera addEventHandler( 'onClientVehicleEnter', r_root, function ( thePlayer, theSeat ) if thePlayer == player and theSeat == 0 then if isElement( camera ) then destroyElement( camera ) end local x, y, z = getPedBonePosition( thePlayer, 8 ) camera = createObject( 3803, x, y, z ) setElementAlpha( camera, 0 ) attachElements( thePlayer, camera ) setCameraTarget( camera ) end end) addEventHandler( 'onClientVehicleStartExit', r_root, function ( thePlayer ) if thePlayer == player then if isElement( camera ) then destroyElement( camera ) end setCameraTarget( thePlayer ) end end) И в нем была проблема в том, что attachElements и setCameraTarget возвращали false. Потом попробовал как в ресурсе cockpit, но камера стала показывать внутренности машины (я так и не понял куда направлялась камера). Потом решил через getCamera() local player = getLocalPlayer() local r_root = getRootElement() local camera = getCamera() addEventHandler( 'onClientVehicleEnter', r_root, function ( thePlayer, theSeat ) if thePlayer == player and theSeat == 0 then local x, y, z = getPedBonePosition( thePlayer, 8 ) setCameraTarget( x, y, z ) setCameraClip( true, false ) end end) addEventHandler( 'onClientVehicleStartExit', r_root, function ( thePlayer ) if thePlayer == player then setCameraTarget( thePlayer ) setCameraClip( true, true ) end end) Получилось как-будто я и не писал код вообще. Хотелось все таки как-то покрасивей и попроще, в итоге ничего не получилось.
  8. maybe this script on client-side? Show your meta.xml
  9. Как создать вид от первого лица из машины? ресурс cockpit делает это криво и + нельзя двигать камеру. Пробовал приаттачить камеру к позиции лица, но результат, как будто ничего не произошло.
  10. А кто-то может скинуть название чита в личку? Уж очень интересно.
  11. lcd1232

    bindkey

    Why ","? Maybe this symbol ' ? Or see this https://wiki.multitheftauto.com/wiki/Key_names
  12. setTimer( addTeamBlip, 1000*10, 0 ) -- 1000 msec = 1 sec
×
×
  • Create New...