Jump to content

Potato_Tomato420

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Potato_Tomato420

  1. Hello, I'm currently trying to work with DX drawing for my server. Can somebody explain to me how to move a dxDrawRectangle on the screen? For example when I press F1 the dxDrawRectangle will move with animation to the right or left side of the screen. Thx!
  2. Hi all, i'm currently script a login system for my server. How can I prevent new players taking usernames that are only 1,2 or 3 characters long? Thx!
  3. When i use removePlayerFromVehicle it will spawn the arrested criminal inside the vehicle. Can i use removePlayerFromVehicle and then setElementPosition to spawn the arrested criminal near the vehicle instead in the vehicle? Of is there a better way to handle this? Like: setControlState (thePrisoner, "enter_exit", true)
  4. So i'm currently scripting a arrest system\resource for my server. When the police officer enters a vehicle the arrested criminal will be warped into the vehicle. But how can I make the arrested criminal to leave the vehicle when the police officer leaves the vehicle?
  5. What does C stack overflow mean? I get this error when running this code: addEventHandler ("onVehicleExit", getRootElement (), function (thePlayer) if (getElementModel(source) == 596 or 523) then local passenger = getVehicleOccupant (source, 1) if passenger then removePedFromVehicle(passenger) end end end )
  6. How can I make a dxDrawRectangle slide in from top to center?
  7. Yes it is server side, I want to prevent a ambulance (416) to spawn inside the marker if a other player or vehicle is inside the marker. How could I prevent this?
  8. It's a lot of work to create a roleplay, i'm currently busy create a own roleplay server. The best way is to learn it yourself, see MTA WIKI
  9. I have created a vehicle spawn script but when 2 players walk into the marker the same time. It causes the vehicle's to spawn in each other en eventually explode. Is there some way i could prevent this situation from happening?
  10. Hi all, how can I make a object damage proof? I have created a fuel script and don't want players to blow up the gas pumps.
  11. Hi all, How can i force a player to follow me? I want to create my own arrest system. Which function do i need to use?
  12. Hello, I have created a resource when entering a marker you can choose a free vehicle to travel with. But now I have a problem and I have no idea how to resolve it... If the players enters the marker for a second time, I want the previous vehicle to be destroyed. That part of the scripts works but it also destroyed the free vehicle of a other player. Can somebody tell me how I could fix this so it only removes the vehicle from 1 players? Client-side: Server-side: Already solved! I used:
  13. Where can I find the script/resource that creates the "login: You successfully logged in" when logged in?
  14. Hi, Is it possible to disable the /register and /login command? I have created a login system for my server but I don't want players to login by command.
  15. I'm scripting a police job for my server, how can i force a player to follow a other player? Like arresting a criminal.
  16. Hello everybody! Today I downloaded MTA again to start a fresh new server. But when I started the server console I got a error saying: INFO: MAPMANAGER: Some important ACL permissions are missing. To ensure the correct functioning of Mapmanager, please write: aclrequest allow mapmanager So I did aclrequest allow mapmanager but I still receive the error everytime I start my server. Does anybody has a solution to this problem?
  17. I mean in which resource i could find this function so i can edit it.
  18. Hi, does somebody know where i can find the teamchat function?
  19. Doesn't work.. Debug says on vehicle detach: Bad argument @ 'setElementParent' [Expected element at argument 2, got nil]
  20. Is it possible to clear/remove the setElementParent? function onVehAttach(towTruck) setElementParent ( towTruck, source ) outputChatBox ("Debug Line") end addEventHandler("onTrailerAttach", getRootElement(), onVehAttach) function onVehDetach(towTruck) clearElementParent ( towTruck, source ) -- I know this function doesn't exist but it's just a example. end addEventHandler("onTrailerDetach", getRootElement(), onVehDetach)
×
×
  • Create New...