Jump to content

villr

Members
  • Posts

    158
  • Joined

  • Last visited

Everything posted by villr

  1. Yes but thats how i replace a vehicle's dff Could you post an code on how you would do it?
  2. Did mta fix yet so it works to replace the DFF file for peds? If anyone know the code for it.. Could you please write it here? Because my code crasches the game.. dff2 = engineLoadDFF("cstexan2.dff", 133) engineReplaceModel(dff2, 133)
  3. villr

    The sun

    Is there anyhow i can see the sun position or see if the sun is up ? I want to make an sun power thing with it.
  4. Hello everyone.. again, now my problem is that i want to trigger from my gui when u click an button, so it looks up to serverside if an player already rent an boat and then if they already did it, nothing should happend. I already got an code but idk how to fix the triggers to fit the gui code Any tips? Client elseif (source == rentbutton) then triggerServerEvent("gotBoatRented", getLocalPlayer()) function gotBoatRented(state) outputChatBox (state) return state end addEvent("gotBoatRented", true) addEventHandler("gotBoatRented", getRootElement(),gotBoatRented) -- Server addEvent("gotBoatRented", true) addEventHandler("gotBoatRented", getRootElement(), function () state = false for k,v in ipairs(reefers) do local rentowner = getElementData(v,"rentowner") if rentowner == getAccountName(getPlayerAccount(source)) then state = true outputChatBox ("true") end end outputChatBox(state) triggerClientEvent ( source, "gotBoatRented", getRootElement(), state ) end ) This is what i started on but idk how to make it work..
  5. Well i want it to find the vehicle and set the data to "Charles" because he will own the boat when it got found. The boat i want to find is the boat with my accountname in.
  6. Hello, i have some thing i dont know how to do, it's to search trough all vehicles and find elemntdata and search if any of those vehicles with that elementdata contains my accountname.. Here is my code i started on: for i,elem in ipairs(getElementsByType("vehicle"))do if getElementData(elem,"rentowner") then outputChatBox(getElementData(elem,"rentowner"),getRootElement(), 255,255,255) But i dont know how to continue.. The setting of the elementdata is like this: setElementData(vehicle, "rentowner", getAccountName(getPlayerAccount(source)))
  7. OMFG HE DID IT AGAIN !!! index.php?p=resources&s=details&id=5120'>https://community.multitheftauto.com/ index.php?p=resources&s=details&id=5120 U didnt ban hes ip? https://community.multitheftauto.com/index.php?p=resources&s=details&id=5123 Again.... Why would i continue having an server when everyone already haves it.... And again... https://community.multitheftauto.com/index.php?p= ... ls&id=5128
  8. OMFG HE DID IT AGAIN !!! https://community.multitheftauto.com/index.php?p=resources&s=details&id=5120 U didnt ban hes ip? https://community.multitheftauto.com/index.php?p=resources&s=details&id=5123 Again.... Why would i continue having an server when everyone already haves it....
  9. OMFG HE DID IT AGAIN !!! https://community.multitheftauto.com/index.php?p=resources&s=details&id=5120 U didnt ban hes ip?
  10. Remove this https://community.multitheftauto.com/index.php?p= ... ls&id=5084 THIS MUTHERFUCKER STOLE MY SERVER -.- its why i have to format the pc now ban the accouunt too forever -.- im so angry and sad right now because of this guy and he destroyed my serverpc too so i have to format it
  11. villr

    Water function

    yeah but was going to cover whole Liberty City with water so would take pretty mutch space for doing it i think and it will be pretty hard because i cant see the water
  12. villr

    Water function

    well vehicles works because if u get into an interior and takes a vehicle from admin panel you get it
  13. addEvent("SpawnPetDog", true) function spawnDog() local x,y,z = getElementPosition (source) local rot= 90 local skin=10 local interior=0 local dimension= 0 local team=getPlayerTeam(source) local weapon=0 local mode= "waiting" local modesubject=source dog = call (getResourceFromName("slothbot"), "spawnBot", x, y+math.random(1,3), z+math.random(1,3), rot, skin, interior, dimension, team, weapon, mode) call (getResourceFromName("slothbot"), "setBotAttackEnabled",dog,false) --setElementData(source,"HasPetDogpackOut", true) end addEventHandler("SpawnPetDog", getRootElement(), spawnDog) why isent the setBotAttackEnabled working? i dont know why and it dont come any error in debugsript
  14. villr

    Water function

    yea lol.. it only works to create water in interior 5, it will work without setElementInterior but i need it to have in interior 1.. but bleh
  15. villr

    Water function

    Hmm thx, i will try with that occlusion but how did they draw water in Maddogs? EDIT: Didnt work.
  16. villr

    Water function

    Ok no problem sir. And nope didnt work, the water is still invisible. And yes i added and end efter setElementInterior.
  17. villr

    Water function

    water1=createWater(685, -2420, 105, 700, -2420, 105, 685, -2350, 105, 700, -2350, 105) setElementPosition(water1,-731.66,494.58,1371.97) setElementInterior(water1,1)
  18. villr

    Water function

    Tested and didnt get the water into an interior
  19. villr

    Water function

    Do anyknow one if its work to createWater in a interior? Because there is water in Maddogs and i want to create water in a interior i made so.. anyone know if this is possible or something the mta team have to make or?
  20. Anyone else that knows how to help me? I know that i have to use guiGridListSetItemText but idk how to use it for just this..
  21. Yeye i know how to set but the other part..
  22. No i cant use elementdata for accounts lol elementdata wont work with this or how do u mean?
  23. Hello everyone im wondering about how i could do for getting the gui to show the accountdata in this gui? I want it to get the accountData "carshow" and if any of the players have it, it says true and if not tells false function clientsideResourceStart () local column = guiGridListAddColumn( playersgridlist, "Carshow True/False", 0.3 ) -- Create a 'players' column in the list for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playersgridlist ) -- something here end end addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource () ),clientsideResourceStart ) could someone help me?
  24. remove this https://community.multitheftauto.com/index.php?p= ... ls&id=2667
×
×
  • Create New...