Knuck

Members
  • Content Count

    230
  • Joined

  • Last visited

  • Days Won

    1

Knuck last won the day on September 16

Knuck had the most liked content!

Community Reputation

17 Decent

1 Follower

About Knuck

  • Rank
    Trick
  • Birthday 01/11/2003

Details

  • Gang
    GTA RPG
  • Location
    Antigua
  • Occupation
    LUA Developer
  • Interests
    LUA

Recent Profile Visitors

1,152 profile views
  1. How can i siable a weapon while there is a timer? CODE: elseif (weapon == 42) then if isTimer(cancelTimer["Explosion"]) then return end toggleControl("fire", false) toggleControl("action", false) local tick = getTickCount() enableTime2 = tick+9000 removeEventHandler("onClientRender",root,dxDrawC) addEventHandler("onClientRender",root,dxDrawC) cancelTimer["Explosion"] = setTimer( function() toggleControl("fire", true) toggleControl("action", true) --killTimer(cancelTimer) removeEventHandler("onClientRender",root,dxDrawC) end, 9000, 1 ) I wanna disable grenade while this timer is still there.
  2. Knuck

    Wanted Trigger Tiimer

    Fixed thanks, how can i disable a weapon while a weapon is beeing used
  3. Knuck

    Wanted Trigger Tiimer

    Example. How can i make it only starts trigger. if wanted, like once player get wanted then start timer
  4. Knuck

    Wanted Trigger Tiimer

    function removeEvadeStars(player) setPlayerWantedLevel(player,0) exports.SAEGMessages:sendClientMessage("Evade : You have evaded your stars",player,0,255,0) end addEvent("removeEvadeStars", true) addEventHandler("removeEvadeStars", getRootElement(), removeEvadeStars) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end setTimer(function(player) for k, v in ipairs(getElementsByType("player")) do local wantedLvl = getPlayerWantedLevel (v) if (wantedLvl == 1) then triggerClientEvent(v,"StartEvadeTimer",v) end end end, 1000,0) addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), function() for k, v in ipairs(getElementsByType("player")) do setElementData(v, "rob", false) end end) It constantly restarted the timer how can i stop that @IIYAMA
  5. Knuck

    Wanted Trigger Tiimer

    Hello so i have done a evade script, if your wanted it triggers a timer, just check it and see where i went wrong : CLIENT EVADE addEvent("StartEvadeTimer",true) addEventHandler("StartEvadeTimer",root,function() addEventHandler( "onClientRender", root, showEvadeTime ) Time = 300 tick = getTickCount() end) function showEvadeTime( ) if getElementData( localPlayer, "ArrestedBy" ) or getElementData(localPlayer,"Jailed") == "yes" or isPedDead ( localPlayer ) then removeEventHandler("onClientRender",root,showEvadeTime) return end if getTickCount( )-tick >= 1000 then Time = Time -1 tick = getTickCount() end dxDrawText(Time.." seconds left ", sx*69, sy*728, sx*187, sy*758, tocolor(255, 255, 255, 255), 1.80, "default-bold", "left", "bottom", false, false, false, false, false) if Time <= 0 then removeEventHandler("onClientRender",root,showEvadeTime) triggerServerEvent("removeEvadeStars",localPlayer) end end SERVER function removeEvadeStars(player) setPlayerWantedLevel(player,0) exports.SAEGMessages:sendClientMessage("Evade : You have evaded your stars",player,0,255,0) end addEvent("removeEvadeStars", true) addEventHandler("removeEvadeStars", getRootElement(), removeEvadeStars) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end setTimer(function trigger(player) local wantedLvl = getPlayerWantedLevel (root) if wantedLvl == 3 then triggerClientEvent(player,"StartEvadeTimer",player) end end end, 1000, 0) addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), function() for k, v in ipairs(getElementsByType("player")) do setElementData(v, "rob", false) end end)
  6. Knuck

    Cancel Wanted

    No he helped with some part ill add the rest getElementData(player,"Job","Thugs")
  7. Knuck

    Cancel Wanted

    Gonna test it thanks !
  8. Knuck

    Cancel Wanted

    How does this cancel it 😜
  9. Knuck

    Cancel Wanted

    I want to cancel player wanted levels. like if he or she damages someone else and there in that getelement data, gives no wanted
  10. Knuck

    Cancel Wanted

    hello so i have this thugs script that i made and a turfing system i want to make if player is in turf they cannot get wanted.
  11. GTC RPG GAMING SOCIETY Welcome to the topic of GTC:RPG. GTC:RPG has been created in the early stages of RPG servers in 2018. The server has been just released and is looking for some good players our goals are very big, we inteand to build a server so everyone can enjoy it, the server owner is a arabic developer since 2012 GTC was once SAEC if u can remember it since is has been down @Tanger decided to start it again so here it is. @Tanger with alot of knowledge about MTA and having experience being an MTA Lua programmer member, decided to bring it back with three others.GTC Staff Team Owner - Maxman / Scripter Co - Owners -Casa - Community Managers Head Of Staff - Skymask- Staff Managers Super Moderators - N/A - N/A Senior Moderators -Pinkman N/A Moderators -SpecialBoy - Moderator of the server Junior Moderator - N/A - N/A Trial Moderators -Savage Inactivity -N/A GTC :RPG creates it's own scripts, thanks to LilDawage for scripting and putting alot of time into it. This topic will give you an overview about what we've done so far and what we're based on. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Custom Titles Welcome to Grand Theft Cummunities official custom title script made by skymask. Information? Wish to purchase your own title? contact an owner or any TMT- Tittle Management Team! ~ Prices ~ Normal Title - IG $ : 5.5m -50 cent Title with Designs - IG $ : 6m IRL $ : 1$ ~ Commands ~ "custom_titles" Command to change Title Colour? "titlecolor r g b " example " titlecolor 255 255 255 " ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Job Stats ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Welcome to Grand Theft Cummunity Job Stats Information? Wish to upgrade your perks?? Work as the jobs given in the panel ! ~ Gangster ~ Hack an ATM ~ 4-5k VIP? ~ 5K-10k Rob Stores ~ 4-5k VIP? ~ 5K-10k Hack ATM ~ 4-5k VIP? ~ 5K-10k ~ Picture ~ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- GTC RPG Free for All Event ~~~ Features of the FFA Event ~~~~ 1. The players travel over an area in a plane and they must press an key to jump out 2. Once they land and the event is started, they can find items arround map 3. All killing is allowed, 4. This event is based on PUBG Welcome to the FFA event ! this event is like pubg but for mtasa you must survive and kill as much people as you can if you win the staffs will reward you with a prize of there choice so play hard and enjoy - Skymask ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ~ Thugs ~ Thugs ? what is it? well its a simple job Thugs~ this job you can use to turf the areas in the map it is also like a gangster, you can rob and hack atm with this job thugs cannot kill gangsters and gangsters cannot kill criminals. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- CONNECTION Server is developing! IP : mtasa://134.119.223.179:5 This is it for now, I'll keep on updating this topic to keep the community updated about the stuff happening right now. Feel free to join our discord and forum: https://discord.gg/Rgvy6KV http://gtcrpg.ml/ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  12. Knuck

    [DUDE]Raw Data in Execute Command

    explain more.
  13. Good luck mate, it looks real cool
  14. Knuck

    MTA Progress Bar

    local lol = guiProgressBarGetProgress(progress) setTimer( guiProgressBarSetProgress, 5000, 1,progress,lol+10 ) setTimer( guiProgressBarSetProgress, 10000, 1,progress,lol+20 ) setTimer( guiProgressBarSetProgress, 15000, 1,progress,lol+30 ) setTimer( guiProgressBarSetProgress, 20000, 1,progress,lol+40 ) setTimer( guiProgressBarSetProgress, 25000, 1,progress,lol+50 ) setTimer( guiProgressBarSetProgress, 30000, 1,progress,lol+60 ) setTimer( guiProgressBarSetProgress, 35000, 1,progress,lol+70 ) setTimer( guiProgressBarSetProgress, 40000, 1,progress,lol+80 ) setTimer( guiProgressBarSetProgress, 45000, 1,progress,lol+90 ) setTimer( guiProgressBarSetProgress, 50000, 1,progress,lol+100 ) @LyricalMM