Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 25/10/19 in all areas

  1. It's the angle your gun is tilted upwards in your picture. Like this rx, ry, rz = getElementRotation(gun) rx = math.rad(rx) rz = math.rad(rz) x = x + 0.1 * math.cos(rx) * math.cos(rz) y = y + 0.1 * math.cos(rx) * math.sin(rz) z = z + 0.1 * math.sin(rx) What is your gun, is it an object or a custom weapon? It might be better for you to use a matrix, see the example in getElementMatrix
    1 point
  2. <?php $file_name = "my_script"; // filename without .Lua extension $body = file_get_contents($file_name.".Lua"); // Create a stream $opts = array( 'http'=>array( 'method'=>"POST", 'content' => $body // send the Lua code as body of the request ) ); $context = stream_context_create($opts); $compiled = file_get_contents('https://luac.multitheftauto.com/?compile=1&debug=0&obfuscate=3', false, $context); file_put_contents($file_name.".luac", $compiled); // save to same name but .luac ?>
    1 point
  3. No caso você vai usar os dados do evento "onMarkerHit", já que você interligou esse evento na função entrega1. Sendo assim, a função entrega1 irá receber os parâmetros: hitElement, matchingDimension e a source do evento será o elemento da marker. Ficará assim: function entrega1(hitElement) -- sempre indente o código if getElementType(hitElement) == "player" then -- verifique se quem colidiu foi o jogador destroyElement(source) removeEventHandler("onMarkerHit",source,entrega1) end end
    1 point
×
×
  • Create New...