Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. lol, or maybe he's trying to use the cam hack.
  2. I know this might be a good or bad suggestion/idea but I have brothers and sisters and when they want to annoy me they try threatening me that there going to close the server down... So is it possible that MTA could make the server go down in the notification area when you press the _ button? i would really like this.
  3. Jaysds1

    Gangs

    I want to know the colors for my general knowledge and for my server.
  4. No, it save the position in the position.txt and in there you get the position and put in the script. This is useful for making markers, objects, colshapes, gates, and saving cars/vehicles.
  5. So what's wrong with it?
  6. Jaysds1

    Help please.

    Maybe it's something else in your meta.xml
  7. Hi, I want to go on my server and make a trailer movie using cam hack, but the server keeps kicking me and saying that I'm a trainer. Do you know how to disable this?
  8. when you do (do) your creating a table, unlike the other code, your just setting the mapSide.
  9. Did u delete the zip file then started the save resource?
  10. Jaysds1

    Problems

    Sorry again for bugging u guyz, but when I press the gang in the gridlist, the camera doesn't fade to the ped. Client-side: addEventHandler("onClientGUIClick", gangs, function(button) if (button == "left") then backSkin = guiCreateButton(259,448,65,25,"<",false) nextSkin = guiCreateButton(457,452,65,25,">",false) spawn = guiCreateButton(353,534,90,24,"Spawn",false) if (guiGridListGetItemText ( gangs, guiGridListGetSelectedItem ( gangs ), 0 )) then elseif (guiGridListGetItemText ( gangs, guiGridListGetSelectedItem ( gangs ), 1 )) then ball1 = createPed(102,2045.6923828125,-1116.6484375,26.361747741699,0.50811767578125) ball2 = createPed(103,1999.8740234375,-1114.0556640625,27.125,179.30236816406) ball3 = createPed(104,1955.1240234375,-1115.1962890625,27.830497741699,268.91918945313) ball4 = createPed(13,1938.9091796875,-1114.48828125,27.452295303345,178.80798339844) fadeCamera(true, 3) setCameraMatrix(2045.724609375,-1110.4052734375,28.871231079102)
  11. Jaysds1

    Problems

    Nvm, I forgot the argument at the end and thanks for showing me that, I gave you the edited version, but thanks for helping.
  12. Jaysds1

    Problems

    Ok, but the gui buttons still isn't shown
  13. Jaysds1

    Problems

    Sorry to bug u again, but when the person clicks on the row or team then the buttons are suppose show and the camera is suppose to be on a target but when I press the row then nothing happens, Client-side: addEventHandler("onClientGUIClick", gangs, choose function(button) if (button == "left") then backSkin = guiCreateButton(259,448,65,25,"<",false) nextSkin = guiCreateButton(457,452,65,25,">",false) spawn = guiCreateButton(353,534,90,24,"Spawn",false) if (guiGridListGetItemText ( gangs, guiGridListGetSelectedItem ( gangs ), 0 )) then elseif (guiGridListGetItemText ( gangs, guiGridListGetSelectedItem ( gangs ), 1 )) then ball1 = createPed(102,2045.6923828125,-1116.6484375,26.361747741699,0.50811767578125) ball2 = createPed(103,1999.8740234375,-1114.0556640625,27.125,179.30236816406) ball3 = createPed(104,1955.1240234375,-1115.1962890625,27.830497741699,268.91918945313) ball4 = createPed(13,1938.9091796875,-1114.48828125,27.452295303345,178.80798339844) setCameraTarget(source,ball1)
  14. Jaysds1

    Problems

    thanks, I never knew there was an argument.
  15. Jaysds1

    Problems

    HI again, I have a problem with this gridlist, When the person joins the gridlist appears but the rows doesn't show here's the script Client-side: function ggs() gangs = guiCreateGridList(18,180,147,196,false) guiGridListSetSelectionMode(gangs,2) guiGridListAddColumn(gangs,"Gangs",55) for i = 1, 11 do guiGridListAddRow(gangs) end guiGridListSetItemText(gangs,0,1,"Aztecas") guiGridListSetItemText(gangs,1,1,"Ballas") guiGridListSetItemColor(gangs,1,1,100,0,100,255) guiGridListSetItemText(gangs,2,1,"Bikers") guiGridListSetItemText(gangs,3,1,"Da Nang") guiGridListSetItemText(gangs,4,1,"Grove") guiGridListSetItemColor(gangs,4,1,0,255,0,255) guiGridListSetItemText(gangs,5,1,"Mafia") guiGridListSetItemText(gangs,6,1,"Rifa") guiGridListSetItemText(gangs,7,1,"Russians") guiGridListSetItemText(gangs,8,1,"Sindacco") guiGridListSetItemText(gangs,9,1,"Triad") guiGridListSetItemText(gangs,10,1,"Vagos") end
  16. Jaysds1

    Gangs

    What s the color of these gangs? : Aztecas Bikers Da Nang Mafia Rifa Russians Sindacco Triad Vagos and Where are there HQ? Sorry about this topic, it might be stupid and useless for some of you guyz.
  17. Jaysds1

    Problems

    it works, but the light stays on, and it doesn't blink.
  18. Jaysds1

    Problems

    ok, When I enter the vehicle this is what the debugscript says: and the code is the same as yours.
  19. Jaysds1

    Problems

    it works, but this is what is shown in the debugscript This is how the code looks now: function start(player) vehicle = source addEventHandler("onClientRender", getRootElement(), startChecking) end function startChecking(player) if (getControlState(player, "vehicle_left")) then setVehicleLightState(vehicle, 1,1) setVehicleLightState(vehicle, 3,1) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,1000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,1000,0) else setVehicleOverrideLights(vehicle,0) setVehicleLightState(vehicle, 1,0) setVehicleLightState(vehicle, 3,0) end if (getControlState(player, "vehicle_right")) then setVehicleLightState(vehicle, 0,1) setVehicleLightState(vehicle, 2,1) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 1) end,5000,0) setTimer(function() setVehicleOverrideLights(vehicle, 2) end,5000,0) else setVehicleOverrideLights(vehicle,0) setVehicleLightState(vehicle, 0,0) setVehicleLightState(vehicle, 2,0) end end addEventHandler("onClientVehicleEnter", getRootElement(), start) addEventHandler("onClientVehicleExit", getRootElement(),function() removeEventHandler("onClientRender", getRootElement(), startChecking) end)
  20. ohhh, sorry... EDIT: NOW IT WORKS!!!, THANKS JR10 and diegofkda for trying to help.
  21. Jaysds1

    Problems

    it's still not working... My script works on server-side but the light's stays on.
  22. Jaysds1

    Problems

    so, I changed it to client side and added the onClientRender: function start(player) local vehicle = source if (getControlState(player, "vehicle_left")) then setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) else setVehicleOverrideLights(vehicle,0) end if (getControlState(player, "vehicle_right")) then setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) setVehicleOverrideLights(vehicle, 1) setVehicleOverrideLights(vehicle, 2) else setVehicleOverrideLights(vehicle,0) end end addEventHandler("onVehicleEnter", getRootElement(), start) addEventHandler("onClientRender", getRootElement(), start) but this is what is shown in the debugscript: Edit: is it possible to make a bindkey for this?
  23. Jaysds1

    Problems

    sorry JR10, it doesn't work...
×
×
  • Create New...