Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/02/20 in all areas

  1. oh that's a good way, I did something similar but I didn't write it down, I just looked at them haha I managed to approximate gravity quite a bit by changing the fps value with fps = 1000/50 it is not exactly the same but it approximates at least it's a good way to avoid the annoying camera
    1 point
  2. 1 point
  3. https://yadi.sk/d/gh-rS9sHBYDVIQ
    1 point
  4. Note: you can also apply the matrix of the ped to the projectile. It might not have the correct rotation in the beginning, but you can correct that. setElementMatrix
    1 point
  5. Sim. Crie o objeto no lado server.
    1 point
  6. If you have OOP enabled, you can use the matrix forward vector multiplied by a scalar coefficient of the magnitude (i.e. strength of the velocity) local magnitude = 0.5 local rocket = createProjectile(ped, 19, x, y, z, 1.0, nil, 0, 0, 0, ped.matrix.forward * magnitude) Otherwise you can use local m = getElementMatrix(ped) local forward = Vector3(m[2][1], m[2][2], m[2][3]) -- offset from player position to position 1m ahead of them taking into account the rotation local magnitude = 0.5 local rocket = createProjectile(ped, 19, x, y, z, 1.0, nil, 0, 0, 0, forward * magnitude) Or, if you prevent to avoid using Vector3 local m = getElementMatrix(ped) local forwardX, forwardY, forwardZ = m[2][1], m[2][2], m[2][3] -- offset from player position to position 1m ahead of them taking into account the rotation local magnitude = 0.5 local rocket = createProjectile(ped, 19, x, y, z, 1.0, nil, 0, 0, 0, forwardX * magnitude, forwardY * magnitude, forwardZ * magnitude)
    1 point
  7. السلام عليكم , مود جميل .. ومفيد للسيرفرات الحياة الواقعية والسعر كويس مرة
    1 point
  8. Hello and welcome to the forums @brunoxx8! We have a Portuguese language board for those who wish to write messages in said language. This is an otherwise English forum. https://forum.multitheftauto.com/forum/132-offtopic/ Please have a look at the forum rules in case and by all means, ask away if you have any questions. https://forum.multitheftauto.com/topic/12275-forum-rules/ Olá e bem-vindo aos fóruns Brunoxx8! Temos um quadro de idiomas em português para quem deseja escrever mensagens nesse idioma. Este é um fórum em inglês. https://forum.multitheftauto.com/forum/132-offtopic/ Por favor, dê uma olhada nas regras do fórum e, por todos os meios, pergunte se você tem alguma dúvida. https://forum.multitheftauto.com/topic/12275-forum-rules/
    1 point
  9. Hey, i reworked mta community webpage. I apologize in advance for my bad english Russia power!
    1 point
×
×
  • Create New...