-
Posts
158 -
Joined
-
Last visited
Everything posted by villr
-
Yes but thats how i replace a vehicle's dff Could you post an code on how you would do it?
-
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)
-
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..
-
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.
-
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)))
-
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
-
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....
-
OMFG HE DID IT AGAIN !!! https://community.multitheftauto.com/index.php?p=resources&s=details&id=5120 U didnt ban hes ip?
-
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
-
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
-
well vehicles works because if u get into an interior and takes a vehicle from admin panel you get it
-
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
-
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
-
Hmm thx, i will try with that occlusion but how did they draw water in Maddogs? EDIT: Didnt work.
-
Ok no problem sir. And nope didnt work, the water is still invisible. And yes i added and end efter setElementInterior.
-
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)
-
Tested and didnt get the water into an interior
-
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?
-
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..
-
Yeye i know how to set but the other part..
-
No i cant use elementdata for accounts lol elementdata wont work with this or how do u mean?
-
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?
-
remove this https://community.multitheftauto.com/index.php?p= ... ls&id=2667
