Jump to content

Victor214

Members
  • Content Count

    32
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Victor214

  • Rank
    Rat

Details

  • Gang
    IDK
  1. I didn't use it cuz I don't know how to use tables at all, I searched for a tutorial yesterday, but I didn't find a good one, anyway, thank ya
  2. Are you sure it'll work? this function will set the ped's aim target to a fixed location, and I need a function to set his target in other moving peds (that I'll add later), not to a fixed location =X
  3. So, I'm working on army peds that will be able to aim and shoot (like an aimbot) on other moving peds (I'll create them later), I've already given them weapons, now my problem is to do the aimbot, I though about creating an weapon, attaching them to the ped, add the "holding weapon" animation, and then use setWeaponTarget, but it'd be too complicated and would probably fail, is there any other way to do it? Here you have the script: army1 = createPed (287, 1799.6999511719, -1721.8000488281, 25.799999237061, 207.99983215332) army2 = createPed (179, 1813.1999511719, -1721.6999511719, 17.89999
  4. hey guys, I have a question. I'm supposed to do a script that every 24 hours (00:00) of real life it starts a function (and I've already made it). In the function that will be started, I need to get 2 random values, one from 0 to 23 and other from 1 to 5, I also did it (0 to 23 is the real time that a function will be started and 1 to 5 is which function will be started, there are 5 functions). So, after that, I needed to do almost 400 lines of "if ( hour == 0 and event == 101 ) then meteor end" to preview every possibilitie, so I'd like to ask you, is there any way to reduce this ammount of
  5. Hello! I would like to know How i can use the function dxDrawText , with relative values. Can someone help me and give an Example? Thanks
  6. Thanks, but the same thing is happening =X edit: I've found the problem, I put absolute positions of the screen (Pixels) and not a Percentage of the screen (Basically, It was there, but outside of the screen limits)
  7. So, I've made a script, when I tested it on "Host Game" it was working fine, then I put it on my server, my brother joined it to help me testing. The script is basicaly a dx rectangle, some images, some dx texts and a showhud function. For me, the script was working fine, but for my brother the only thing working was the showhud function, can anyone help me to find the reason? addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(227,759,486,78,"",false) gui
  8. Hmm, I'm trying to use the function GuiGridListGetSelectedItem, but i couldn't understand how exactly it works Can someone give me a simple example on how to use it? Thanks!
  9. guys, I really need help with peds and timers, i want to know what function should I use to make a ped follow someone and hit this person, I also want to know how to do a text that goes down like a timer (starts in 2:00 and goes down to 1:59, 1:58... but the player needs to see this text going down in his screen), there is one more thing, I would like to know what's the function that allows me to put short movies in the game (like most of the servers do when you create your account, with airplanes landing,etc) Thanks and sorry to disturb
  10. I used And i even posted a SS
  11. it worked! Thank you a lot! ;D
  12. i tried this It didn't work, But thank you for the help
  13. Well, I'm trying to make a Ped Panel, to practice my Scripting Skills, But i got a problem here. Can someone help me? When i press the button Create Ped on the GUI, Nothing happens, here is the error message : Server-Side function spawnPed (source) local x,y,z = getElementPosition (source) pedio = createPed (0, x-2, y+2, z) end addEvent("spawnPed", true) addEventHandler("spawnPed", getRootElement(),spawnPed) Client-Side PedWdw = guiCreateWindow(255,130,582,361,"Ped Panel v1.0",false) CrePed = guiCreateButton(21,36,148,57,"Create Ped",false,PedWdw) DesPed = gui
×
×
  • Create New...