Jump to content

Xabache

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by Xabache

  1. Thank you Tomas and Anubhav, but neither suggestion functions. Anubhav's still cancels the event without killing the killer. and Tomas' the victim dies in the event without it being canceled and the killer is not harmed. I want the killer to be struck down as a result of their attempted Stealth Kill.
  2. Client: addEventHandler ( "onClientPlayerStealthKill", root, function ( target ) triggerServerEvent("KillAttacker",source) cancelEvent() end ) Server: addEvent("KillAttacker",true) function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer .. " is dead",source,0,233,0,true) end addEventHandler("KillAttacker",resourceRoot,killAttacker) No error message. But only canceling the event. The killer is not killed. The KARMA message is not displayed. What's wrong?
  3. Okay that works to send the server a KillAttacker event not added serverside... function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer ... " is dead",source,0,233,0,true) end Yup no idea what I'm doing...
  4. I can get either or here but not both? This can cancel the event, or it can kill the killer, depending on the order of killPed and cancelEvent. But I cant get it to both cancel the death of the Ped and kill the killer. Can I? addEventHandler ( "onClientPlayerStealthKill", root, function ( target ) killPed ( sourcePlayer, sourcePlayer ) cancelEvent ( ) end )
  5. Can't find the event for 'on vehicle carjacked'... is this a thing? what's a bit of script look like that detects this?
  6. I was unable to make the following work. Script loads and functions fine. Messages "All vehicles doors is not damageable" but a few chainsaw wacks later and the door is on the ground. Is this mta wiki script broken or am i missing something? [url=https://wiki.multitheftauto.com/wiki/SetVehicleDoorsUndamageable]https://wiki.multitheftauto.com/wiki/Se ... damageable[/url] function doorsLikeGod() for i, car in ipairs( getElementsByType ("vehicle") ) do setVehicleDoorsUndamageable ( car, true ) end outputChatBox("All vehicles doors is not damageable") end addCommandHandler("nodamage", doorsLikeGod) function doorsNotLikeGod() for i, car in ipairs( getElementsByType ("vehicle") ) do setVehicleDoorsUndamageable ( car, false ) end outputChatBox("Now everyone can kick vehicles doors and throw them away.") end addCommandHandler("adddamage", doorsNotLikeGod)
  7. Xabache

    Scale > 1

    When I scale an object it can often loose its collision capacity and becomes walk through. What has happened? Can I make something larger and keep its normal collisions?
  8. This shader draws lines behind your own tires a 1000 units behind you. But presents two problems when drawing the lines of other vehicles for you. 1) It only draws of others what you saw happening, and nothing that was off screen 2) It only draws of others if you are within 50 units of them at the time. I would like it to draw for anyone around me the full length and not what I saw happening too. Ideas?
  9. I reinstalled all resources on a clean install of MTA 7055 and the error just disappeared.
  10. This ^^ is on server start. It loads play, which includes freeroamx, which loads fine, all my freeroam mods work perfectly. On refresh it repeats the error message. Maybe it is just an insignificant error message signaling nothing at all or maybe I have yet to realize its specifics and their implications "Failed to link to freeroam" A greater understanding is certainly welcome as it is an error none-the-less.
  11. ERROR: Problem with resource: play; Failed to link to freeroam Everything appears to be working fine, except this error^^^ What did i miss? <meta><info type="gamemode" /><include resource="freeroamx" /><include resource="spawnmanager" /><settings><setting name="*spawnreset" value="onSpawn" friendlyname="Spawn Reset" accept="onSpawn,onServerEmpty,onServerStart" desc="When should a new spawnpoint be chosen?" /></settings><map src="broph.map" /><script src="broph.luac" /><min_mta_version client="1.3.4-0.00000" server="1.3.4-0.00000" /></meta>
  12. I frequent two very similar servers on MTA, and have found that despite no changes their is a constant small download each time i switch between servers. Fortunately one of these servers is mine and I suspect that download is my modified freeroam and hedit resources being updated to theirs or to mine. Is this likely? And if so, how can i make it so my freeroam is not overwritten by the other server every time I visit?
  13. "Mr. Watson, are you there?" Yes. Stop asking! Pardon my newbie awareness, but it strikes me that the MTA client is woefully inefficient with regards to bandwidth usage and resultant scope of game play. Not all game types Require atomic accurateness between all particles at all times to be played accurately as many would prefer vast numbers of players to simply be on the map with the least amount of resources used. Before we go further, an earnest question. What the hell is the MTA client talking about so incessantly? I am set at minimum usage 1500ms update, I have three clients operating, each one parked at the center of a different one of the three big cities on a server i run. Not one of them has moved in 24 hours. Not one of them has spoken or changed anything. They are afk and no one else is on the server. Why the chatter? Why does my router look like it is going full speed on CIT server at rush hour. What information does MTA client communicate? Why does it not stop talking when there is nothing new to say?
  14. Every minute an hour ticks by in GTASA. I want to read that time and set events to it. like each hour add 1 health. Where in MTA would be best for this feature to latch on to?
  15. Works perfect. Nice .gif^... and a Lua tag which i will pls use, means...?
  16. The values account, car and vehicle function in earlier calls and are presumed to do so in the following code which receives only "bad argument #1 to 'ipairs' (table expected got string)" From: function carSpawn () local upgrade = getAccountData (account, "funmodev2-carupg") if (upgrade) then local upgrades = nil local upgrades = {} local upgrades = upgrade for i,v in ipairs (upgrades) do addVehicleUpgrade (vehicle, v) end end From: function carDestroy () setAccountData (account, "funmodev2-carupg", getVehicleUpgrades(car)) But no upgrades result on car spawn. ideas?
  17. Yes! This is what I could not find, and I must say i was looking right at it. So this spawns skins 1-312 "randomly". What I would like to do then is use this random number after it passes through a while loop checking it for its own limitations If I could write this in mIRC with a little obvious lua snuck in I would say while (!%rand) { var %try = math.random(312) if (!$istok(242 311 45 142,%try,32)) { var %rand = %try } } where it would check its random number is not the skin numbers i wish to exempt from random spawn: 242 311 45 142, but as soon as it is say 56 or 63 it would let it pass. So what might i need to know to do this here... function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end
  18. So server side scripts, run from a computer only I have physical and virtual access to is as "secure" as anything else on my hard drive? And as to priority I mean some things can go either place. I presume client side would reduce bandwidth and server load while supplying the content without any lag?
  19. I have the car ID local carID = getAccountData (getPlayerAccount (source), "funmodev2-car") I have a list of available cars and prices... local cars = {{579,60000},{400,60000},{404,28000},{489,65000},{505,65000},{479,45000},{442,45000},{458,45000},{602,50000},{496,42500},{401,41000},{518,60000},{527,75000},{589,75000},{419,45000},{533,75000},{526,50000},{474,55000},{545,50000},{517,45000},{410,41000},{600,50000},{436,41000},{580,50000},{439,75000},{549,75000},{491,45000},{445,45000},{507,45000},{585,45000},{587,75000},{466,55000},{492,50000},{546,45000},{551,45000},{516,45000},{467,45000},{426,47500},{547,45000},{405,55000},{409,75000},{550,45000},{566,45000},{540,45000},{421,50000},{529,45000},{402,120000},{542,65000},{603,120000},{475,75000},{562,120000},{565,95000},{559,120000},{561,50000},{560,120000},{558,100000},{429,120000},{541,120000},{415,120000},{480,95000},{434,100000},{494,120000},{502,120000},{503,120000},{411,120000},{506,120000},{451,120000},{555,95000},{477,95000},{499,25000},{498,25000},{578,50000},{486,70000},{455,75000},{588,50000},{403,75000},{414,50000},{443,75000},{515,75000},{514,75000},{531,12000},{456,45000},{422,45000},{482,95000},{530,12000},{418,45000},{572,12000},{582,50000},{413,50000},{440,50000},{543,65000},{583,12000},{478,35000},{554,50000},{536,75000},{575,75000},{534,75000},{567,75000},{535,75000},{576,75000},{412,75000},{568,75000},{457,12000},{483,45000},{508,40000},{571,10000},{500,55000},{444,120000},{556,120000},{557,120000},{471,20000},{495,100000},{539,75000},{581,45000},{462,12000},{521,60000},{463,50000},{522,75000},{448,12000},{468,45000},{586,45000},{485,12000},{431,60000},{438,45000},{437,60000},{574,12000},{420,45000},{525,75000},{408,50000},{428,65000}} I want to turn CarID, say 568 into its listed price of 75000 but do not know how to match or find isin within this string using lua. ideas?
  20. There is no resource to say, i am dealing with totally stock MTA. First join, no changes to anything, you spawn as a random person, from what list within stock MTA does this skin choice come from?
  21. After creating my first house in MTA 1.4 6999 it did not show the blue circle in the interior. I had to exit the interior with the F1 Gui interiors feature, the restart the resource to show the outside blue circle to enter the house, then once inside still no blue circle to exit from... It says new house created successfully Standing over the spot where the exit house circle should be located offers no solution How do i make the blue circle show up?
  22. am I correct in assuming that under normal operations Server side scripting is not accessible to the player in original format. Making it more secure, and making .luac of server side scripts all but totally unnecessary? And is there a tutorial for server/client side-priority, what typically goes where?
  23. Pardon my lack of specifics, i do speak of stock MTA 1.4 with GTA 1.0. I have modified skins.xml in freeroam to not allow various skins to be chosen through the F1 GUI, but on spawn, when they first join the room or after death my list is not referenced and all skins show up. I want to use my short list as the on spawn list to limit some of these skins. I do not know where this on spawn list is kept in MTA or referenced from GTA but replaceable by MTA?
  24. I found and modified the Skin chooser in the GUI but was disappointed to see that on spawn the skins i had ejected were still coming up. How to harmonize the two? where is the on spawn skin file located?
  25. Why onResourceStart? I implemented removeWorldModel "This example will removes buildings on BigEar" without any OnResourceStart, and it worked fine. And am I correct in assuming that under normal operations Server side scripting is not accessible to the player in original format. Making it more secure, and making .luac of server side scripts all but totally unnecessary? Is there a tutorial for server/client side-priority, what typically goes where?
×
×
  • Create New...