Jump to content

jingzhi

Members
  • Posts

    288
  • Joined

  • Last visited

Everything posted by jingzhi

  1. Thank you very much, i will try out when i have a chance
  2. Thank you very very much
  3. Ty, can you also tell me how does your Live Weather script fetch info from internet?
  4. I see, ty Ryan, do you recommend SQLlite? SQLite or MySQL will work the same. SQLite is better if you don't want to install other software (XAMPP/WAMP/etc..), however you would have to download the file if you want to view it. MySQL is better if you want to be able to access your database through a website, but it requires a little more setup, and it may not be as fast as SQLite. I see, thank you very much, is there a tutorial of setting up MySQL in the forum?
  5. Thank you very much, ryan, I have a little extra problem, of your Live Weather script, how do you fetch the weathr info from a website? Thanks
  6. I have saw this slothbot resource, and i have read its code. He added some delay to the aiming of his bot to be realistic, maybe he added too much delay so now it's bad. So try to reduce the delay and see if it works. I have made my own bot without delay, and it aims perfectly. Thanks you, but how can i reduce the delay ? I know about scripts but i'm not a expert I think he have put explanation in the script, try to find the line "put a little delay to be realistic"
  7. Clientscript function cuffed() local copx, copy, copz = getElementPosition (arrester) local x, y, z = getElementPosition (localPlayer) local copangle = ( 360 - math.deg ( math.atan2 ( ( copx - x ), ( copy - y ) ) ) ) % 360 setElementRotation(localPlayer,_,_,copangle) local dist = getDistanceBetweenPoints2D (copx, copy, x, y) if dist < 2 then setControlState("forwards", false) setControlState("sprint", false ) else setControlState("forwards", true) setControlState("sprint", true ) end end addEvent("onPlayerArrested",true) addEventHandler("onPlayerArrested",root, function(arrester) arrester = arrester setCameraTarget(arrester) addEventHandler("onClientPreRender",root,cuffed) end) addEvent("onPlayerJailed",true) addEventHandler("onPlayerJailed",root, function() removeEventHandler("onClientPreRender",root,cuffed) end) Hey guys, I am having this problem, which I am trying to make the criminal follow the police, but they dont work, nothing happens, only the camera is following the police, nothing in debugscript, and its triggered, please help! TY
  8. I see, ty Ryan, do you recommend SQLlite?
  9. Hey ryan but how about the password? I also want to show the player the password for his acc
  10. Before I put them as elementdata, i tryed to pass them down by putting them in the arguments of triggerclientevent, but it says that its nil, i will try this out, i will tell you if it works
  11. Hey yes i am wondering why it will return a boolean , and this is not the full script
  12. Hey guys i am trying triggerclient to dxdraw a text here is the script server addEvent("register",true) addEvent("login",true) function register(username,password,player) local newaccount = addAccount(username,password) local username = username local password = password if newaccount ~= false then logIn(player,newaccount,password) setElementData(player,"username",username) setElementData(player,"password",password) triggerClientEvent(player,"successfulregistered",resourceRoot) else triggerClientEvent(player,"accountalreadyexist",resourceRoot) end end addEventHandler("register",root,register) client dxDrawText(""..getElementData(localPlayer,"username").."", 1008, 105, 1232, 142, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(""..getElementData(localPlayer,"password").."", 1008, 152, 1232, 189, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) end and the error : line 1 of client script : "attempt to concatenate a boolean value" Please help guys! Thank you very much
  13. jingzhi

    Spawn Panel

    You can easily make that by yourself using GUI editor and some scripts
  14. I think you can simply make that script by yourself.
  15. I have saw this slothbot resource, and i have read its code. He added some delay to the aiming of his bot to be realistic, maybe he added too much delay so now it's bad. So try to reduce the delay and see if it works. I have made my own bot without delay, and it aims perfectly.
  16. You can use the ingame vehicle spanwer, there is animation option, and it gives different categories, you can try find it out there.
  17. I am not pretty sure how to store and loop them when the player buys them, can you please help on that, thank you again!
  18. Again, someone please help, if you understand, i've been stuck here for a long time
  19. In a world position,
  20. Hey guys, is there a function to use or a way to dxDraw something based on cordinates in gta? For example, i want to draw "police station" text in front of police station, is that possilbe? Thank y'all!
  21. I see how it works, even though I cant solve this problem now, but thank you.
  22. Hey Ty very much but can this function retrieve specific string from the webpage or only download some file? If you need to get a string then use callRemote you can call the page that conation the real time and then return the result to LUA script using the callBack function see the wiki example it may help you After reading the wiki I'm still kinda confused, can you teach me more? Here is what I want to do, for example this page here http://www.weather.com/weather/today/l/SPMD0627:1:SP I want to get the temperature string from this web, how should I do it? Again, thank you very much!
×
×
  • Create New...