Jump to content

FlorjanMTARP

Members
  • Content Count

    56
  • Joined

  • Last visited

Community Reputation

0 Neutral

About FlorjanMTARP

  • Rank
    Snitch
  • Birthday 22/07/1998

Details

  • Gang
    www.mta-roleplay.com
  • Location
    Slovenia
  • Occupation
    School
  1. What was the problem If I may ask? I am also working on a similar browser but the video never starts from youtube.-.
  2. FlorjanMTARP

    MTA 1.4

    Happens to me either! This will probably get fixed in the upcoming version of MTA.
  3. Lately I was messing with gui editor and I have figured out an awesome idea. The only problem is I don't know how to deal with it. What I want to do: I've made a gui with Tab Panels "Types of Horns" , won't say them all. Well, I want to allow players to buy a horn and once they buy it it will setElementData that the system knows that he bought it. Means, If he reconnects he will still have that one. I JUST NEED AN EXAMPLE, NOR A COMPLETE SCRIPT! Don't worry about sounds, Just if you are willing to edit my code below please write everything. I know how to edit stuff and also deal with stu
  4. I've been dealing with this guiSetVisible for 30min .
  5. I removed it because when It was wrote, The GUI was just showing all the time. So there weren't any solutions and I've also tried renaming the marker, probably. I want it to popup onClientMarkerHit. <- Not to be rude
  6. Please before you comment stuff, you should know that I am 13 years old and I'm a web programmer (decent) HTML,CSS and PHP. I want to get to known Lua since I'm also helping my friend make a server. I've used GUI Editor to make a GUI for an upcoming Garage System and when I enter the marker nothing shows up. No errors, No outputs, nothing. --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not
  7. I know tosfera and thanks Solidsnake. Tosfera I made some cool scripts already and I want to work better from now. Thanks giuseppe.
  8. Thank you Solidsnake, I appreciate yourhelp. AND ALSO Thanks Saml1er. EDIT) It does nothing ingame when I use LMB or RMB on another player. I've set it clientsided.
  9. Saml1er thank you but do I have to create the ped firstly?
  10. I was wondering for the past few days, how to make a GUI show up when you right click a ped? Are there any resources samples? Sincerely, Florjan.
  11. Well title says it. The first GUI that shows in marker; --------------------------||Open Source||-------------------------- ------------------------------------------------------------------- function createHauptGUI() local X = 0.3 local Y = 0.7 local Width = 0.4 local Height = 0.17 HauptGUI = guiCreateWindow(X, Y, Width, Height,"Garage Menu", true) X = 0.5 Y = 0.5 Width = 0.45 Height = 0.4 btnmyGarages = guiCreateButton(X, Y, Width, Height, "Own Garage", true, HauptGUI) X = 0.03 Y = 0.5 Width = 0.45 Heig
  12. It still doesn't go up, neither down. I get in the marker and nothing happens. No errors and stuff. server: local gate = createObject(17951, 1556.36, -2348.79, 13.54, 0, 0, 180) local marker = createMarker(1554, -2348.79, 12.54, "cylinder", 2, 255, 255, 255, 255) local garage = createObject(17950, 1560.36, -2348.79, 13.54, 0, 0, 90) addEventHandler ( 'onPlayerMarkerHit', marker, function ( ) if ( getAccountName(getPlayerAccount(source)) == 'Florjan22') then moveObject(gate, 5000, 1556.36, -2348.79, 16.54) end end )
  13. It does nothing doesn't work, I go in marker and I'm logged in and won't work. local gate = createObject(17951, 1556.36, -2348.79, 13.54, 0, 0, 180) local marker = createMarker(1554, -2348.79, 12.54, "cylinder", 2, 255, 255, 255, 255) local garage = createObject(17950, 1560.36, -2348.79, 13.54, 0, 0, 90) function moveGate() if getAccountName(getPlayerAccount(source)) == "Florjan22" then moveObject(gate, 5000, 1556.36, -2348.79, 16.54) end end addEventHandler("onPlayerMarkerHit", marker, moveGate) function move
  14. Client; local gate = createObject(17951, 1556.36, -2348.79, 13.54, 0, 0, 180) local marker = createMarker(1554, -2348.79, 12.54, "cylinder", 2, 255, 255, 255, 255) local garage = createObject(17950, 1560.36, -2348.79, 13.54, 0, 0, 90) function moveGate() if getAccountName(getPlayerAccount(player)) == "Florjan22" then moveObject(gate, 5000, 1556.36, -2348.79, 16.54) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 1556.36, -2348.79, 13.54) end
×
×
  • Create New...