Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. http://imageshack.us/photo/my-images/684/unled2qs.jpg/ and http://imageshack.us/photo/my-images/850/57486955.jpg/
  2. Well, this should be better if you meaning this: taxiped = createPed(187,1220,-1812,16,0) setPedRotation(taxiped,180) setPedAnimation( taxiped, "ped", "WOMAN_walknorm") tpickup = createPickup (-2026.5, -101, 35.5, 3, 1239, 1 ) attachElements(tpickup, taxiped) ^^ You was trying to attach a ped to a object, and that can't:attachElements(taxiped, tpickup )
  3. Well, If you want this script, try first to make it on yourself and btw, this offtopic
  4. Well, it's working fine the attachment, but now it doesn't goes to the example place ( 0, 0, 6 ) Help? Ah, JR10 andTapl thnx for attaching
  5. 21.attachElements ( object, car ) U see that? ^^
  6. Hi there I've just has got getted an idea a automatic pilot =D but I IDK how to attach a object to an car: needs to add it server side or else i can't move it Server Side: vliegtuigenn = { [592]=true, [511]=true, [512]=true, [593]=true, [520]=true, [553]=true, [593]=true, [476]=true, [519]=true, [460]=true, [513]=true, [577]=true } addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs(getElementsByType("player")) do bindKey(v,"b","down",autopiloot) end end) function autopiloot ( player ) local vliegtuig = getPedOccupiedVehicle(player) if ( vliegtuigenn[getElementModel(vliegtuig)] ) then triggerClientEvent ( "deGui", getRootElement(), vliegtuigen ) end end function moveLV ( player ) local car = getPedOccupiedVehicle(player) local object = createObject ( 980, 0, 0, 3 ) attachElements ( object, car ) moveObject ( object, 10000, 0, 0, 6 ) end addEvent( "LV", true ) addEventHandler( "LV", getRootElement(), moveLV ) Client Side: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(206,160,216,320,"Auto piloot",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible (GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(15,32,192,29,"San Fiero Airport",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(15,80,192,29,"Las Venturas Airport",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(15,129,192,29,"Verdant Meadows Airport",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(15,178,192,29,"Los Santos Airport",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(13,224,194,87,"\nDeze Autopiloot script is gemaakt bij [DenR]Danny \n Heb veel plezier ermee \n zitten er bugs in gebruik dan /report",false,GUIEditor_Window[1]) function deGui() guiSetVisible (GUIEditor_Window[1],true) showCursor(true) end addEvent("deGui",true) addEventHandler("deGui",getRootElement(),deGui) addEvent("deGuiWeg",true) addEventHandler("deGuiWeg",getRootElement(), function () guiSetVisible(GUIEditor_Window[1],false) showCursor (false) end) function move () triggerServerEvent ( "LV", getLocalPlayer(), "LV" ) end function clicked (player, vehicle) if (source == GUIEditor_Button[2]) then player = getLocalPlayer () setTimer ( move, 1000, 1 ) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) outputChatBox ("Auto Piloot: Oke, U wordt naar Las Venturas Airport gebracht",225,225,0) elseif (source == GUIEditor_Button[1]) then outputChatBox ("Auto Piloot: Oke, U wordt naar San Fiero Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[3]) then outputChatBox ("Auto Piloot: Oke, U wordt naar Verdant Meadows Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[4]) then outputChatBox ("Auto Piloot: Oke, U wordt naar Los Santos Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) end end addEventHandler("onClientGUIClick",getRootElement(), clicked )
  7. Hi There Here's a shader efect video I hope that your'e liking it https://www.youtube.com/watch?v=Ef167ZiJ ... ture=inbox
  8. Hi there, One Question I've got used setObjectScale but now I can move into the object how to resolve it Or will mta resolve that?
  9. https://community.multitheftauto.com/ind ... ils&id=343 ^^^^^^^^^^^^ All what u need =D
  10. Hi there, I've got last a few questions on my server - NL server they asked to me to make a new police horn like the netherlands and then this:I've got attached the playsound on the vehicle - 3D but now you hear it only who has entered the police car help me code: Client: -- client function policeEnterr (player) local vehicle = getPedOccupiedVehicle( getLocalPlayer() ) politiet = playSound3D("hooh1.mp3", 0, 0, 0, true) attachElements ( politiet, vehicle ) setSoundMaxDistance(politiet, 45) setSoundVolume(politiet, 30.0) end addEvent( "police", true ) addEventHandler( "police", getRootElement(), policeEnterr ) -=-=-=Server-=-=-=-==-=-=- -- server function policeEnter ( theVehicle, seat, jacked ) local id = getElementModel ( theVehicle ) if id == 546 or id == 568 or id == 537 then local vehicleName = getVehicleName ( theVehicle ) triggerClientEvent ( "police", getRootElement() ) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), policeEnter ) please help!
  11. Erggghghh u want my full code? well here it is t1 = createMarker (2647, -1234, 34, "corona", 1.2, 0, 0, 255, 250 ) t2 = createMarker (2647, -1231, 34, "corona", 1.2, 0, 0, 255, 250 ) t3 = createMarker (2647, -1230, 34, "corona", 1.2, 0, 0, 255, 250 ) t4 = createMarker (2647, -1228, 34, "corona", 1.2, 0, 0, 255, 250 ) function bots () ped1 = createPed ( 18, 2622, -1250, 35 ) ped2 = createPed ( 22, 2628, -1253, 35 ) ped3 = createPed ( 56, 2622, -1254, 35 ) ped4 = createPed ( 92, 2524, -1243, 35 ) ped5 = createPed ( 128, 2634, -1244, 35 ) ped6 = createPed ( 140, 2610, -1235, 36 ) setPedRotation ( ped1, 235 ) setPedRotation ( ped2, 183 ) setPedRotation ( ped3, 94 ) setPedRotation ( ped4, 294 ) setPedRotation ( ped5, 301 ) setPedRotation ( ped6, 56 ) end addCommandHandler ( "peds", bots ) function anims () setPedAnimation ( ped1, "dancing", "dnce_m_a", -1, true, false, false ) setPedAnimation ( ped2, "dancing", "dnce_m_b", -1, true, false, false ) setPedAnimation ( ped3, "dancing", "dnce_m_c", -1, true, false, false ) setPedAnimation ( ped4, "dancing", "dnce_m_d", -1, true, false, false ) setPedAnimation ( ped5, "dancing", "dnce_m_e", -1, true, false, false ) setPedAnimation ( ped6, "STRIP", "STR_B2C", -1, true, false, false ) end addCommandHandler ( "dance", anims ) werkm = createMarker (2612, -1228, 34, "corona", 1.0, 0, 0, 255, 250 ) function geld (player) player = getLocalPlayer () givePlayerMoney ( player, 1 ) end function work (player) setElementPosition ( player, 2610, -1228, 35 ) setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false ) setElementModel ( player, 140 ) lol = setTimer (geld, 9000, 0 ) end addEventHandler ( "onMarkerHit", werkm, work ) function pissen (player) setPedAnimation ( player, "PAULNMAC", "Piss_Loop", -1, true, false, false ) end addEventHandler ( "onMarkerHit", t4, pissen ) addEventHandler ( "onMarkerHit", t3, pissen ) addEventHandler ( "onMarkerHit", t2, pissen ) addEventHandler ( "onMarkerHit", t1, pissen )
  12. WARNING: Bad arguement @ 'givePlayerMoney' That's Saying debugscript this is my code: werkm = createMarker ( 0, 0, 1 ) function geld (player) givePlayerMoney ( player, 1 ) end function work (player) setElementPosition ( player, 2610, -1228, 35 ) setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false ) setElementModel ( player, 140 ) lol = setTimer (geld, 9000, 0 ) end addEventHandler ( "onMarkerHit", werkm, work ) But it Doesn't work help pls!\ and to this not! localPlayer = getLocalPlayer ( )
  13. denny199

    webhost

    no it Can't 000webhost have got a ftp space but you can't open youre ports for host, so no.
  14. You can always try this! https://community.multitheftauto.com/index.php?p=resources&s=details&id=1846
  15. Try this =D SERVER SIDE car = createVehicle( 600, 0, 0, 2 ) setElementData(car,"rocket",true) object = createObject(3884, 2530.621, -1715.385, 12.489) attachElements(object, car, 0,-1.8,-0.5) function bindKeyStartFire() bindKey(source,"i","down",rocketfire) end addEventHandler("onPlayerJoin", getRootElement(),bindKeyStartFire) function rocketfire(source) if isPedInVehicle(source) then local vehicle = getPedOccupiedVehicle(source) if getElementData(vehicle,"rocket") == true then if getVehicleController(vehicle) == source then local x,y,z = getElementPosition(vehicle) local rx,ry,rz = getVehicleRotation(vehicle) triggerClientEvent("fireRocket", getRootElement(), source, x, y, z, rz,vehicle) end end end end Client side! function fireRocket(source,x, y, z, rz,vehicle) if source == getLocalPlayer() then createProjectile(source, 19, x, y-1, z+3, 900, nil, 0,-15,-(rz+180),0,0,0) createProjectile(source, 19, x, y+1, z+3, 900, nil, 0,-15,-(rz+180),0,0,0) car = vehicle end end addEvent("fireRocket", true) addEventHandler("fireRocket", getRootElement(), fireRocket)
  16. denny199

    Help

    To not TXD workshop????
  17. aah yes, sorry, but I wanna have this to for my atomatic train system and much more, that's why i need those codes or else it don't work
  18. Do you mean this???: function test () ped = createPed ( 111, 0, 0, 4 ) -- example a ped object = createObject ( 987, 0, 0, 4 ) attachElements ( object, ped, 0, 0, 0 ) -- this attach the object to the ped end addCommandHandler ( "test", test ) But it can to be this: function attach (plyer) object = createObject ( 987, 0, 0, 0 ) -- create a object:a gate attachElements ( object, player, 0, 0, 0 ) end addCommandHandler ( "test", attach ) IDK IF IT WORK
  19. setPedControlState Isn't server side , And i need this for fun, so it means missions
  20. Don't work and mayby is this better triggerServerEvent("onTestFunction", getLocalPlayer(), ped, car) -- because it was already client side
  21. How can i get resolve it???????, mayby other codes????
  22. Hi there, I was making a sort of streetrace but There was one problem, I had added it this client side: function test () ped = createPed ( 111, 0, 0, 4 ) car = createVehicle ( 411, 0, 0, 4 ) warpPedIntoVehicle ( ped, car ) setPedControlState ( ped, "accelerate", true ) end addCommandHandler ( "setup", test ) but now the ped can't warp in the vehicle HELP! But this doesn't work I've got tried this: added server side but setPedControlState is client side Had triggered via serverside to clientside but an error because ped was in server side Please help Regards, Danny
×
×
  • Create New...