MontiVante Posted October 29, 2017 Share Posted October 29, 2017 (edited) function rights () outputChatBox("", getRootElement(), 0, 255, 0, false) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),rights) function permission (source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Staff")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then triggerClientEvent(source, "openAdmin", getRootElement()) end end addCommandHandler("mod", permission) function info (player) info = {} local user = getPlayerFromName(player) if not isGuestAccount(getPlayerAccount(user)) then local username = getAccountName(getPlayerAccount(user)) local team = getTeamName(getPlayerTeam(user)) local wanted = getPlayerWantedLevel(user) local ip = getPlayerIP(user) local serial = getPlayerSerial(user) local money = getPlayerMoney(user) local veh = getVehicleName(getPedOccupiedVehicle(user)) triggerClientEvent(source, "sendInformationClient",root,username,team,wanted,ip,serial,money,veh) end end addEvent("sendInfoServer", true) addEventHandler("sendInfoServer", getRootElement(), info) function mute (client) player = getPlayerFromName(client) if isPlayerMuted(player) == false then setPlayerMuted(player, true) outputChatBox(getPlayerName(player).." has been muted by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPlayerMuted(player) == true then setPlayerMuted(player, false) outputChatBox(getPlayerName(player).." has been unmuted by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("mutePlayer", true) addEventHandler("mutePlayer", getRootElement(), mute) function freeze (client) player = getPlayerFromName(client) if isPedFrozen(player) == false then setElementFrozen(player, true) outputChatBox(getPlayerName(player).." has been frozen by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPedFrozen(player) == true then setElementFrozen(player, false) outputChatBox(getPlayerName(player).." has been unfrozen by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("freezePlayer", true) addEventHandler("freezePlayer", getRootElement(), freeze) function warpto (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(player) if isPedInVehicle(source) == true then removePedFromVehicle(source,getPedOccupiedVehicle(source)) setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) elseif isPedInVehicle(source) == false then setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) end end addEvent("warptoPlayer", true) addEventHandler("warptoPlayer", getRootElement(), warpto) function warphere (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(source) if isPedInVehicle(player) == true then removePedFromVehicle(player,getPedOccupiedVehicle(player)) setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) elseif isPedInVehicle(player) == false then setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) end end addEvent("warpPlayerhere", true) addEventHandler("warpPlayerhere", getRootElement(), warphere) function killgay (gay) setElementHealth(getPlayerFromName(gay),0) end addEvent("kill:O", true) addEventHandler("kill:O", getRootElement(), killgay) function wantedlvl (client, amount) player = getPlayerFromName(client) setPlayerWantedLevel(player, amount) outputChatBox(getPlayerName(player).."'s wanted level has been changed to "..amount.." by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) end addEvent("setPlayerwanted", true) addEventHandler("setPlayerwanted", getRootElement(), wantedlvl) function kickgay (client, respon, reason) player = getPlayerFromName(client) kickPlayer(player, respon, reason) outputChatBox(getPlayerName(player).." has been kicked by "..getPlayerName(respon), getRootElement()) end addEvent("kickPlayeraway", true) addEventHandler("kickPlayeraway", getRootElement(), kickgay) function setskin (client, ID) player = getPlayerFromName(client) setElementModel(player, ID) outputChatBox("Your skin has been changed to "..ID.." by "..getPlayerName(source), player, 255, 255, 0, false) end addEvent("setPlayerskin", true) addEventHandler("setPlayerskin", getRootElement(), setskin) function setHP (client, amount) player = getPlayerFromName(client) setElementHealth(player, amount) outputChatBox("Your health has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerhealth", true) addEventHandler("setPlayerhealth", getRootElement(), setHP) function setArmor (client, amount) player = getPlayerFromName(client) setPedArmor(player, amount) outputChatBox("Your armor has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerarmor", true) addEventHandler("setPlayerarmor", getRootElement(), setArmor) function announce (text) outputChatBox("*ADMIN* "..text, getRootElement(), 255, 0, 0, false) end addEvent("adminAnnounce", true) addEventHandler("adminAnnounce", getRootElement(), announce) function destroycar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then destroyElement(car) outputChatBox("Your car has been destroyed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have destroyed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("destroyveh", true) addEventHandler("destroyveh", getRootElement(), destroycar) function fixcar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then fixVehicle(car) outputChatBox("Your car has been fixed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have fixed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("fixveh", true) addEventHandler("fixveh", getRootElement(), fixcar) hello good before all this script is mine only to edit it to make it panel moderator l have a problem that only to open the panel is addCommandHandler and I have done many BindKey functions and then I would like someone to help me make the bindKey and be able to Positioning to the "Server.Lua" what I just put there is all the Server.Lua and want to position the bindkey somewhere but that is on the Server.Lua Help Please I do. Edited October 29, 2017 by santinet12 1 Link to comment
Moderators IIYAMA Posted October 29, 2017 Moderators Share Posted October 29, 2017 How can we help you if we aren't allow to edit the code? The information is badly translated, I can't understand anything of it. Don't be a racist. It is really NOT OK to post racist content inside your code. 2 Link to comment
MontiVante Posted October 30, 2017 Author Share Posted October 30, 2017 I come to help me not to give me policy or orders. what I'm asking here is some help for the bindkey to be able to open the panel already with that you understand Link to comment
Fist Posted October 31, 2017 Share Posted October 31, 2017 On 10/29/2017 at 16:15, IIYAMA said: How can we help you if we aren't allow to edit the code? The information is badly translated, I can't understand anything of it. Don't be a racist. It is really NOT OK to post racist content inside your code. I don't see him being any racist in within that code. Only what i see he used "gay" word instead of "guy" as judging off his grammar, he surely doesn't understand difference between "gay" and "guy"... Oh btw, if you didn't know, "gay" is not a race. Link to comment
Moderators IIYAMA Posted October 31, 2017 Moderators Share Posted October 31, 2017 1 minute ago, Fist said: I don't see him being any racist in within that code. Only what i see he used "gay" word instead of "guy" as judging off his grammar, he surely doesn't understand difference between "gay" and "guy"... Oh btw, if you didn't know, "gay" is not a race. He puts everything through Google translate, to hell Google translate does that for him. Or the word 'guy' is his country must mean the same as 'gay', which I seriously doubt. @santinet12 There are a lot of examples of how to use the bindkey functions in here: https://wiki.multitheftauto.com/wiki/BindKey Why don't you start with applying and modifying example 1 in to your code? Link to comment
dex. Posted October 31, 2017 Share Posted October 31, 2017 bindKey ("f5", permission) Link to comment
MontiVante Posted November 2, 2017 Author Share Posted November 2, 2017 and tried to do many bindkey and almost the majority does not work that I do help Link to comment
Moderators IIYAMA Posted November 2, 2017 Moderators Share Posted November 2, 2017 (edited) function bindKeysForPlayer (player) bindKey (player, "f2", fixcar) -- put here the bind keys end addEventHandler("onPlayerJoin", root, function () bindKeysForPlayer (source) end) addEventHandler("onResourceStart", resourceRoot, function () local players = getElementsByType("player") for i=1, #players do bindKeysForPlayer (players[i]) end end) Here you have an example to fix your car with f2. You can expand it as far as you want. Edited November 2, 2017 by IIYAMA Link to comment
dex. Posted November 3, 2017 Share Posted November 3, 2017 function permission (source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Staff")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then triggerClientEvent(source, "openAdmin", getRootElement()) end end bindKey("f5", permission) Link to comment
Ahmed Ly Posted November 4, 2017 Share Posted November 4, 2017 -- Clinet bindKey("F5","down", function() triggerServerEvent("open",localPlayer) end ) addEvent("open2",true) addEventHandler("open2",root, function (text,bool) if guiGetVisible(Window) == false then guiSetVisible(Window,bool) showCursor(bool) outputChatBox(""..text.."",255,0,0) else guiSetVisible(Window,false) showCursor(false) end end ) -- Server addEvent("open",true) addEventHandler("open",root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then triggerClientEvent(source,"open2",source,"welcome",true) end end ) Link to comment
MontiVante Posted November 4, 2017 Author Share Posted November 4, 2017 not working bro Link to comment
Moderators IIYAMA Posted November 4, 2017 Moderators Share Posted November 4, 2017 4 minutes ago, santinet12 said: not working bro Where is your next attempt bro? We didn't even see what you did with our code. It is almost as if you are not working either. Link to comment
MontiVante Posted November 4, 2017 Author Share Posted November 4, 2017 You say that I do not work because that's why I ask for help because I have made many attempts at bindkeys and the codes that have passed me are not useful and you understand that if I show you how I put their codes there is what I do is lose their time Link to comment
ZuKi|R Posted November 4, 2017 Share Posted November 4, 2017 (edited) Intenta de esta manera. function rights () outputChatBox("", getRootElement(), 0, 255, 0, false) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),rights) --------------------- function OpenPanel(source) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) triggerClientEvent (source, "openAdmin", source) end end addCommandHandler("control", OpenPanel) addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "m", "down", OpenPanel ) end end) addEventHandler ( "onPlayerLogin", getRootElement(), function () bindKey ( source, "m", "down", OpenPanel ) end) addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "m", "down", OpenPanel ) end end) --------------------------- function info (player) info = {} local user = getPlayerFromName(player) if not isGuestAccount(getPlayerAccount(user)) then local username = getAccountName(getPlayerAccount(user)) local team = getTeamName(getPlayerTeam(user)) local wanted = getPlayerWantedLevel(user) local ip = getPlayerIP(user) local serial = getPlayerSerial(user) local money = getPlayerMoney(user) local veh = getVehicleName(getPedOccupiedVehicle(user)) triggerClientEvent(source, "sendInformationClient",root,username,team,wanted,ip,serial,money,veh) end end addEvent("sendInfoServer", true) addEventHandler("sendInfoServer", getRootElement(), info) function mute (client) player = getPlayerFromName(client) if isPlayerMuted(player) == false then setPlayerMuted(player, true) outputChatBox(getPlayerName(player).." has been muted by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPlayerMuted(player) == true then setPlayerMuted(player, false) outputChatBox(getPlayerName(player).." has been unmuted by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("mutePlayer", true) addEventHandler("mutePlayer", getRootElement(), mute) function freeze (client) player = getPlayerFromName(client) if isPedFrozen(player) == false then setElementFrozen(player, true) outputChatBox(getPlayerName(player).." has been frozen by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPedFrozen(player) == true then setElementFrozen(player, false) outputChatBox(getPlayerName(player).." has been unfrozen by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("freezePlayer", true) addEventHandler("freezePlayer", getRootElement(), freeze) function warpto (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(player) if isPedInVehicle(source) == true then removePedFromVehicle(source,getPedOccupiedVehicle(source)) setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) elseif isPedInVehicle(source) == false then setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) end end addEvent("warptoPlayer", true) addEventHandler("warptoPlayer", getRootElement(), warpto) function warphere (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(source) if isPedInVehicle(player) == true then removePedFromVehicle(player,getPedOccupiedVehicle(player)) setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) elseif isPedInVehicle(player) == false then setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) end end addEvent("warpPlayerhere", true) addEventHandler("warpPlayerhere", getRootElement(), warphere) function killgay (gay) setElementHealth(getPlayerFromName(gay),0) end addEvent("kill:O", true) addEventHandler("kill:O", getRootElement(), killgay) function wantedlvl (client, amount) player = getPlayerFromName(client) setPlayerWantedLevel(player, amount) outputChatBox(getPlayerName(player).."'s wanted level has been changed to "..amount.." by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) end addEvent("setPlayerwanted", true) addEventHandler("setPlayerwanted", getRootElement(), wantedlvl) function kickgay (client, respon, reason) player = getPlayerFromName(client) kickPlayer(player, respon, reason) outputChatBox(getPlayerName(player).." has been kicked by "..getPlayerName(respon), getRootElement()) end addEvent("kickPlayeraway", true) addEventHandler("kickPlayeraway", getRootElement(), kickgay) function setskin (client, ID) player = getPlayerFromName(client) setElementModel(player, ID) outputChatBox("Your skin has been changed to "..ID.." by "..getPlayerName(source), player, 255, 255, 0, false) end addEvent("setPlayerskin", true) addEventHandler("setPlayerskin", getRootElement(), setskin) function setHP (client, amount) player = getPlayerFromName(client) setElementHealth(player, amount) outputChatBox("Your health has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerhealth", true) addEventHandler("setPlayerhealth", getRootElement(), setHP) function setArmor (client, amount) player = getPlayerFromName(client) setPedArmor(player, amount) outputChatBox("Your armor has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerarmor", true) addEventHandler("setPlayerarmor", getRootElement(), setArmor) function announce (text) outputChatBox("*ADMIN* "..text, getRootElement(), 255, 0, 0, false) end addEvent("adminAnnounce", true) addEventHandler("adminAnnounce", getRootElement(), announce) function destroycar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then destroyElement(car) outputChatBox("Your car has been destroyed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have destroyed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("destroyveh", true) addEventHandler("destroyveh", getRootElement(), destroycar) function fixcar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then fixVehicle(car) outputChatBox("Your car has been fixed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have fixed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("fixveh", true) addEventHandler("fixveh", getRootElement(), fixcar) 2 minutes ago, ZuKi|R said: Intenta de esta manera. function rights () outputChatBox("", getRootElement(), 0, 255, 0, false) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),rights) --------------------- function OpenPanel(source) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) triggerClientEvent (source, "openAdmin", source) end end addCommandHandler("control", OpenPanel) addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "m", "down", OpenPanel ) end end) addEventHandler ( "onPlayerLogin", getRootElement(), function () bindKey ( source, "m", "down", OpenPanel ) end) addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "m", "down", OpenPanel ) end end) --------------------------- function info (player) info = {} local user = getPlayerFromName(player) if not isGuestAccount(getPlayerAccount(user)) then local username = getAccountName(getPlayerAccount(user)) local team = getTeamName(getPlayerTeam(user)) local wanted = getPlayerWantedLevel(user) local ip = getPlayerIP(user) local serial = getPlayerSerial(user) local money = getPlayerMoney(user) local veh = getVehicleName(getPedOccupiedVehicle(user)) triggerClientEvent(source, "sendInformationClient",root,username,team,wanted,ip,serial,money,veh) end end addEvent("sendInfoServer", true) addEventHandler("sendInfoServer", getRootElement(), info) function mute (client) player = getPlayerFromName(client) if isPlayerMuted(player) == false then setPlayerMuted(player, true) outputChatBox(getPlayerName(player).." has been muted by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPlayerMuted(player) == true then setPlayerMuted(player, false) outputChatBox(getPlayerName(player).." has been unmuted by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("mutePlayer", true) addEventHandler("mutePlayer", getRootElement(), mute) function freeze (client) player = getPlayerFromName(client) if isPedFrozen(player) == false then setElementFrozen(player, true) outputChatBox(getPlayerName(player).." has been frozen by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPedFrozen(player) == true then setElementFrozen(player, false) outputChatBox(getPlayerName(player).." has been unfrozen by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("freezePlayer", true) addEventHandler("freezePlayer", getRootElement(), freeze) function warpto (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(player) if isPedInVehicle(source) == true then removePedFromVehicle(source,getPedOccupiedVehicle(source)) setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) elseif isPedInVehicle(source) == false then setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) end end addEvent("warptoPlayer", true) addEventHandler("warptoPlayer", getRootElement(), warpto) function warphere (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(source) if isPedInVehicle(player) == true then removePedFromVehicle(player,getPedOccupiedVehicle(player)) setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) elseif isPedInVehicle(player) == false then setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) end end addEvent("warpPlayerhere", true) addEventHandler("warpPlayerhere", getRootElement(), warphere) function killgay (gay) setElementHealth(getPlayerFromName(gay),0) end addEvent("kill:O", true) addEventHandler("kill:O", getRootElement(), killgay) function wantedlvl (client, amount) player = getPlayerFromName(client) setPlayerWantedLevel(player, amount) outputChatBox(getPlayerName(player).."'s wanted level has been changed to "..amount.." by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) end addEvent("setPlayerwanted", true) addEventHandler("setPlayerwanted", getRootElement(), wantedlvl) function kickgay (client, respon, reason) player = getPlayerFromName(client) kickPlayer(player, respon, reason) outputChatBox(getPlayerName(player).." has been kicked by "..getPlayerName(respon), getRootElement()) end addEvent("kickPlayeraway", true) addEventHandler("kickPlayeraway", getRootElement(), kickgay) function setskin (client, ID) player = getPlayerFromName(client) setElementModel(player, ID) outputChatBox("Your skin has been changed to "..ID.." by "..getPlayerName(source), player, 255, 255, 0, false) end addEvent("setPlayerskin", true) addEventHandler("setPlayerskin", getRootElement(), setskin) function setHP (client, amount) player = getPlayerFromName(client) setElementHealth(player, amount) outputChatBox("Your health has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerhealth", true) addEventHandler("setPlayerhealth", getRootElement(), setHP) function setArmor (client, amount) player = getPlayerFromName(client) setPedArmor(player, amount) outputChatBox("Your armor has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerarmor", true) addEventHandler("setPlayerarmor", getRootElement(), setArmor) function announce (text) outputChatBox("*ADMIN* "..text, getRootElement(), 255, 0, 0, false) end addEvent("adminAnnounce", true) addEventHandler("adminAnnounce", getRootElement(), announce) function destroycar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then destroyElement(car) outputChatBox("Your car has been destroyed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have destroyed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("destroyveh", true) addEventHandler("destroyveh", getRootElement(), destroycar) function fixcar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then fixVehicle(car) outputChatBox("Your car has been fixed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have fixed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("fixveh", true) addEventHandler("fixveh", getRootElement(), fixcar) El Bind es la "m" y el comando esta como /control modificalo a tu gusto me avisas si te va o no Edited November 4, 2017 by ZuKi|R Link to comment
Moderators IIYAMA Posted November 4, 2017 Moderators Share Posted November 4, 2017 10 minutes ago, santinet12 said: You say that I do not work because that's why I ask for help because I have made many attempts at bindkeys and the codes that have passed me are not useful and you understand that if I show you how I put their codes there is what I do is lose their time So you are saying that verification is a useless thing? Receiving very different code from 3* people and answer it with 'doesn't work' is 10x worse. They all might work if applied correctly. * Almost 4. Link to comment
MontiVante Posted November 4, 2017 Author Share Posted November 4, 2017 I said that they do not work but that their help was not useless before I ask for thanks for helping me do something you understand zuki|R bro no anda Link to comment
Moderators IIYAMA Posted November 4, 2017 Moderators Share Posted November 4, 2017 5 minutes ago, santinet12 said: I said that they do not work but that their help was not useless before I ask for thanks for helping me do something you understand Time to get started @santinet12, thanking us will even so put our effort in vain. Link to comment
MontiVante Posted November 4, 2017 Author Share Posted November 4, 2017 Well, first of all, if I put your mind, your effort in vain, do not hate me for that Link to comment
Moderators IIYAMA Posted November 4, 2017 Moderators Share Posted November 4, 2017 I wouldn't hate you for that, I am a human after all. But I do hope you are a human too and let one of our efforts not vain. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now