Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. Make a new font or add it to MTA? Make a new font, IDK, maybe youtube or google. Add it: guiCreateFont, dxCreateFont --example: local font = dxCreateFont ( "font.ttf" , 10 ) addEventHandler( "onClientRender", root, function() dxDrawText( "New Font", 100, 350, 300, 350, tocolor(255,255,0), 1, font) end )
  2. You can't replace a ped model yet.
  3. Nice work, I will try it out when I have time.
  4. JR10

    two questions

    COL: For vehicles, please omit this function by embedding your COL file into your DFF file. This way, you can be sure that the COL file is correctly (and automatically) loaded when calling engineLoadDFF. function ReplaceObject ( ) col = engineLoadCOL( "Model.col" ) txd = engineLoadTXD ( "Model.txd" ) engineImportTXD ( txd, 1337 ) dff = engineLoadDFF( "Model.dff", 0 ) --modelid is everytime 0, when you replace no vehicle engineReplaceCOL( col, 1337 ) engineReplaceModel( dff, 1337 )-- replace the model at least end addEvent ( "replaceObj", true ) addEventHandler ( "replaceObj", getRootElement(), ReplaceObject ) DFF: To successfully load your model with textures, be sure to use engineLoadTXD and engineImportTXD before calling this function.
  5. What do you want, a new model of that object? Use google.
  6. JR10

    Fix me Script

    addEventHandler("onVehicleStartEnter"), root, function(thePlayer, seat, door) if seat == 0 then cancelEvent() outputChatBox("Prees G", thePlayer, 255, 0, 0) end end ) When he starts to enter a car, you want to check if he's already in a car? Never gonna happen. And getLocalPlayer is client side.
  7. kimmis, onClientResourceStart, is triggered when the client finishes downloading. TAPL is right, he doesn't need the second one, and he doesn't need a server side for it.
  8. --server setGameSpeed ( 0.2 ) triggerClientEvent ( getPlayerFromName ( "irinel" ) , "speedGame" , getPlayerFromName ( "irinel" ) ) --client addEvent ( "speedGame",true) addEventHandler("speedGame",root, function() setGameSpeed ( 1 ) end) Just an example, will need edit of course.
  9. JR10

    Memo help?

    You're welcome.
  10. function drawImage() local screenWidth, screenHeight = guiGetScreenSize() image1 = guiCreateStaticImage(screenWidth/2, screenHeight/40,100,100, 'gfx/img/one.png', false) Animation.createAndPlay(image1, Animation.presets.guiFadeIn(800)) Animation.createAndPlay(image1, Animation.presets.guiPulse(1000)) end addEventHandler ( "onClientResourceStart", getRootElement(), drawImage) But you will have to edit it, to suit you.
  11. Check the function arguments. You didn't specify the width or height.
  12. JR10

    Memo help?

    No. "Line1\nLine2" \n not \ Or just use the second method: [[Line1 Line2 Line3]]
  13. function drawImage() local screenWidth, screenHeight = guiGetScreenSize() image1 = guiCreateStaticImage(screenWidth/2, screenHeight/40, 'gfx/img/one.png', false, nil) guiSetAlpha(image1, 1) Animation.createAndPlay(image1, Animation.presets.guiFadeIn(800)) Animation.createAndPlay(image1, Animation.presets.guiPulse(1000)) end addEventHandler ( "onClientResourceStart", getRootElement(), drawImage) EDIT: Yes, 0 alpha is transparent.
  14. Did you really tell him to learn English? -.- So you're 22? Sorry, but the way you act, disagrees. Looks like there is a lot of people you call "the best".
  15. Best scripter, best king of scripter, best assistant, best of assistant. Stop it dude, you are embarrassing your self. You say, "Your English is bad", and when he helps you, "BEST KING OF SCRIPTER". And I tell you to try yourself and give you functions, "WTF YOU WANT TO HELP PEOPLE WITH SCRIPTS", I give you an example code. Grow up dude.
  16. JR10

    Memo help?

    "Line1\nLine2\nLine3" --or [[Line1 Line2 Line3]]
  17. It should be Ninety nine asking. Sudan. What is the largest city in Africa?
×
×
  • Create New...