Jump to content

Bohemian_Bear

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Bohemian_Bear

  1. This is not the script. This is only one thing iam writing to know what i need to read about to learn those functions; But i am trying to do one organization system. Police, government, factions and this kind of thing.
  2. Well, i am here to ask you guys for something to read! I need to achiev this system and i need to do on my own, learning all things. This is my "script", are only ideas and little code based on my known Anything you guys can send me for read will help! sry for bad english
  3. Thank you again! And, i simply can pick "getElementData ( source, "fuel" )" on another script?
  4. Hi! There's an way to set something like one variable to one car on respawn of the car? I am tryin to make an hud-vehicle sistem with fuel marker function setFuel(player,seat,jacked) if(getElementData(vehicle,"currentFuel") = false) then fuel = math.random(50,90) setElementData(source,"currentFuel",tonumber(currentFuel)) end addEventHandler("onVehicleRespawn",getRootElement(),setFuel) And have any way to pick "currentFuel" variable on another script?
  5. Yes yes, i'll read thos two; So much tank you!
  6. Nice, this will work... When i ask for vehicle, it will returns to me textures/vehicleType.png, right? I am still learning with some scripts open source and reading; I can set things like, global variables, session variables or things like session variables?
  7. Well, i am new here, and please sry for the bad english. I am trying to make an hud that changes one "state of damage" pic related to the vehicle types function enterVehicle(theVehicle, seat, jacked) if (getVehicleType(theVehicle) == "Automobile") then local vehicle = "textures/car.png" end if (getVehicleType(theVehicle) == "Plane") then local vehicle = "textures/plane.png" end if (getVehicleType(theVehicle) == "Bike") then local vehicle = "textures/bike.png" end if (getVehicleType(theVehicle) == "Helicopter") then local vehicle = "textures/heli.png" end if (getVehicleType(theVehicle) == "Boat") then local vehicle = "textures/boat.png" end end 2 questions, this is right? And this is will return me "textures/....png" with the "vehicle" variable? Also, if there anyway to make this code better, will help. TY!
  8. Bom, eu tenho pouco tempo de MTA, e nada de SAMP, mas estou começando com um projeto e tenho uma dúvida; Por quê no map editor do "SAMP" há mais objetos do que no do MTA? E se for isso mesmo, há alguma maneira de adiciona-los no MTA? Por exemplo, um speed bumper ( quebra molas ) tem o id 19425, já tentei adiciona-lo de diversas maneiras como objeto pelo .map mas não consigo.
×
×
  • Create New...