Jump to content

joedajoester

Members
  • Posts

    256
  • Joined

  • Last visited

Everything posted by joedajoester

  1. This doesnt spawn the cars with it, one car has one gate and the other has none.
  2. joedajoester

    help

    I have this script, im trying to make the cars spawn with 2 objects attached to them but the 2 objects i need to be recreated at resource start so i dont have to make each car their own objects, and when I type /spatula. Please help i gave this my best shot. addEventHandler ( "onResourceStart", getRootElement(), attach) function attach(thePlayer) gate1 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, -1736, -2895, 55, 0, 0, 236 ) Car2 = createVehicle ( 567, -1744, -2913.3000488281, 55, 0, 354.488, 220 ) attachElements( gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( Car1, 1087 ) addVehicleUpgrade ( Car2, 1087 ) function attach(thePlayer) if not isPedInVehicle(thePlayer) then return end local vehicle = getPedOccupiedVehicle(thePlayer) local car1gate1 = createObject(971, 0, 0, 5) local car1gate2 = createObject(971, 0, 0, 5) attachElements( car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) end addCommandHandler ( "spatula", attach) end
  3. I combined it with my script and it does exactly wat i wat One more thing, for the cars that spawn with it, why do they have to have their own gates and with the command they dont?
  4. I need it to attach it to any car when you type /spatula and also the cars that spawn with it.
  5. Nothing happens, i get no error in console.
  6. Hi all, i am using this script, and need to add a commandhandler and there is no function so i do not know how to add one car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, -1736, -2895, 55, 0, 0, 236 ) Car2 = createVehicle ( 567, -1744, -2913.3000488281, 55, 0, 354.488, 220 ) attachElements( car1gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) attachElements( car2gate1, Car2, 0.05, 6.2, -0.6, 90, 90, 90 ) attachElements( car2gate2, Car2, 0.05, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( Car1, 1087 ) addVehicleUpgrade ( Car2, 1087 ) addCommandHandler ( "spatula", attachElements) Thanks ^Dev-PoinT^ for helping with the add upgrade
  7. joedajoester

    Help :D

    I put this together from the wiki, part from it and stuff, i dont get any errors in debug console, i need it to teleport someone when thet walk into the marker. s2 = createBlip( -2519, -623, 133, 23) dutymarker = createMarker(-2519, -623, 131, 'cylinder', 2.0, 255, 0, 0, 150) function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then setElementPosition ( thePlayer, -1980.78, 660.05, 46.56 ) end end
  8. I did and it wont replace the skins. https://community.multitheftauto.com/index.php?p= ... ls&id=2149 i tried multiple different ones
  9. joedajoester

    Skin

    Hi, i downloaded a skin mod form community, and it doesn't work, can someone help me with this.
  10. I got the script, chat bubbles, https://community.multitheftauto.com/index.php?p= ... ils&id=383 and get an error in debugscript, bad argument @ 'isLineOfSightClear' Can someone help, it only shows the chat bubble when im in a car and when i get out nothing happens.
  11. Thank you so much, it works perfect
  12. If i use this, it will confuse me with the names, this is what im using... car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, 0, -0, 5, 0, 354.488, 0 ) Car2 = createVehicle ( 567, 9, -0, 5, 0, 354.488, 0 ) attachElements( car1gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) attachElements( car2gate1, Car2, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car2gate2, Car2, 0.4, 13.2, -0.6, 90, 90, 90 )
  13. Hi, i made a script and used attachObject bla bla... I need the car to spawn having hydraulics, any help with it because i tried and failed.. https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade
  14. Okay, i really need help with this, this is too hard..
  15. Thanks, ill get on that now with a simple few objects... Also i got this that makes it drivable from a script i downloaded. KWKSND 's titan Cockpit1 = createVehicle ( 520, 0,0,0 ) -- create the hydra attachElements(Cockpit1,TITANCenter,50,15,-11.5,0,0,-90)
  16. I mean putting ingame objects together
  17. HI, how would i go about in making a space ship kinda, with attach object and stuff, and make it drive-able, how would i do this?
  18. Me also, i think its because today it was down today. Hope it gets fixed
  19. Theres no col thats why right?
  20. Bad 'player' pointer @ 'bindkey'(1) Bad 'player' pointer @ 'unbindkey'(1)
  21. nvm yayayayayayay thank you tapl and everone else it works I will give u credit and try to learn this for future times. I wanna give u a cookie It doesnt bind the key when i enter hte collisin zone, it allways does i dont need that. It was a misunderstanding please help with that. and i need to unbind keys when leaving? unbindKey ( player, ",", "down", open ) unbindKey ( player, "/", "down", close ) I dont know where to place it
  22. Anyone?? It only lowers, and get this error when i press the button to lift. Bad argument @ getPlayerAccount expected element at argument 1 got nill Bad argument @ getAccountName expected account at argument 1 got boolean attempt to concatenate local 'acc' (a boolean value) Heres the script im using now. lift = createObject (3095, -1851, -3112.1000976563, 51.700000762939, 0, 0, 228.49365234375) function open(hitPlayer, matchingDimension) local acc = getAccountName(getPlayerAccount(hitPlayer)) if hitPlayer then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject(lift, 2500, -1851, -3112.1000976563, 38.900001525879) end end end addEventHandler("onColShapeHit", col, open) function close(player) local acc = getAccountName(getPlayerAccount(hitPlayer)) if getElementType(player) == "player" then if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then moveObject (lift, 2500, -1851, -3112.1000976563, 51.700000762939) end end end addEventHandler("onColShapeLeave", col, close) function binding() for i,player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then bindKey(player, ",", "down", open) bindKey(player, "/", "down", close) end end end addEventHandler("onResourceStart", resourceRoot, binding)
  23. For tapls one i edited it only lowers, and does not lift. When i press the button for lift i get this error Bad argument @ getPlayerAccount expected element at argument 1 got nill Bad argument @ getAccountName expected account at argument 1 got boolean attempt to concatenate local 'acc' (a boolean value)
×
×
  • Create New...