Jump to content

Enkanet

Members
  • Posts

    77
  • Joined

  • Last visited

Everything posted by Enkanet

  1. Why don't you make another thread instead of asking here?
  2. It's really much, can I learn your skype?
  3. On client for the test button side: elseif source == testBtn then triggerServerEvent("TestMyVeh", root) end and Server Side, TestMyVeh function: function TestVehicle(testCar) local testCar = createVehicle(411, -1971.90417, 291.92630, 34.69014,0,0,120) local fucker = getRandomPlayer() if testCar then setElementDimension(testCar, 5) setElementDimension(fucker, 5) warpPedIntoVehicle(fucker, testCar,0) end end addEvent("TestMyVeh", true) addEventHandler("TestMyVeh", getRootElement(), TestVehicle) And also, I don't want to get a random player to warp into vehicle. How can I warp thePlayer into the vehicle? I tried: thePlayer, player, source, localPlayer(client side but I tried ) etc. If you tell that too I'd be very appreciated. Now this function spawns a vehicle with the ID of 411. an infernus. how can I get the id from the gridlist from clientside?
  4. Sorry, google chrome sent my post twice
  5. I have already been using all of them, pff. In my opinion, I am using them wrong. I've created a grid list on client side than a marker on server side. When source hits to the marker it triggers the client event. Right now, I can create a vehicle but if I enter a vehicle ID to it. Example, local testCar = createVehicle(411, -1971.90417, 291.92630, 34.69014,0,0,120) example this one. I don't want to write 411 as vehicle ID. I want grid to write vehicle ID to there from the following column: VehiclesGrid = guiCreateGridList(10, 30, 589, 372, false, VehiclesWindow) Thanks.
  6. Hello everyone. I have a gridList. I need to createVehicle and I should create the vehicle on serverside because if I do it on clientside I will not be able to enter to the vehicle. And I have a grid and it has a column called "ID" I need to use that column to create the vehicle. the vehicle ID will be the ID stated in the grid. I am waiting for your helps. Thanks.
  7. Use serial? MTA serial? Do you have skype? So we don't need to spam forum.
  8. Okay, how can I save my player's location and set the vehicle owned by the player? Do I have to use MySQL or can I do it without MySQL?
  9. I want to lock a vehicle. I can lock but it only locks when I am inside it because of the: local vehicle = getPedOccupiedVehicle(Player) code. Any way to make it even if you aren't inside it? And, when I lock the vehicle inside, I still can get out without unlocking. Any way to fix this?
  10. As I said, I can change the texture with the shaders only I was asking was is it possible for models. @The Creator: Thanks, I am reading it now. Thanks to everyone for their time, helps ..
  11. Hi, I'd like to know if I can replace a MTA model to multiple models. I mean, NRG-500's Model ID is 522. I know how to replace it with my nrg.dff and nrg.txd (example) files. But, can I replace it with more than one model? Like, if getElementData(vehicle, "model") == 1 then (example code) replace with nrg1.dff, nrg1.txd files. if getElementData(vehicle, "model") == 2 then (example code) replace with nrg2.dff, nrg1.txd files. So can I use more than one model with a NRG500? I can do it with the textures but I don't know with the models. Thanks.
  12. I want to hide people's in game nickname from the scoreboard. I mean, if the guy's nickname is "VIPPLAYER" (example) I want to change it "Vip.Player" or something else that I want. Maybe only "Player.1" How can I do this?
  13. Thanks. I'll try and write here if worked or not.
  14. Hello everyone. As I said, How to control a vehicle even if you aren't inside it? I mean, I'll create a vehicle and when I create the vehicle, I should be able to contol it with my numpad keys. How can I do it? Regards, Enkanet
  15. Thanks everyone! I solved the problem. I did value:gsub(":" .. "%d", "") and it worked. Thanks to everyone for their time, comments, helps..
  16. Still will be same because I can not write it for each skin because it is not only 120:1 whenever you add a new skin like it, it'll make another value like 120:2 and people will continue adding. Anymore way? There should be.
  17. First of all thanks for your time and comments. I am using that to draw a dximage and value is not given manually. It is but it is given manually in game item by item. So I can't do value = "120:1" All I need is ignore :1 from 120:1. Thanks
  18. Hello everyone. I need to show a picture for my item but I need to show the pictures of the item by the value of the item. I have skin items and ids. So, if the skin item's value is 1 so when I use the item I get a skin with the id of 1. I have a folder for them which is called "img" folder. There're skin pictures inside it and they are ordered from "1.png" to "299.png" (example) I want to show that pictures with my item by using the value. I am using that code and it works. "return ":img/" .. ("%03d"):format(itemValue) .. ".png"" but sometimes I have item value like 120:1 so the game tries to find an image with name of 120:1.png but it can't. Now I want to ignore the numbers after ":" this syntax. So if the item's value is 120:1 the game should show me a picture of 120. Sorry if I made mistakes with my English. I am writing this at 4:30AM and I am so sleepy. So forgive me if I made a mistake. Thanks. Regards.
  19. Weapon Shop System v1.0.0 by Enkanet What's it?: This is a resource which is very useful for DayZ servers. The resource creates a NPC and a marker at Area 51 where can be changed. When you go to the marker, a gui appears. You can buy some weapons from this gui. The ped doesn't have a function. Pictures: Download: Click here. Note: Feel free to use it for free. All I want is don't remove my name from the script.
  20. Introduction: Hello. I am Enkanet. I am a normal person like everyone is. I am trying to script for MTA since end of the 2014. I've been playing MTA for a long time. I did not think to script until I make my server. I am not a professional or a medium level scripter. I've just started scripting and trying to script. So, I am a 15 boy who is a beginner scripter that wants to help people with his free resources. I'll be sharing my scripts in MTA community and forums. All of my resources will also be in this thread. If you see a star (*) next to my resource, then it is -NOT- open-source so it means that it can't be improved without permission. All I want from you is don't delete my name from the resource. Feel free to use them. Resources: -- Note: The thread will be updated. Please notify me if I have any vocabulary or grammar fault. Best Regards, Enkanet
  21. Hey. Maybe my thread is wrong, against to rules but I really need an urgent help. I have rented a VPS server from Nitrado. They say nothing about what's the OS. I can not connect to mysql because (IMO) the server doesn't have modules for it. I uploaded my modules file to it which I was using in my windows computer (they are .dll) and still I can't connect to the mysql. if some of you used to use nitrado maybe they can help me. regards
×
×
  • Create New...