Script Mta



Scripts Tutorials SCRIPTS FOR CLANWAR SERVER. Name: CLANWAR SCRIPT Type: luac About: this is clanwar script for your cw server. Ccw.zip: File Size: 54 kb. Value: the new value of the stat.It must be between 0 and 1000. Returns true if the statistic was changed succesfully. Returns false if an invalid player is specified, if the stat-id/value is out of acceptable range or if the FAT or BODYMUSCLE stats are used on non-CJ players. MTA makes that possible! Online games are all about their community, and Multi Theft Auto has a great community! We've got a great forum where you can get support for any problems you have playing MTA, get help with scripting problems or just hang out and chat. Mtasa, script, server, resources, rpg, freeroam, gta, multi-auto-theft, mod, yama, mp, dm. Contribute a better translation. Accessibility; Text Only; Customer Self Service; FAQs/Contact Us; Home. MTA Home; NYC Subways and Buses; Long Island Rail Road.

Mar 14th, 2018
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. -- ║ » Copyright © 2018-2019 ║
  2. -- ║ » Script Author: Lorenzo & Bernie ║
  3. -- ╚════════════════════════════════════╝
  4. function LakeZ_HUD ()
  5. local hudTable ={'ammo','armour','health','money','weapon','wanted','area_name','vehicle_name','breath','clock'}
  6. setPlayerHudComponentVisible(hudTable[i],false)
  7. local x, y = guiGetScreenSize()
  8. dxDrawRectangle(x-240,20,220,140, tocolor(0,0,0,120),false)--Background
  9. dxDrawRectangle(x-240,174,220,30, tocolor(0,0,0,120),false)--BackgroundLakeZ
  10. dxDrawText('LakeZ - Beta', x-170,180,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  11. local weaponID = getPedWeapon (getLocalPlayer())
  12. local ammo = getPedTotalAmmo (getLocalPlayer())
  13. dxDrawRectangle(x-140,220,120,130, tocolor(0,0,0,120),false)--Background Weapon
  14. --dxDrawImage(x-115, 55, 82, 89,'Images/HUD/'..tostring(weaponID)..'.png',0.0,0.0,0.0,tocolor(255,255,255,255),false)
  15. dxDrawImage(x-120,230,82,89,'Images/HUD/'..tostring(weaponID)..'.png',0.0,0.0,0.0,tocolor(255,255,255,255),false)
  16. dxDrawText('..clip..' | '..ammo..', x-(10+95),324,786,103, tocolor(255,255,225,255),1.30,'default-bold','left','top',false,false,true,false,false)
  17. local health = getElementData(getLocalPlayer(),'blood')
  18. dxDrawText('Blood:', x-234,23,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  19. dxDrawText(math.floor((health))..', x-60,23,120,22, tocolor(255,20,20,255),1,'default-bold','left','top',false,false,true,true,false)
  20. local armor = getElementData(getLocalPlayer(),'food')
  21. dxDrawText('Food:', x-234,39,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  22. dxDrawText(math.floor((armor))..', x-50,39,120,22, tocolor(20,255,20,255),1,'default-bold','left','top',false,false,true,true,false)
  23. local breath = getElementData(getLocalPlayer(),'thirst')
  24. dxDrawText('Thirst:', x-234,55,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  25. dxDrawText(math.floor((breath))..', x-50,55,120,22, tocolor(20,135,255,255),1,'default-bold','left','top',false,false,true,true,false)
  26. --untererteil
  27. local headshots = getElementData(getLocalPlayer(),'headshots')
  28. dxDrawText('Headshots:', x-234,84,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  29. dxDrawText(math.floor((headshots))..', x-50,84,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  30. local murders = getElementData(getLocalPlayer(),'murders')
  31. dxDrawText('Murders:', x-234,100,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  32. dxDrawText(math.floor((murders))..', x-50,100,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  33. local zombieskilled = getElementData(getLocalPlayer(),'zombieskilled')
  34. dxDrawText('Zombieskilled:', x-234,116,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  35. dxDrawText(math.floor((zombieskilled))..', x-50,116,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  36. local temperature = getElementData(getLocalPlayer(),'temperature')
  37. dxDrawText('Temperature:', x-234,132,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  38. dxDrawText(math.floor((temperature))..'°C', x-54,132,120,22, tocolor(255,255,255,255),1,'default-bold','left','top',false,false,true,true,false)
  39. end
  40. addEventHandler('onClientRender', root, LakeZ_HUD)
  41. function getPOS_func ()
  42. local x,y,z = getElementPosition (getLocalPlayer())
  43. outputChatBox('..x..', '..y..', '..z..',255,140,0)
  44. end
RAW Paste Data

Script Metal

This function starts a resource either persistently or as a dependency of the current resource. If you start the resource persistently, the resource will run until stopped either using stopResource or by the server admin. A resource started as a dependency will stop when your resource stops, if no other resources have it as a depdendency. This is the same effect as using an include in your meta.xml file.

The function also allows you to specify a number of boolean options. These allow you to disable the loading of various aspects of the resource. This is generally useful for editors rather than for actual gamemodes. It could also be used as a way to preview a resource before enabling the scripting aspects, though this could produce unreliable results. There is no way for a resource to tell if it is being run with any of these booleans set.

Syntax

OOP SyntaxHelp! I don't understand this!

Method: resource:start(...)

Required Arguments

  • resourceToStart: The resource that should be started.
Mta

Optional Arguments

Script Metal Stamp Set

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • persistent: A boolean specifying if the resource should continue to run even after the current resource has been stopped or not. If this is true then the resource will run until another resource or user terminates it or the server shuts down. If this is false then resourceToStart will stop when thisResource stops.
  • startIncludedResources: A boolean specifying if the resource's included/dependant resources will be started.
  • loadServerConfigs: A boolean specifying if server side config (XML) files should be loaded with the resource.
  • loadMaps: A boolean specifying if any .map files will be started with the resource.
  • loadServerScripts: A boolean specifying if server side script files should be started alongside the resource.
  • loadHTML: A boolean specifying if HTML files should be started alongside the resource.
  • loadClientConfigs: A boolean specifying if client configs should be loaded alongside the resource.
  • loadClientScripts: A boolean specifying if client scripts should be loaded and started alongside the resource.
  • loadFiles: A boolean specifying if client-side files should be loaded alongside the resource.

Returns

Script Mta

Returns true if the resource has been started successfully, false otherwise.

Example

This example starts a specified resource with the command; '/resource-start'.

Script Mta Brasil

See Also

Script
Retrieved from 'https://wiki.multitheftauto.com/index.php?title=StartResource&oldid=64894'