Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I'm not sure, but maybe you can use the handling functions: setVehicleHandling
  2. Castillo

    A question

    You can export a function to get it.
  3. You don't need to edit anything, you can just use the new color system ( Red, Green, Blue ).
  4. I don't understand your question, you don't need to replace any color, you just use R, G, B.
  5. No se que queres decir con "el name del elemento". function getMyData ( thePlayer, command ) local data = getAllElementData ( thePlayer ) for k, v in pairs ( data ) do outputChatBox ( k .. ": " .. v, thePlayer ) end end addCommandHandler ( "elemdata", getMyData ) Con eso obtenes todo el element data del jugador que uso el comando "/elemdata".
  6. Decis que necesitas los data names que el uso? Podes obtener toda la element data de un elemento con: getAllElementData
  7. La verdad que no entiendo la pregunta.
  8. En el .map solo estan los spawnpoints, luego en el script vas a tener que editar en ves de hacer aleatorio, pones tu propio script para que obtenga el mas cercano. Pero para esto necesitas tener experiencia en programacion Lua.
  9. Serial is not stored in the registry as far as I know.
  10. Por hospitales supongo que decis un script que obtenga el hospital mas cercano, para eso vas a necesitar obtener todas las coordenadas y buscar la mas cercana. Podes usar: getDistanceBetweenPoints2D Para comparar la distancia. Sobre lo de guardar las armas, podes buscar un recurso en la comunidad: community.multitheftauto.com
  11. I think it's to the root element.
  12. In the wiki you see that it recommends not to trigger the event on the root element unless you really need to, because this triggers the event on every element in the element tree, which is potentially very CPU intensive.
  13. https://wiki.multitheftauto.com/wiki/OnPickupUse Did you mean that?
  14. function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end Con esa funcion podes convertir R, G, B a un codigo HEX.
  15. Castillo

    comando warp

    Eso es porque estas usando spawnPlayer y deberias usar setElementPosition. addCommandHandler ( "baseadmin", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Admin" ) ) then setElementPosition ( thePlayer, 726, -2131, 530, true ) end end )
  16. Yes, you need to set the text of every column. Sections are like this: Section name Item name Section name Item name
  17. That function will remove all the rows of the grid list.
  18. dxDrawText ( "Sora:", ( 0.025 * sWidth ), ( 0.279 * sHeight ), ( 0.55 * sWidth ), ( 0.182 * sHeight ), tocolor ( 255, 0, 0, 255 ), 1.0, "default-bold", "left", "top", false, false, false ) dxDrawText ( message, ( 0.08 * sWidth ), ( 0.280 * sHeight ), ( 0.799 * sWidth ), ( 0.224 * sHeight ), tocolor ( 255, 255, 255, 255 ), 1.0, "default-bold", "left", "top", false, false, false ) Seems to be fine on 800x600x32 and 1024x768x32.
  19. In what resolution was it designed?
×
×
  • Create New...