Jump to content
Fivem-DEV.cz

VojtaNN

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

1 Nováček

About VojtaNN

  • Rank
    Nováček

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Download link: https://mega.nz/file/BGABUAwb#bHP3SPTKkw2qVMsjszey_Ac7YYy2qZWVUZlQCTgCowo Commandy : /pripnout /odepnout
  2. Děkuji za odpověď upravím si původní script, ale ještě 1 malá otázka. Jak se dá udělat aby animace běžela v loopu
  3. Ahoj, sháním job na vinaře ve kterém by bylo možné sbírat jak červené víno tak i bílé.
  4. VojtaNN

    esx_advancedgarage

    Jde udělat aby když hráč uloží loď do garáže, tak aby ho to teleportovalo na určitou nastavenou pozici?
  5. VojtaNN

    esx billing

    Dobrý den, když PD dá fakturu hráči tak ji daný hráč nedostane a v consoli to napíše tento ERROR: [ERROR] [MySQL] An error happens on MySQL for query "INSERT INTO billing (identifier, sender, target_type, target, label, amount) VALUES (@identifier, @sender, @target_type, @target, @label, @amount) {@sender=steam:11000011b3640d1;@target_type=society;@label=Amende: Nezastaveni na svetelne kriĹľovatce;@identifier=steam:110000107b94108;@amount=1000;@target=society_gouvernor}": Incorrect string value: '\xC4\xB9\xC4\xBEov...' for column `s3959_LARP`.`billing`.`label` at row 1
  6. server/main.lua __________________________________________________________________________________________________________________________ ESX = nil Tasks = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) TriggerEvent('es:addCommand','doc',function(source, args, user) if args[1] == nil then TriggerClientEvent('chat:addMessage', source, { args = { '^1Chyba', 'Prosim pouzijte /doc 1-20!' } }) else local number = tonumber(args[1]) if Tasks[source] then TriggerClientEvent('chat:addMessage', source, { args = { '^1Chyba', 'Nelze spustit /doc vícekrát' } }) return end if number > 20 or number < 1 then TriggerClientEvent('chat:addMessage', source, { args = { '^1Chyba', 'Prosim pouzijte /doc 1-20!' } }) return end if math.floor(number) ~= number then TriggerClientEvent('chat:addMessage', source, { args = { '^1Chyba', 'Prosim pouzijte /doc 1-20!' } }) return end if Tasks[source] == nil then Tasks[source] = {} end Tasks[source] = {times = number, current = 0, source = source} end end, {}) local function startChatTimer() SetTimeout(1000,function() for k,v in pairs(Tasks) do v.current = v.current + 1 Tasks[k] = v TriggerClientEvent('sendProximityMessage', -1, v.source, _U('do_prefix', GetCharacterName(v.source)), tostring(v.current).." / "..tostring(v.times), { 164, 66, 244 }) if v.current >= v.times then Tasks[k] = nil end end startChatTimer() end) end startChatTimer() function GetCharacterName(source) local result = MySQL.Sync.fetchAll('SELECT firstname, lastname FROM users WHERE identifier = @identifier', { ['@identifier'] = GetPlayerIdentifiers(source)[1] }) if result[1] and result[1].firstname and result[1].lastname then if Config.OnlyFirstname then return result[1].firstname else return ('%s %s'):format(result[1].firstname, result[1].lastname) end else return GetPlayerName(source) end end _____________________________________________________________________________________________________________________________ FIXED!!

Our partners

rcore.cz
K4mb1
SLTH
×
×
  • Create New...