Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Shagwrath

  • Rank

Recent Profile Visitors

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

  1. Oh man I really hope this gets added, I found these functions on accident on the wiki and I would love them to fix the issue i have modding the dynamic objects.
  2. local allowedWeapons = { [33] = true, [34] = true, }; addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), function() for i,v in ipairs(getElementsByType("vehicle")) do setVehicleFuelTankExplodable(v,false); end end ); addEventHandler("onClientPlayerWeaponFire",getLocalPlayer(), function(weapon,ammo,ammoInClip,hX,hY,hZ,hitElement) if hX and hY and hZ then if hitElement then if getElementType(hitElement) == "vehicle" then if allowedWea
  3. I'd like to make a script which detects if a player has shot a car's gas tank with a sniper rifle, and then blows it up if so. I've been searching for a way to detect if a specific component of the car was shot, but I haven't been able to find anything useful, any thoughts on how to do this? I could finish the script from there, but this part has baffled me for awhile. Thanks, any help will be greatly appreciated
  4. tested and working. thanks guys makes a lot more sense to me now function intHelveteLights() local s = 2 local yP = 2411 m_1 = createMarker(2564.4,yP,23.3, "corona",s,0,0,255,255) m_4 = createMarker(2571.4,yP,23.3, "corona",s,0,0,255,255) m_7 = createMarker(2578.4,yP,23.3, "corona",s,0,0,255,255) m_10 = createMarker(2585,yP,23.3, "corona",s,0,0,255,255) m_13 = createMarker(2592.4,yP,23.3,"corona",s,0,0,255,255) m_16 = createMarker(2599,yP,23.3, "corona",s,0,0,255,255) m_2 = createMarker(2566.4,yP,23.3, "corona",s,255,0,0,255) m_5 =
  5. Ive been trying this and i get an error saying "bad argument #1 to 'ipairs'(table expected, got nil)" for i,v in ipairs(tier1) do setMarkerColor(v,255,0,0,a) end i still don't get what I'm doing wrong
  6. My script seems simple, but i'm under a size restraint so i'm trying to do the code as clean and efficient as possible. Anyways I have 18 markers, split into 3 tables, and im trying to set the color of all the markers in the table with setMarkerColor. Here's my script: server.lua function intHelveteLights() local s = 2 local yP = 2411 m_1 = createMarker(2564.4,yP,23.3, "corona",s,0,0,255,255) m_4 = createMarker(2571.4,yP,23.3, "corona",s,0,0,255,255) m_7 = createMarker(2578.4,yP,23.3, "corona",s,0,0,255,255) m_10 = createMarker(2585,yP,23.3, "corona",s,0,0,25
  7. Ya that totally works. I guess I fired my brain the last few days, cause that was such a simple mistake. Thanks tim.
  8. I made a custom object, textured and exported from 3dsmax with Kam's Gta Scripts, The texture and the mesh both show, however, when I export the collision (.col) and load all 3 onto my server as a resource, no collision can be made with the object. I've used colleditior 2 and Kam's Gta Scripts to try to make the col, and view it, and it appears to exist should work but it does not: here's how I've scripted the resource, and ill also include the .col .txd. and .dff client.lua function resourceStart() txd = engineLoadTXD("materials/island.txd") engineImportTXD (txd,1337)
  9. thanks for your response, my code works already though. What I'm trying asking is how can playerA hit playerB and make a sound that both playerA and playerB can hear
  10. So I have a custom dff and txd I've loaded onto the poolcue weapon, My plan is to trigger a client side sound at the position of the ELEMENT or PLAYER when it is hit, and only when an element or player is hit. to explain it another way, the guitar will have a custom sound play at the coordinates of the hit, and only when it is hitting an element or player I've spent a lot of time looking through the scripting wiki forums and browsing through here, and haven found anything helpful yet, so any pointing in the right direction would be a help, you don't have the write the code for me lol
  11. I've been trying to figure out, is it possible to download resources, specifically meaning clientside files, after a player logs in. My greater goal is to make a 'mod panel' where a player can enable and disable skin/weapon mods etc. after they have spawned and are playing. Thanks for any help in advance
  • Create New...