Jump to content

Franky

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Franky

  • Rank
    Civilian
  1. I already found the solution. You have to set to 1 and to an open port!
  2. Hey. I tried to put up my own server and i keep getting this error. "Error downloading requested files. Couldn't connect to the server!" What it does is it connects to the server and when the downloading starts it gives this error and disconnects from the server. I can get into other servers, so it must be my servers settings fault. I turned off my Antivirus and firewall but still doesn't work I found this: http://wiki.multitheftauto.com/wiki/Kno ... sted_files ,but i can't understand if i need to fill the httpdownloadurl slot. If so what do i type there? I had a working server before 1
  3. I have the basics. i just don't know how to separate the number like i want to. if you could make an example it would be great because that way i can learn it quicker
  4. what i want to do is i want to make a mini game. you have to enter the right numbers to win. you get a 5 key combination code and when you enter the five numbers, then the numbers, that are right, turn green and the rest turn red. does anyone know how to do it? if someone could just give me some kind of an example or a link i would appreciate it thanks Franky
  5. function enableGuns ( source ) getPedOccupiedVehicle ( source ) setVehicleGunsEnabled ( theVehicle, true ) end addCommandHandler ( "guns", getRootElement(), enableGuns ) attempt to call global 'setVehicleGunsEnabled' (a nil value) Does this function exist? its in the wiki but i think its not working
  6. function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) Do i have to spawn the player first? Does this function even work? First i tried to make it myself but then i just copied it from the wiki. I just downloaded a new mta from the mta's homepage. i think i should be v1.0
  7. function setDataOnStart ( ) for key, value in ipairs(getElementsByType("vehicle")) do local blockState = getElementData ( theVehicle, "engine.block" ) if ( blockState ) == false or ( blockState ) == nil then setElementData ( theVehicle, "engine.block", 100 ) end local battState = getElementData ( theVehicle, "engine.battery" ) if ( battState ) == false or ( battState ) == nil then setElementData ( theVehicle, "engine.battery", 100 ) end local generatorState = getElementData ( theVehicle, "engine.generator" ) if ( generatorState ) =
  8. It needs to be in client side because all GUI's are client side.. it sets the ElementData at server side script.. i have an idea so ill try it.. thanks..
  9. local gPlayer = getLocalPlayer ( ) local gVehicle = getPlayerOccupiedVehicle ( gPlayer ) function analyseGui ( ) local engineSize = getElementData ( gVehicle, "engine.size" ) --sets it by car id. it the engine size in liters. example: 2.8 window = guiCreateWindow ( 0.25, 0.25, 0.5, 0.5, " Gui ", true ) guiCreateLabel ( 0.05, 0.05, 0.3, 0.5, engineSize.. "liter", true, window ) guiWindowSetSizable ( analysegui, false ) guiSetVisible ( analysegui, false ) end addEventHandler( "onClientResourceStart", getResourceRootElement ( getThisResource ( ) ), analyseGui
  10. still the same.. "Bad argument @ "addEventHandler" line 26"
  11. Sorry i forgot:D it gives me an error like "Bad argument @ line 26 "addEventHandler" " or something like that.. it doesn't give it in the console, it in the debug script.
  12. function analyseGui ( ) analysegui = guiCreateWindow ( 0.3, 0.25, 0.4, 0.5, "Analysing results", true ) space1 = guiCreateGridList ( 0.015, 0.06, 0.483, 0.1, true, analysegui ) space2 = guiCreateGridList ( 0.512, 0.06, 0.483, 0.1, true, analysegui ) space3 = guiCreateGridList ( 0.015, 0.18, 0.483, 0.1, true, analysegui ) space4 = guiCreateGridList ( 0.512, 0.18, 0.483, 0.1, true, analysegui ) space5 = guiCreateGridList ( 0.015, 0.3, 0.985, 0.6, true, analysegui ) closeBTN = guiCreateButton ( 0.8, 0.92, 0.2, 0.098, "Close", true, analysegui ) guiSetVisibl
×
×
  • Create New...