Jump to content

joedajoester

Members
  • Posts

    256
  • Joined

  • Last visited

Everything posted by joedajoester

  1. None of these work. I tried all of them, the one scozialz made i get an error.. Bad 'player' pointer at 'bindKey'(1) Please help me the lift doesnt even spawn because of that error *EDIT! I replaced the bindkey part with tapl 's and it didnt work but i got no error so i realized theres no part of the script that created the object so i added that back in and it works, but it does not go back up. So it lowers and does not lift. Were makin progress
  2. I get an error.. = expected near the
  3. Here it is col = createColTube (-1851, -3112.1000976563, 51.700000762939, 10, 3) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () lift = createObject ( 3095, -1851, -3112.1000976563, 51.700000762939, 0, 0, 228.49365234375) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, -1851, -3112.1000976563, 38.900001525879) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (lift, 2500, -1851, -3112.1000976563, 51.700000762939) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. end end end addEventHandler ( "onColShapeLeave", col, Close ) It works but as you know it has the collision zone which needs to be replaced to bind keys when in the collision zone
  4. Okay, give me 15 min and sorry, i didnt really mean that im lazy, its that i dont really know how to script that well, and i never used binding functions or worked with them.
  5. I dont have the gates made yet but i can make it but it needs editing to remove collision zone https://community.multitheftauto.com/index.php?p= ... ls&id=3177 thats mine, i edited it where the rc vehicles are and below that is where the lift is. If i must make it, i will but im busy right now, if i must make the script for just the lift tell me and i will.
  6. Hi, i am editing my admin base, and need that when a player enters a collision zone it binds a key to lower/lift an object. I need the buttons ; and ' to be binded to lower and lift. It starts out lifted.
  7. Still dont work it creates the object and nothing happens i keep shooting it and nothing.
  8. Hi, i used the script like this (below) and nothing happens, the object is created but i shoot at it and nothing happens. object = createObject (2976, 2, 2, 2) function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (hitElement and getElementType(hitElement) == "object") then destroyElement(hitElement) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) Please help with this someone
  9. Hi, i need a script that when a object gets damages it will disappear when it gets damaged like with a gun, how would i make a object dissappear or fall when it gets damage? I attempted using parts of kwksnd 's titan script when you shoot all 3 of the cores. I just need a script that enables objects that are created with scripts and disappear when damaged. this is the part of the script i found on wiki. https://wiki.multitheftauto.com/wiki/SetElementData Thanks
  10. This is the script im using and it only opens to admins because of getACLGroup. I want it to open to staff members such as moderators super moderators and admins. col = createColTube (-1683.0999755859, -2881.1000976563, 51.400001525879, 10, 3) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () cone1 = createObject ( 1237, -1679.099609375, -2884.099609375, 51.099998474121, 0, 0, 311.99523925781) -- enter the ID of the object followed by the coordinates cone2 = createObject ( 1237, -1681.5, -2881.7998046875, 51.099998474121, 0, 0, 311.99523925781) cone3 = createObject ( 1237, -1684.19921875, -2879.3994140625, 51.099998474121, 0, 0, 311.99523925781) cone4 = createObject ( 1237, -1686.7998046875, -2877, 51.099998474121, 0, 0, 311.99523925781) gate1 = createObject ( 980, -1683, -2881.19921875, 54, 0, 0, 317.99926757813) -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. addEvent ( "Open", true ) function Open ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then moveObject (cone1, 300, -1679.0999755859, -2884.1000976563, 50) moveObject (cone2, 300, -1681.5, -2881.8000488281, 50) moveObject (cone3, 300, -1684.1999511719, -2879.3999023438, 50) moveObject (cone4, 300, -1686.8000488281, -2877, 50) moveObject (gate1, 2500, -1674.4000244141, -2888.8999023438, 54) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. else return 0 end end end end addEventHandler ( "onColShapeHit", col, Open) addEventHandler ( "Open", root, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if vehicle or not vehicle then aclGroupListACL ( aclgroup, Admin ) if isObjectInACLGroup ( "user."..getPlayerName(pla), aclGetGroup ( "Admin" ) ) then moveObject (cone1, 300, -1679.099609375, -2884.099609375, 51.099998474121) moveObject (cone2, 300, -1681.5, -2881.7998046875, 51.099998474121) moveObject (cone3, 300, -1684.19921875, -2879.3994140625, 51.099998474121) moveObject (cone4, 300, -1686.7998046875, -2877, 51.099998474121) moveObject (gate1, 2500, -1683, -2881.19921875, 54) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. else return 0 end end end end addEventHandler ( "onColShapeLeave", col, Close ) addEventHandler ( "Close", root, Close) I tried adding ifObjectHasPermissionTo and it didnt work, i got that part from this wiki. https://wiki.multitheftauto.com/wiki/Has ... rmissionTo
  11. It just puts it in one position on the screen. Its not even 3d u can try it and ull see wat i mean. I want if i walk around it or away from it it will simulate like its a game object but pictures. Its kinda like what this does.. https://community.multitheftauto.com/index.php?p= ... ls&id=3090
  12. I mean text that is in the game and keeps its position when you move the camera.
  13. How could i make a script with dx3d text so when i type /cd or /countdown it will show 3 pictures of a countdown in front of the person who typed it. I really need this script when i do races with people lol. Thanks!
  14. joedajoester

    Glitch

    I use createcol script and what happens is the scripts that use that function are reversed, one gate opens halfway and opens. Another gate is open and when you walk up to it, it closes. Is there a glitch with the new update currently released? This is very annoying and the only solution is to restart server. Once, i stopped a script and it fixed it but i tried doing that again and nothing happened.
  15. Thank for your reply, but i tried this script and nothing happens. I get no error but nothing happens with this script. Please help me someone.
  16. I tried making this script for when someone goes up to the admin base gate and it outputs a client side message. g_base_col = createColCuboid ( 3109.0913085938, -842.58416748047, 28.436388015747, 250, 280, 20 ) if isObjectInACLGroup ( "user." .. playername, aclGetGroup ( "Admin" ) ) then function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then localPlayerName = getPlayerName(getLocalPlayer()) outputChatBox ( "Welcome to the admin base,"..localPlayerName ) else setElementData ( pla, "inArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "You must be part of the staff to enter", pla, 255, 0, 0 ) end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then outputChatBox ( "Good Bye!", pla, 0, 250, 0 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayername(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) The error i get is: attempt to concatenate global'playerName' a nil value Thanks for any help
  17. https://wiki.multitheftauto.com/wiki/Usi ... _downloads i got no idea how to set that up. Can someone help me i downloaded the file it says to download and there is no executable or any squid.conf. Please help me my server is very slow and the downloads are slowing it down even more.
  18. Hi, i used your script but everyone on my server could get the gates to open and they forgot the commands so i thought automatic gates would be better, user friendly lol. I edited a script and took parts from the script you made for me and i dont have time now to finish it because i gotta go to bed now im tired but ill try it tomorrow and tell you how it goes
  19. Thank you so much i owe ya and how would i add collision zone and no commands, lol. Everyone on my server couldnt open the gates. If you come close to it it opens and you can edit the size etc.. or copy it from gate maker script. Update i think i got it i got a gate script from mta community and im editing it and making multiple scripts for each gate and putting the names in the meta.xml wish me luck!
  20. joedajoester

    Gate

    Hi, i used this script, its a gate script that opens to commands. function onstartup () gate = createObject( 969, -717.79998779297, 954.20001220703, 11.199999809265, 0, 0, 88) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( gate, 2500, -717.79998779297, 954.20001220703, 11.199999809265) end addCommandHandler("1", move) function move () moveObject ( gate, 2500, -718, 946.90002441406, 11.199999809265) end addCommandHandler("2", move) and have 2 others, when a new resource starts the gates duplicate and only 1 moves and blocks the path. I want to combine the scripts so i can get all 3 working because any other resource started after it glitches it and i cannot start 3 gate scripts at once to stop the glitch. here is the second script function onstartup () gate = createObject ( 3885, -1498.2347412109, 805.29083251953, 5.7079048156738, 0, 0, 74.915008544922) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( gate, 2200, -1497.6064453125, 805.119140625, 50.178058624268) end addCommandHandler("1", move) function move () moveObject ( gate, 2450, -1498.2347412109, 805.29083251953, 5.7079048156738) end addCommandHandler("2", move) Third. function onstartup () gate = createObject ( 2951, 3109.0913085938, -842.58416748047, 28.436388015747, 0, 0, 43.170013427734) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( gate, 2200, 3109.0908203125, -842.63531494141, 24.53639793396) end addCommandHandler("0", move) function move () moveObject ( gate, 2450, 3109.0913085938, -842.58416748047, 28.436388015747) end addCommandHandler("00", move) s2 = createBlip( 2920.76171875, -794.72790527344, 11.571973800659,23) Can someone join all of these script into one workin script or a solution to this glitch. Thanks
  21. Wheres the download for the new one, i cannot find it..
  22. Yes, i have it in the resource folder and a folder in it named "SAM" without parenthesis and i put it named server side and edited the meta and server to server side and same to client side and nothing happened.
  23. I got a sam missile launcher from this viewtopic.php?f=91&t=33125 and got the script that was fixed from another person and copied it and made a lua file and made a meta file and made it client side only, but it says cannot find server.lua or something like that and tried making it server side only and nothing. Can someone help me with this i wanna add heat seeking missiles on the map to dodge for fun and the script does nothing. Thanks in advance!
  24. For some unknown odd reason my gate is not working and i am getting a format error. https://wiki.multitheftauto.com/wiki/MoveObject I got it from this site under example 3! Here is my script, please help me fix it so I dont get any errors! Script is as follows: local START_POS = {969, -717.7900390625, 954.7607421875, 11.264283180237, 0, 0, 87.499725341797} local STOP_POS = {2464.0205078125, -1663.419921875, 12.338788032532, 0, 0, 2651} local MOTION_DURATION = 5000 local WAIT_DURATION = 1000 addCommandHandler("smove", function (player, cmd, strEasingType, period, amplitude, overshoot) local x, y, z = unpack(START_POS) local object = createObject(99, x, y, z) x, y, z = unpack(STOP_POS) period = period or 0.3 amplitude = amplitude or 1.0 overshoot = overshoot or 1.70158 outputChatBox(string.format("Server Easing %s %s %s %s", strEasingType, tostring(period), tostring(amplitude), tostring(overshoot))) moveObject(object, MOTION_DURATION, x, y, z, 0, 0, 360, strEasingType, period, amplitude, overshoot) setTimer(destroyElement, MOTION_DURATION+WAIT_DURATION, 1, object) end) I edited in the object id 969 and the coordinates, and the move coordinated and i got an error back. I used the create object script and it worked but now i want a gate to open to the moderator and up to admin acl groups. Can someone help me with this i want a gate to open to people in acl of admin and super moderator. Im new at scripting and this is my first try. Thanks
  25. Okay so today I got kwksnd he has a police script and when you walk into a marker it creates a team and puts you on it. It has a gate that opens to that team only. So I decided to look in his script and found where the part of the script makes a team and puts you on it and put it into the gate maker script I forget the name of it but my first try was in the wrong lua file and I got it after correcting sone errors I made a team by default and that's it lol. But I feel proud of myself, my first interation with scripting lol. So I was thinking what if I edit or someone else does and makes I open to a certaint acl group. That I'll do everything I needed! But I do not know how to script, maybe I can take parts from other scripts. Can anyone help me learn scripting or give me a website to help and not the wiki page lol.
×
×
  • Create New...