Smart.
Members-
Posts
340 -
Joined
-
Last visited
Everything posted by Smart.
-
I would suggest creating something easy at the very start. Create a GUI, script it's functionality just some easy shit. Then learn how to use markers example, how to trigger an event. That's my tips.
-
There is a solution, the icon should be visible on f11. The thing you need to remove is: setBlipVisibleDistance look for it inside the .lua files. (CTRL + F)
-
Search after: zomb = createPed in the server sided file. then add this under it and then create spawns as they were in the default dimension ( like you did above ) setElementDimension ( zomb, 2 )
-
You can't request us to script it for you, you will either need to pay someone to do it, find a resource at the community site or lean lua yourself. https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
I would suggest looking into tables as all those or id == is a mindfuck
-
I hardly think any scripter will work for free.
-
setRadioVolume does not exist. it should be: setSoundVolume also, getRadioChannel(thePlayer) would only retrieve which channel you are listening to, read the example.
-
Hello. I've made a help panel which is meant to support several languages and I wonder if you could translate it for me. Languages I need help with: Deutsch Nederlands Polski Soumi Slovenski Eesti Latvijas Danske Norsk Italiano Filipino Bbahasa indonesia Tounisian Arabic Espanol The text you need to translate: 1. Do not DeathMatch. Deatchmatching is when you attack another plyer without a reason. Revenge killing does also count as DeathMatch (DM) 2. Listen and follow whatever the Staffs tell you to. Staff may be identified by the [NAME] tag 3. Treat people nicely, to make the game experience funnier for us all. 4. Speak English in Main and Team chat at all time. 5. Do not camp at busy places, such as Hospitals, Police Stations.. 6. Do not speak of any other server, it will be considered as advertising which is strictly forbidden. 7. Do not spam or flood the chat in any way. 8. Do not impersonate another player, or group. 9. Do not request unfair advantage. 10. All use of bugs / exploiting is strictly forbidden and may lead to a permanent ban. 11. Do not disturb/arrest staffs, if you do so while they are on duty, they have the right to jail you. 12. Do not evade staffs when they are trying to talk with you. - http://pastebin.com/JUFXH2ts I would really appreciate your help
-
a tip, use localPlayer instead of getLocalPlayer()
-
Oh, too bad if it was something related to RPG I'd love to help you :>
-
What kind of gamemode is this?
-
That is one messy code.. anyhow /debugscript 3 and please, might tell us what's wrong / not working? anyhow.. try: editBox = guiCreateEdit(0.0229,0.0579,0.8015,0.9097,"",true,windows) instead of: editBox = guiCreateMemo(0.0229,0.0579,0.8015,0.9097,"",true,windows)
-
I wouldn't suggest doing this, I would suggest using: function randomFunction(button) if (button) ~= "left" then return end if (source == closeButtonn) then guiSetVisible( yourGUIElement, false) elseif ( source == someGUIElement ) then --something end end addEventHandler("onClientGUIClick", resourceRoot, randomFunction, true)
-
./mta-server
-
Why not try? But to answer your questions, yes it should. It takes the players money, and updates is every 2.5 seconds.
-
To place a blip on the map from the begging you have to script it (?) That resource he gave you is basically the same as createBlip just that you need to use the export function exports.customblips:createCustomBlip ( 0,0, 20, 20, "icon.png" )
-
Helped him over skype, the problem was he had button5 = guiCreateButton(236,104,211,71,"Minigun" /n/ "6000$",false,window) where it's supposed to be button5 = guiCreateButton(236,104,211,71,"Minigun\n6000$",false,window)
-
try, server: cmarker = createMarker (2069.53760, -1628.82056, 12.87616, "cylinder", 2, 255, 255, 0, 50 ) function jup() triggerClientEvent( "myevent", source) -- you need to read the arguments kenix said. end addEventHandler("onMarkerHit", cmarker, jup)
-
Are you sure the correct ports are open?
-
local getLocalPlayer() = localPlayer is totally useless, localPlayer is already a predefined variable. also addEventHandler("onClientPlayerWasted", getLocalPlayer(), -- same here, use localPlayer instead of getLocalPlayer() https://wiki.multitheftauto.com/wiki/Pre ... ables_list
-
You would need to add an event clientsided, where the GUIEditor thingy is. Then you need to trigger the client event. client: addEvent ( "myEvent", true ) function myEvent () -- your code end addEventHandler ( "myEvent", root, myEvent ) server: function e ( ) local money = getPlayerMoney ( source ) if ( money >= 15000 ) then takePlayerMoney ( source, 15000 ) local Skins = xmlCreateFile("skins.xml","Propietarios") local propietarios = xmlCreateChild(Skins, "owners") triggerClientEvent ( "myEvent", source ) xmlSaveFile( Skins ) else outputChatBox ( " tu Dinero es ".. money .." y necesitas $15000 para comprarte un skin." ) end end addEvent ( "qtm", true ) addEventHandler ( "qtm", root, e ) if I have understood it all correct.
-
triggerClientEvent triggerServerEvent ?
