Jump to content

Enargy,

Members
  • Posts

    1,102
  • Joined

Everything posted by Enargy,

  1. Enargy,

    GUI Help

    make again the gui and make sure you look correctly in the final position.
  2. do you mean vehicle ids? https://wiki.multitheftauto.com/wiki/Vehicle_IDs
  3. This is my third script that I do, I have some time off from studies and I have achieved to write scripts, anyway. this is a simple login dx with which you can create and submit accounts on your server, it is something simple and not done so professionally, it was developed able to work for all resolutions. if the design of the login is a bit bad is because I am not expert in modeling things (I'm a newbie in photoshop ) image: http://imgur.com/IS4pGGG the script is decompiled, you can edit it to your preference, but don't steal it Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11155
  4. https://wiki.multitheftauto.com/wiki/EngineRestoreModel
  5. You are in the wrong section. here viewforum.php?f=177
  6. try this: function fakyu(attacker, weapon, loss, x, y, z, tyre) if (weapon and getElementType(source) == "vehicle") then setElementHealth(source,getElementHealth(source) - 50) cancelEvent() end end addEventHandler("onClientVehicleDamage", root, fakyu)
  7. function fakyu(attacker, weapon, loss, x, y, z, tyre) if (weapon) then cancelEvent() end setElementHealth(source,getElementHealth(source) - 50) end addEventHandler("onClientVehicleDamage", root, fakyu) what do you want achieve with this?
  8. you added the getElementPosition, it is not necessary to use it if you gonna attach the marker to player. putting or not , it work perfectly but defining the position of an element is necessary do; x, y, z = getElementPosition(...) EDIT: you put an 'end' of more.
  9. skinsz = engineLoadTXD("goku.txd") engineImportTXD(skinsz, 189 ) skinsz2 = engineLoadDFF("goku.dff") engineReplaceModel(skinsz2, 189 )
  10. its true. @Tox, use this example as core server local weapon_state = nil function createMaverick(thePlayer, command) local pX,pY,pZ = getElementPosition(thePlayer) local _,_,rot = getElementRotation (thePlayer) local maverick = createVehicle (487, pX,pY,pZ) if (maverick) then warpPedIntoVehicle (thePlayer, maverick) triggerClientEvent(thePlayer, "onCreateM4", getRootElement(),pX,pY,pZ) bindKey(thePlayer, "num_0", "both", fire_m4) end end addCommandHandler ("maverick", createMaverick) function fire_m4(thePlayer, key, keyState) if (keyState == "down") then weapon_state = "firing" triggerClientEvent(thePlayer, "m4_state", getRootElement(),weapon_state) elseif (keyState == "up") then weapon_state = "ready" triggerClientEvent(thePlayer, "m4_state", getRootElement(),weapon_state) end end client addEvent ("onCreateM4",true) function createM4 (px,py,pz) m4 = createWeapon("m4", px,py,pz) setWeaponClipAmmo(m4, 99999) attachElementToElement(m4,getPedOccupiedVehicle(localPlayer), 0, 4, 0, 0, 0, 90) end addEventHandler ("onCreateM4", root, createM4) addEvent ("m4_state",true) function fire_m4 (state) local weapon_state = tostring(state) setWeaponState(m4, weapon_state) end addEventHandler ("m4_state", root, fire_m4)
  11. @Tox, if you wanna attach an M4 to maverick; use createObject/createVehicle/attachElements EDIT: Something else is create a weapon and attach it on the maverick and shoot.
  12. all this is an error lol.
  13. Because they're downloading but your not... ?
  14. I dont think so. there're difference between the two.
  15. I bring something uncommon but very useful when sending messages to the server, for those who are tired of use the chatbox as message receiver. * Features arguments: message - string Message player - player thePlayer red - int colorRed green - int colorGreen blue - int colorBlue ms - int milliseconds Server-side syntax: bool outputMessageBar(message, player, red, green, blue, ms) client-side syntax: bool outputMessageBar(message, red, green, blue, ms) images: EXAMPLE: addEventHandler("onPlayerJoin", getRootElement(), function() exports.bar_messages:outputMessageBar(getPlayerName(source).." has entered.", getRootElement(), 255, 255, 0, 5000) end) * Version 1.0 -- Release of the resource. download: https://community.multitheftauto.com/in ... s&id=11138
  16. Look, the file txd it does is load the texture that was added by the dff file for each texture load properly, you must use the name of the textures that were selected by the same dff file, however that each texture will load properly without any kind of error texture, you'd have to separate each of the parts having your mod (wheels, doors, etc).
  17. just use it getPlayerTeam/getTeamName cancelEvent outputChatBox onVehicleStartEnter -- Event
  18. when you start to download the scripts, mods blahblah automatically be downloaded to your mta folder. e.g: if the download is 100MB and you just downloaded 30MB when you'll reconnecting these 30MB will be loaded.
×
×
  • Create New...