Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. EDIT Nm i figured, i got quite far, but now i have no idea wat i change this addEventHandler, everything else seems to be fine, this is the script function createped () triggerServerEvent ( "onClientGUIClick", getLocalPlayer(), "Hello World!" ) end addEventHandler("onClientGUIClick",clientSubmitLogin,false) and that links to function test() createPed(164,0,0,6) end end addEvent( "onClientGUIClick", true ) addEventHandler( "onClientGUIClick", getRootElement(), test )
  2. No iv done all that <meta> <info author="tomdrum11" type="script" name="" description="" /> <script src="scriptclient.lua" type="client" /> <script src="scriptserver.lua" type="server" /> </meta> so if i was to put some of it in client how would i like them, heres my server side now function test() if source == makeped then createPed(164,0,0,6) outputChatBox("Your ped has been created!!", gMe) end end addEventHandler("onClientGUIClick",makeped,clientSubmitLogin,false)
  3. I think he mean if you can create an object and put it in the game.
  4. But then i would have to change it all?
  5. no i want it so other people cannot see other peds or people will spam up the server
  6. gMe = getLocalPlayer () function privateclans() wdwLogin = guiCreateWindow(226,146,372,233,"[PEDS]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("[OPTIONS]",tabpanel) makeped = guiCreateButton(0.010,0.100,0.200,0.200,"CreatePed",true,tab1) givem4 = guiCreateButton(0.210,0.100,0.200,0.200,"GiveM4",true,tab1) Dance = guiCreateButton(0.410,0.100,0.200,0.200,"Dance",true,tab1) Aim = guiCreateButton(0.610,0.100,0.200,0.200,"Aim gun",true,tab1) tab2 = guiCreateTab("[iNFO]",tabpanel) information = guiCreateButton(0.010,0.100,0.970,0.800,"|This Was all made by Tomdrum11|",true,tab2) bindKey("F3" , "down" , windowToggle) end function windowToggle() if (guiGetVisible(wdwLogin) == true) then guiSetVisible(wdwLogin, false) showCursor(false) elseif (guiGetVisible(wdwLogin) == false) then guiSetVisible(wdwLogin, true) showCursor(true) end end function test() if source == makeped then createPed(164,0,0,6) outputChatBox("Your ped has been created!!", gMe) end end addEventHandler("onClientGUIClick",makeped,clientSubmitLogin,false) addEventHandler( "onClientResourceStart" , getResourceRootElement(getThisResource()), privateclans) ok here it is now. now it says in debugscript 3, :"Atempted to call globe getLocalPlayer(a nil value) what does this mean
  7. Xeno

    Weapons

    I no a bug to make a DE faster in a car..... first aim out the car with a normal pistol then press F1 while still aim and get a DE and it goes as fast as a pistol
  8. I have two questions for you guys today . 1. What is the F1 Gui called in the reasouce folder? 2. What is rong with this code, its an error and the gui does not come up. Heres my script gMe = getLocalPlayer () function privateclans() wdwLogin = guiCreateWindow(226,146,372,233,"[PEDS]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("[OPTIONS]",tabpanel) makeped = guiCreateButton(0.010,0.100,0.200,0.200,"CreatePed",true,tab1) givem4 = guiCreateButton(0.210,0.100,0.200,0.200,"GiveM4",true,tab1) Dance = guiCreateButton(0.410,0.100,0.200,0.200,"Dance",true,tab1) Aim = guiCreateButton(0.610,0.100,0.200,0.200,"Aim gun",true,tab1) Fire= guiCreateButton(0.810, 0.100,0.200,0.200"Fire gun",true,tab1) tab2 = guiCreateTab("[iNFO]",tabpanel) information = guiCreateButton(0.010,0.100,0.970,0.800,"|This Was all made by Tomdrum11|",true,tab2) bindKey("F3" , "down" , windowToggle) end function windowToggle() if (guiGetVisible(wdwLogin) == true) then guiSetVisible(wdwLogin, false) showCursor(false) elseif (guiGetVisible(wdwLogin) == false) then guiSetVisible(wdwLogin, true) showCursor(true) end end function test() if source == makeped then createPed(164,0,0,6) outputChatBox("Your ped has been created!!", gMe) end addEventHandler("onClientGUIClick",makeped,clientSubmitLogin,false) addEventHandler( "onClientResourceStart" , getResourceRootElement(getThisResource()), privateclans) the script is ment to be a ped gui, so you can like create a ped and make him get a gun and fire and stuff.
  9. Xeno

    Ped aim and shoot

    Im not teh owner, but its EXF clan just search it, i dont no ip lol, ill be in there now. And anyway im sure you could do a much better job than me, mine sucks.
  10. Xeno

    Ped aim and shoot

    1. i had help with that UFO and i had an example to help me 2. i dont want them to shoot a player just shoot forward 3. would i start with setPedControlState( ped, "fire", true )somthing like that?
  11. Xeno

    Ped aim and shoot

    I have red them all and they dont work
  12. Hey dudes I want to no how i make peds aim and shoot, i have tried and i fail , here is my ped script. function pedLoad() local ped2 = createPed (287, -1373, -206, 14, 1050, 1050, 0 ) giveWeapon( ped2, 31, 500, true ) setTimer( giveWeapon, 1000, 4, ped2, 31, 500, true) local ped = createPed (287, -1374, -206, 14, 1050, 1050, 0 ) giveWeapon( ped, 31, 500, true ) setTimer( giveWeapon, 1000, 4, ped, 31, 500, true) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
  13. Sorry, i dont understand what its for?
  14. i think iv neally fixed it, this is it local beam = createMarker( 1616, 659, -50, "checkpoint", 5, 0, 255, 0, 150 ) function cUFO( player, commandname ) setElementPosition ( player, -1587, 26, 37 ) local UFO = createObject ( 17512, -1326, -67, 110, 180, 0, 0 ) outputChatBox ( "** EVERYONE GET TO SF AIRPORT, IT IS BEING ATTACKED BY UFO'S! **",root,255,100,100 ) local xup = -1430 local yup = 50 local zup = 110 local xup1 = -1394 local yup1 = 107 local zup1 = 110 local xup2 = -1287 local yup2 = -69 local zup2 = 110 local xup3 = -1386 local yup3 = -158 local zup3 = 110 local xup4 = -1587 local yup4 = 26 local zup4 = 1000 setTimer ( moveObject, 2000, 1, UFO, 10000, xup, yup, zup ) setTimer ( moveObject, 15000, 1, UFO, 10000, xup1, yup1, zup1 ) setTimer ( moveObject, 30000, 1, UFO, 10000, xup2, yup2, zup2 ) setTimer ( moveObject, 37000, 1, UFO, 10000, xup3, yup3, zup3 ) setTimer ( moveObject, 45000, 1, UFO, 10000, xup4, yup4, zup4 ) attachElements (beam, UFO, 0, 0, 50, 0, 0, 0) end addCommandHandler ( "UFOsf", cUFO ) function teleport(player) if (source == beam) then setElementPosition(player, 4027, -187, 112 ) end end addEventHandler("onMarkerHit", beam, teleport)
  15. It says bad argument @ addeventhandler
  16. Ok, could you help me then, i didnt really get at xbost said as im not that well scripter
  17. So basically it wont even work gamesnert?
  18. Try the /debugscript 3 and see what it says, note down the errors on here
  19. Iv done markers before when you hit them you teleport somwhere. For some reason i cant put the teleport bit inside the function with the marker in it. I put it in an nuther function and it doesent work, no errors on Debug or anything. Heres my Script function cUFO( player, commandname ) setElementPosition ( player, -1587, 26, 37 ) local UFO = createObject ( 17512, -1326, -67, 110, 180, 0, 0 ) outputChatBox ( "**EVERYONE GET TO SF AIRPORT, IT IS BEING ATTACKED BY UFO'S!**",root,255,100,100 ) local xup = -1430 local yup = 50 local zup = 110 local xup1 = -1394 local yup1 = 107 local zup1 = 110 local xup2 = -1287 local yup2 = -69 local zup2 = 110 local xup3 = -1386 local yup3 = -158 local zup3 = 110 local xup4 = -1587 local yup4 = 26 local zup4 = 1000 setTimer ( moveObject, 2000, 1, UFO, 10000, xup, yup, zup ) setTimer ( moveObject, 15000, 1, UFO, 10000, xup1, yup1, zup1 ) setTimer ( moveObject, 30000, 1, UFO, 10000, xup2, yup2, zup2 ) setTimer ( moveObject, 37000, 1, UFO, 10000, xup3, yup3, zup3 ) setTimer ( moveObject, 45000, 1, UFO, 10000, xup4, yup4, zup4 ) beam = createMarker( 1616, 659, -50, "checkpoint", 5, 0, 255, 0, 150 ) attachElements (beam, UFO, 0, 0, 50, 0, 0, 0) end addCommandHandler ( "UFO", cUFO ) function teleport(player) if getElementType( player ) == "player" and source == beam then setElementPosition(hitPlayer, 4027, -187, 112 ) end end function cUFO( player, commandname ) setElementPosition ( player, -1587, 26, 37 ) local UFO = createObject ( 17512, -1326, -67, 120, 0, 0, 0 ) local xup = -1430 local yup = 50 local zup = 120 local xup1 = -1394 local yup1 = 107 local zup1 = 120 local xup2 = -1287 local yup2 = -69 local zup2 = 120 local xup3 = -1386 local yup3 = -158 local zup3 = 120 local xup4 = -1587 local yup4 = 26 local zup4 = 1000 setTimer ( moveObject, 2000, 1, UFO, 10000, xup, yup, zup ) setTimer ( moveObject, 15000, 1, UFO, 10000, xup1, yup1, zup1 ) setTimer ( moveObject, 30000, 1, UFO, 10000, xup2, yup2, zup2 ) setTimer ( moveObject, 37000, 1, UFO, 10000, xup3, yup3, zup3 ) setTimer ( moveObject, 46000, 1, UFO, 10000, xup4, yup4, zup4 ) end addCommandHandler ( "UFO", cUFO )
  20. Xeno

    Ped Follows you

    Thank you very much, i saw the video on you tube and that gave me an idea of an admin body guard (which im makeing now) and i will be sure to mention that you helped me. Thanks
  21. Xeno

    Ped Follows you

    So wat if it was like the cheat on the real game when all the peds follow you?
  22. Xeno

    Ped Follows you

    No, not like that. like the ped follows you everywhere
  23. Xeno

    Ped Follows you

    Hey guys, I was wondering if it was possible to create a ped that follows you around, a bit like a body guard. If so how, i would proberly get as far as this . function pedLoad() ped1 = createPed ( 287, 223, 1875, 18 ) giveWeapon( ped1, 31, 500, true ) setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
  24. Xeno

    Tractor Beam

    I made a marker and attached it to the ship.
×
×
  • Create New...