From 271b5c8421809a429ef6019867311c2c4433e1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20=C3=96hrstr=C3=B6m?= Date: Wed, 28 Mar 2018 13:41:57 +0200 Subject: [PATCH 1/2] Rename README.txt to README.md --- README.txt => README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename README.txt => README.md (100%) diff --git a/README.txt b/README.md similarity index 100% rename from README.txt rename to README.md From c3211b9c3f77efe677b20bd4fb6f7d54889d8d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20=C3=96hrstr=C3=B6m?= Date: Wed, 28 Mar 2018 13:43:24 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index cde673d..5269ec0 100644 --- a/README.md +++ b/README.md @@ -9,36 +9,32 @@ to create an export from policejob: ADD -[esx]/esx_policejob/client/main.lua: -`` - +**[esx]/esx_policejob/client/main.lua:** +```lua function getJob() if PlayerData.job ~= nil then return PlayerData.job.name end end +``` - -`` -[esx]/esx_policejob/__resource.lua: -`` +**[esx]/esx_policejob/__resource.lua:** +```lua exports { 'getJob' } +``` - -`` - -and CHANGE in this __resource.lua: -From: -`` +**and CHANGE in this __resource.lua: +From:** +```lua client_script 'client.lua' server_script 'server.lua' -`` -to: -`` +``` +**to:** +```lua client_script 'ESX/client.lua' server_script 'ESX/server.lua' -`` +``` Cheers and have fun.