Jump to content

[MTA]revenngeR

Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

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

[MTA]revenngeR's Achievements

Rat

Rat (9/54)

0

Reputation

  1. When i try to start i get this message: http://i.imgur.com/K9i89.png Multi Theft Auto has not been installed properly, please reinstall. [Registry Key not present]. I've reinstalled mta several times, and i am still getting this. Can anyone help me?
  2. Sorry for the double post. For example, when i click the register button, how can i stop the dxd from further rendering? addEventHandler("onClientRender",root, function() local screenWidth, screenHeight = guiGetScreenSize() local scaleX = screenWidth/1280 local scaleY = screenHeight/1024 dxDrawRectangle(340*scaleX, 255*scaleY, 630*scaleX, 347*scaleY, tocolor(0,0,0,100), false) dxDrawText("Password:", 439*scaleX, 434*scaleY, 626*scaleX, 472*scaleY, tocolor(255,255,255,255), scaleX, "bankgothic") dxDrawText("Username:", 441*scaleX, 363*scaleY, 628*scaleX, 401*scaleY, tocolor(255,255,255,255), scaleX, "bankgothic") dxDrawText("MTA Party Server", 483*scaleX, 282*scaleY, 915*scaleX, 349*scaleY, tocolor(51,204,255,255), 1.7*scaleX, "pricedown") end )
  3. I just created login/register in guieditor. I have an problem 800x600 resolution http://imageshack.us/photo/my-images/33 ... 51955.png/ When it should look like this: 1280x1024 http://imageshack.us/photo/my-images/68 ... 52042.png/ How can i fix it? The gui is in right place, but not the dxdraw dxdraw code: dxDrawRectangle(340.0,255.0,630.0,347.0,tocolor(0,0,0,100),false) dxDrawText("Password:",439.0,434.0,626.0,472.0,tocolor(255,255,255,255),1.0,"bankgothic","left","top",false,false,false) dxDrawText("Username:",441.0,363.0,628.0,401.0,tocolor(255,255,255,255),1.0,"bankgothic","left","top",false,false,false) dxDrawText("MTA Party Server",483.0,282.0,915.0,349.0,tocolor(51,204,255,255),1.7,"pricedown","left","top",false,false,false) I want to make it compatible for all screen resolutions
  4. Thanks for your reply, but i don't want to use optional arguments in this function.
  5. Well, it doesn't work. It spawns the bot, but it doesnt set the weapon
  6. You should learn https://wiki.multitheftauto.com/wiki/Slo ... tBotWeapon bool setBotWeapon( element theBot, float weapon) element theBot
  7. I don't need help finding weapon id, but i need help with that code. And no, the id is 31
  8. Hi this resource is great and i am a newbie in lua. I want to give the bot m4 call (getResourceFromName("Slothbot"), "spawnBot", 2031.7695,1008.1705,10.5474+10, 10) call (getResourceFromName("Slothbot"), "setBotWeapon", [b]WHAT DO I HAVE TO PUT HERE[/b], 31) What do i have to put there?
  9. I have created ammunation shop, driving school + licenses with checkpoints,edited the design so it's easier to understand, and some cop commands.. It took some time to understand how the gamemode works.
  10. Thanks for the answer. I hope that there will be a function like that in future.. Best Regards, ArmyOfTwo
  11. function RecoilFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) local x, y, z = getPedTargetEnd ( source ) setPedAimTarget (source, x+1,y+5,z+5 ) outputChatBox ( "X " .. x .. " Y " .. y .. " Z ".. z .."" ) end addEventHandler("onClientPlayerWeaponFire", root, RecoilFunc) i tried to create weapon recoil with this, but the setPedAimTarget won't work on local players but it only works for remote players, any ideas?
  12. It's just for learning, i learnt pawn editing roleplay gamemodes why not lua? Anyways that's just for learning.. Thanks for the link! P.S: I won't create a server
×
×
  • Create New...