-
Posts
10,056 -
Joined
-
Days Won
27
Everything posted by iPrestege
-
Try this; https://nightly.multitheftauto.com/?mtasa-1.5-latest
-
setVehicleColor
-
This tool may help you if you still doesn't want to use the console.
-
This isn't necessary or useful using console isn't that bad i think it's easier to modify errors if there's.
-
maybe this will help you!
-
ماتقدر تسجل صوت في MTA * حسب علمي
- 16 replies
-
- 1
-
Check : Hello World MTA Community GTA:SA getAccountData setAccountData -- My On SPAM Topic :ds K
-
Why you want to put the player position inside the vehicle for what? because i'm not sure it's possible but there's another way to do it like this maybe are you trying to do something like this? it's a ped inside the vehicle with a camera view : I've used : setElementCollidableWith @Xwad
-
You mean the seat in the vehicle? You can use this optional argument : seat: An integer representing the seat ID. 0 represents the driver, any higher represent passenger seats. For warpPedIntoVehicle
-
الكتابة بالشات جاهز؟ اسهل شيء هو : -- Client outputChatBox ( string text [,int r=231, int g=217, int b=176, bool colorCoded=false ] ) -- Server outputChatBox ( string text [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] )
-
Can you post how are you using this script please? maybe there's something wrong with argument's?
-
heh? script using these functions and events open the wiki
-
addEventHandler('onPlayerJoin' ) addEventHandler('onPlayerLogin' ) createTeam setPlayerTeam
-
wiki : https://wiki.multitheftauto.com/wiki/Vehicle_Upgrades
-
You are welcome please check my post again i have added a setElementData when the resource start to set the data to true so the players can't warp.
-
open fr_client.lua > search for bindKey for the freeroam which will be like this maybe in your file between line 1500-1650 you will find this function : addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot) end ) -- JUST ADD THIS LINE UNDER THE FALLOFF CHECKBOX SET SELECTED LIKE THIS : guiCheckBoxSetSelected(getControl(wndMain, 'Warp'),true) addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'Warp'),true) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot) end ) And replace this function : function warponoff ( ) if guiCheckBoxGetSelected ( getControl ( wndMain,'Warp' ) ) then setElementData ( localPlayer,'IsWarpLocked',false ) else setElementData ( localPlayer,'IsWarpLocked',true ) end end -- To function warponoff ( ) if guiCheckBoxGetSelected ( getControl ( wndMain,'Warp' ) ) then setElementData ( localPlayer,'IsWarpLocked',true ) else setElementData ( localPlayer,'IsWarpLocked',false ) end end -- JUST Change the data false to true and true to false replace between them. EDIT + Add : addEventHandler('onClientResourceStart', g_ResRoot, function() fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) guiCheckBoxSetSelected(getControl(wndMain, 'Warp'),true) setElementData ( localPlayer,'IsWarpLocked',true ) triggerServerEvent('onLoadedAtClient', g_ResRoot) end ) You have to do this to set the data to true so they can't warp when the resource start.
-
Actually i'm not getting exactly what are you trying to do but i think you are editing the score board so use the exported functions : addScoreboardColumn setElementData And if you mean teams? use createTeam onPlayerLogin onPlayerLogout setPlayerTeam
-
Try this in client : function warponoff ( ) if guiCheckBoxGetSelected ( getControl ( wndMain,'Warp' ) ) then setElementData ( localPlayer,'IsWarpLocked',true ) else setElementData ( localPlayer,'IsWarpLocked',false ) end end Don't put this under the main window table put it in the top or some where in there. In server side : function warpMe(targetPlayer) if isPedDead(source) then spawnMe() end if getElementData ( targetPlayer,'IsWarpLocked' ) == true then outputChatBox ( 'Ez a játékos nem engedte meg, hogy rá warpoljanak!', source,255,0,0 ) return end local vehicle = getPedOccupiedVehicle(targetPlayer) local interior = getElementInterior(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) setElementInterior(source, interior) setCameraInterior(source, interior) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end setElementInterior(source, interior) setCameraInterior(source, interior) warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. '\'s vehicle.', source, 255, 0, 0) end end There's no need for the trigger and remove element data just do as what i say and it should work fine.
-
Go to the freeroam resource open fr_client.lua go to line 1522 and add this under fall of bike : { 'chk',id = 'StealthKill',text = 'Disable Knifing',onclick = toggleStealthKill }, { 'br' }, And in the last of the file the same file fr_client.lua use this function to toggleStealthKill : --------------------------- -- Knifing toggle --------------------------- function toggleStealthKill ( ) if guiCheckBoxGetSelected ( getControl ( wndMain,'StealthKill' ) ) and not kinfeKill then outputChatBox ( 'Server: Knife Godmode On!', 0,255,0 ) else outputChatBox ( 'Server: Knife Godmode Off!',255,0,0 ) end kinfeKill = not kinfeKill end addEventHandler ( 'onClientPlayerStealthKill',localPlayer, function ( ) if kinfeKill then cancelEvent ( ) end end ) Try this.
-
Actually it's not a radio button it's a check-box use : guiCheckBoxGetSelected Instead of guiRadioButtonGetSelected
-
No that's not true not because of that you can buy only for one week and you can't re-new unless your week finished and you are down to your regular position about cit i don't know how they are in the top maybe old server or something like that.